I am experiencing issues with the code-blocks extension. After setting up the environment (I chose to use [Emscripten]((preferred): Provides emcc directly.)and installing the parsers as prompted by the extension (for C, Python, JSON, etc.), the extension works fine initially. However, after a while or when switching files, I encounter the following error:
Failed to load parser for c: Failed to load parser for language c > Failed to load c:\Users\22016933.vscode\extensions\selfint.code-blocks-0.6.1\parsers\tree-sitter-c\tree-sitter-c.wasm > {}
The parser fails to load. If I delete the directory and reinstall the parser, the issue persists. It works immediately after installation but fails again after some time or when switching files.
Previously, I tried manually creating the wasm file using tree-sitter build --wasm in the directory c:\Users\22016933.vscode\extensions\selfint.code-blocks-0.6.1\parsers\tree-sitter-c. This worked for a while, but after reinstalling the VSCode environment, this method no longer resolves the issue. I am consistently encountering the “Failed to load” error, which prevents me from using this otherwise excellent extension.
Could you please provide a solution or guidance on how to resolve this issue? Your assistance would be greatly appreciated!
Environment Information
VSCode Version: 1.92.0
Extension Version: 0.6.1
Operating System: Windows 11
Issue Description:
I am experiencing issues with the code-blocks extension. After setting up the environment (I chose to use [Emscripten]((preferred): Provides emcc directly.)and installing the parsers as prompted by the extension (for C, Python, JSON, etc.), the extension works fine initially. However, after a while or when switching files, I encounter the following error:
Failed to load parser for c: Failed to load parser for language c > Failed to load c:\Users\22016933.vscode\extensions\selfint.code-blocks-0.6.1\parsers\tree-sitter-c\tree-sitter-c.wasm > {}
The parser fails to load. If I delete the directory and reinstall the parser, the issue persists. It works immediately after installation but fails again after some time or when switching files.
Previously, I tried manually creating the wasm file using tree-sitter build --wasm in the directory c:\Users\22016933.vscode\extensions\selfint.code-blocks-0.6.1\parsers\tree-sitter-c. This worked for a while, but after reinstalling the VSCode environment, this method no longer resolves the issue. I am consistently encountering the “Failed to load” error, which prevents me from using this otherwise excellent extension.
Could you please provide a solution or guidance on how to resolve this issue? Your assistance would be greatly appreciated!
Environment Information VSCode Version: 1.92.0 Extension Version: 0.6.1 Operating System: Windows 11
Thank you for your help!