Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode extension fails with textDocument/semanticTokens internal error when viewing diff file #14140

Open
Ashesh3 opened this issue May 23, 2024 · 0 comments

Comments

@Ashesh3
Copy link

Ashesh3 commented May 23, 2024

Bicep version
v0.27.1

Describe the bug
When I open a git diff window on vscode, then the extension floods the screen with error notifications, as I scroll through the diff, the error notifications keep on popping, they can't be turned off/disabled, this is really distracting.

To Reproduce

  1. Try to make changes to a bicep file, and open the diff via source control window.

Additional context
Error from the output:

2024-05-23T05:24:42.021Z info: Current log level: debug.
2024-05-23T05:24:42.031Z info: Acquiring dotnet runtime...
2024-05-23T05:24:43.647Z debug: Found dotnet command at 'c:\Users\x\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\8.0.5~x64\dotnet.exe'.
2024-05-23T05:24:43.648Z info: Launching Bicep language service...
2024-05-23T05:24:43.648Z debug: Found language server at 'c:\Users\x\.vscode\extensions\ms-azuretools.vscode-bicep-0.27.1\bicepLanguageServer\Bicep.LangServer.dll'.
2024-05-23T05:24:45.674Z info: Bicep language service started.
[Info  - 10:54:45 AM] Running on processId 52024
[Error - 10:55:24 AM] Request textDocument/documentSymbol failed.
  Message: Internal Error
  Code: -32603 
[Error - 10:55:24 AM] Request textDocument/semanticTokens/full failed.
  Message: Internal Error
  Code: -32603 
[Error - 10:55:24 AM] Request textDocument/semanticTokens/range failed.
  Message: Internal Error
  Code: -32603 

This is similar to the issue: microsoft/vscode-dotnettools#722
They added an option to suppress such errors, having the same here would temporarily resolve the issue for me. Ref: dotnet/vscode-csharp#7106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant