idaholab/moose-language-support

vscode 1.82 cannot connect to the moose language server in WSL

Closed this issue · 3 comments

I encountered the following error on vscode 1.82:

RuntimeError: abort(TypeError: Failed to parse URL from /home/ramzy/.vscode-server/extensions/danielschwen.moose-language-support-0.6.1/server/node_modules/web-tree-sitter/tree-sitter.wasm). Build with -s ASSERTIONS=1 for more info.
    at process.we (/home/ramzy/.vscode-server/extensions/danielschwen.moose-language-support-0.6.1/server/node_modules/web-tree-sitter/tree-sitter.js:1:11339)
    at process.emit (node:events:513:28)
    at emit (node:internal/process/promises:149:20)
    at processPromiseRejections (node:internal/process/promises:283:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:32)

Node.js v18.15.0
[Error - 3:47:37 PM] Connection to server got closed. Server will not be restarted.

This error appears while using either the 0.6.0 or the updated 0.6.1 (and even the 0.5.1) on WSL through a vscode server. Tried it on different WSL Linux distributions (Ubuntu-22.04 and Ubuntu-23.10 (through Ubuntu-Preview)).

Downgrading to vscode 1.81 solves this problem. It seems to be related with upgrading Node.js to version 18 from 16 in the latest vscode 1.82 as explained here.

Thanks for reporting this. I'll have a look.

Ok, check v0.6.2 it works for me in VSCode 1.82

Thank you for the prompt hotfix! The main issue has been solved, but now the "Malformed Input." warning appears whenever an input file is saved, even if it confirms to the hit file check (supposedly). I think opening a new issue for this is better.