tgjones / HlslTools

A Visual Studio extension that provides enhanced support for editing High Level Shading Language (HLSL) files
http://timjones.io/blog/archive/2016/04/25/hlsl-tools-for-visual-studio-v1.0-released
Other
569 stars 97 forks source link

Incorrect highlighting/go to symbol (indexing issue?) possibly after update #259

Open DavidLyhedDanielsson opened 1 year ago

DavidLyhedDanielsson commented 1 year ago

I think this occurred after updating VSCode to 1.83.0. It seems like the opened document is not indexed correctly as variable highlighting lights up random places in the code and hovering some symbol gives me info about some entirely other symbol.

I'm getting this output from the extension host over and over:

2023-10-13 09:59:30.782 [error] [TimGJones.hlsltools] provider FAILED
2023-10-13 09:59:30.782 [error] TypeError: Cannot read properties of null (reading 'kind')
    at asHoverContent (c:\Users\david\.vscode\extensions\timgjones.hlsltools-1.1.303\node_modules\vscode-languageclient\lib\protocolConverter.js:130:27)
    at asHover (c:\Users\david\.vscode\extensions\timgjones.hlsltools-1.1.303\node_modules\vscode-languageclient\lib\protocolConverter.js:163:31)
    at h.provideHover (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:40339)
2023-10-13 09:59:31.547 [error] [TimGJones.hlsltools] provider FAILED
2023-10-13 09:59:31.547 [error] TypeError: Cannot read properties of null (reading 'kind')
    at asHoverContent (c:\Users\david\.vscode\extensions\timgjones.hlsltools-1.1.303\node_modules\vscode-languageclient\lib\protocolConverter.js:130:27)
    at asHover (c:\Users\david\.vscode\extensions\timgjones.hlsltools-1.1.303\node_modules\vscode-languageclient\lib\protocolConverter.js:163:31)
    at h.provideHover (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:40339)
2023-10-13 09:59:32.356 [error] [TimGJones.hlsltools] provider FAILED
2023-10-13 09:59:32.357 [error] TypeError: Cannot read properties of null (reading 'kind')
    at asHoverContent (c:\Users\david\.vscode\extensions\timgjones.hlsltools-1.1.303\node_modules\vscode-languageclient\lib\protocolConverter.js:130:27)
    at asHover (c:\Users\david\.vscode\extensions\timgjones.hlsltools-1.1.303\node_modules\vscode-languageclient\lib\protocolConverter.js:163:31)
    at h.provideHover (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:40339)