-
Notifications
You must be signed in to change notification settings - Fork 5
language server crashes immediately on launch #86
Comments
This happens to me, too. I'm trying to use it on WSL 2 on Windows, if that helps. The language server does not crash on the native Windows (but the compiler refused to run there with a rejected promise that I can't reproduce anymore, so taking WSL out of the picture wasn't an option either). In both cases, the version of the extension I installed was 2.5.3 from the VS Code Marketplace. VS Code 1.55.1 (Edit: same behaviour also in 1.55.2) (Edit, again: also in VS Code Insiders 1.56.0) |
i have the same scenario: vscode is a windows binary whether launched from a windows shell or a linux shell. i wonder if there is some interaction between the imba extension and the remote wsl extension? whatever it is, it appears to have caused a syntax error in the index.js file that's part of the imba extension. |
For me it happens both when starting VS Code from the Windows start menu, and from the WSL shell. The syntax error seems to be related to the Node version, as the file only throws the error when I execute it with the node binary bundled in the VS Code server:
As the node version bundled with the server should be the same that is bundled in the desktop VS Code, I now wonder why I don't see a syntax error on Windows? 🤔 |
I dug deeper and found that the language server runs after running the I ran the following in the
|
good work braunse! |
i followed the instructions at imba.io/language/getting-started to install imba locally and start the test app;
the test app works and the splash screen appears at localhost:3000.
then installed the imba2 vscode plugin from the vscode plugin marketplace;
then launched vscode on the test app directory;
then the imba language server crashes immediately and emits:
line 31 of .vscode-server/extensions/scrimba.vsimba-2.5.3/server/src/index.imba is blank but line 32 is apparently a comment starting with "//" (and ending with "?").
i changed the "//" to "#" but the error re-occurred unchanged.
however the long line of minified javascript that appears in the error message is from line 31 of .vscode-server/extensions/scrimba.vsimba-2.5.3/server/dist/src/index.js
(i suspect this is a clue).
here are the versions:
ubunutu 20.04.1 LTS
vscode 1.55.0
node 14.8.0
imba 2.0.0-alpha.129
The text was updated successfully, but these errors were encountered: