Hi,
While working on RBS all the windows closed. This has happened 4 times after the ver1.20.6. This issue continues in the last update (1.20.7). I'm not sure but it happens after returns from the methods designer screen to the editor.
The following screenshot shows the result.
The menu completely does not work. It can be clicked but no response.
The following error is the last error on the log file. I saw this error in the last two crashes. Line numbers were different.
[2023-12-22 23:43:44.948] [error] Error: System.ArgumentOutOfRangeException: The requested line number must be less than 1041, 977 lines. (Parameter 'Line')
at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position)
at Radzen.Server.TextRange.ToTextSpan(SyntaxTree syntaxTree)
at Radzen.Server.ProjectServer.GetActions(String fileName, String source, TextRange range)
at Radzen.Server.ProgramController.Actions(ActionRequest request)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
[2023-12-22 23:43:57.705] [error] TypeError: Cannot read properties of null (reading 'statements')
[2023-12-22 23:43:57.734] [error] TypeError: Cannot read properties of null (reading 'statements')
[2023-12-22 23:43:57.781] [error] TypeError: Cannot read properties of null (reading 'statements')
UPDATE
To reproduce the error.
- Start RBS
- Load the project
- Wait building
- Open TestTables.razor.cs file
- Switch the design screen
- Select BtnUpdateTestField1Click event
- Return the editor (source)
- Locate the BtnUpdateTestField1Click event
- Enter a command (I was trying to write foreach()) The command is important. Please type foreach. When you type the "e" after "for" RBS will chrash.
RadzenTest.zip (324.7 KB)