When working with the extension, I’m seeing a lot of errors and crashes that cause text highlighting, auto completion and code formatting break.
Razor SemanticTokens feature is currently unavailable due to an internal error:
StreamJsonRpc.RemoteInvocationException: End: (271,0) matches or exceeds SourceText boundary 270.
at StreamJsonRpc.JsonRpc.d__1711.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Threading.Tasks.ValueTask1.get_Result()
at Microsoft.CodeAnalysis.Remote.BrokeredServiceConnection1.<TryInvokeAsync>d__181.MoveNext()
RPC server exception:
System.InvalidOperationException: End: (271,0) matches or exceeds SourceText boundary 270.
at Microsoft.AspNetCore.Razor.ThrowHelper.ThrowInvalidOperationException[T](String message)
at Microsoft.CodeAnalysis.Text.SourceTextExtensions.g__GetAbsoluteIndex|25_0(SourceText text, Int32 line, Int32 character, String name)
at Microsoft.CodeAnalysis.Text.SourceTextExtensions.GetTextSpan(SourceText text, Int32 startLine, Int32 startCharacter, Int32 endLine, Int32 endCharacter)
at Microsoft.CodeAnalysis.Text.SourceTextExtensions.GetTextSpan(SourceText text, LinePosition start, LinePosition end)
at Microsoft.CodeAnalysis.Razor.SemanticTokens.AbstractRazorSemanticTokensInfoService.GetSemanticTokensAsync(DocumentContext documentContext, LinePositionSpan span, Guid correlationId, Boolean colorBackground, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Razor.SemanticTokens.AbstractRazorSemanticTokensInfoService.GetSemanticTokensAsync(DocumentContext documentContext, LinePositionSpan span, Boolean colorBackground, Guid correlationId, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Remote.Razor.RemoteSemanticTokensService.GetSemanticTokensDataAsync(RemoteDocumentContext context, LinePositionSpan span, Boolean colorBackground, Guid correlationId, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.<>c__DisplayClass7_01.<<RunWithSolutionAsync>g__ProcessSolutionAsync|1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.RunWithSolutionAsync[T](AssetProvider assetProvider, Checksum solutionChecksum, Boolean updatePrimaryBranch, Func2 implementation, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.RunWithSolutionAsync[T](AssetProvider assetProvider, Checksum solutionChecksum, Boolean updatePrimaryBranch, Func2 implementation, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.Remote.RemoteWorkspaceManager.RunServiceAsync[T](ServiceBrokerClient client, Checksum solutionChecksum, Func2 implementation, CancellationToken cancellationToken)
Razor DataTipRange Featuer is currently unavailable due to an internal error:
StreamJsonRpc.RemoteInvocationException: (30,63) matches or exceeds SourceText boundary 418.
at StreamJsonRpc.JsonRpc.d__1711.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Threading.Tasks.ValueTask1.get_Result()
at Microsoft.CodeAnalysis.Remote.BrokeredServiceConnection1.<TryInvokeAsync>d__181.MoveNext()
RPC server exception:
System.InvalidOperationException: (30,63) matches or exceeds SourceText boundary 418.
at Microsoft.AspNetCore.Razor.ThrowHelper.ThrowInvalidOperationException[T](String message)
at Microsoft.CodeAnalysis.Text.SourceTextExtensions.GetRequiredAbsoluteIndex(SourceText text, Int32 line, Int32 character)
at Roslyn.LanguageServer.Protocol.LspExtensions.GetRequiredAbsoluteIndex(SourceText text, Position position)
at Microsoft.CodeAnalysis.Remote.Razor.RemoteDataTipRangeService.GetDataTipRangeAsync(RemoteDocumentContext context, Position position, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.<>c__DisplayClass7_01.<<RunWithSolutionAsync>g__ProcessSolutionAsync|1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.RunWithSolutionAsync[T](AssetProvider assetProvider, Checksum solutionChecksum, Boolean updatePrimaryBranch, Func2 implementation, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.RunWithSolutionAsync[T](AssetProvider assetProvider, Checksum solutionChecksum, Boolean updatePrimaryBranch, Func2 implementation, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.Remote.RemoteWorkspaceManager.RunServiceAsync[T](ServiceBrokerClient client, Checksum solutionChecksum, Func2 implementation, CancellationToken cancellationToken)
Components aren’t rendering:
Navigating to sub properties in the Radzen properties cause crashes, ie - clicking RadzenStack here caused a Visual Studio hard crash:
![]()
ActivityLog.zip (23.2 KB)
I’ve attached the ActivityLog from Visual Studio which might help identifying issues. If I can be pointed to a log location for the Radzen extension I can pass that on as well



