Fails to start in vscode #1363
Replies: 7 comments
-
Hi @nikita-fuchs and sorry for the late reply. Did you try to run the Erlang LS escript which is shipped with the extension manually? There could be a problem with your Erlang installation / version. What version of OTP are you running? Also, you can check the troubleshooting section of the docs for where to find the Erlang LS logs. In your case, though, it looks like the language server does not even start. Another place you could look at is the Output panel in VS Code (next to the terminal), where you may find some hints on why the server cannot start correctly. |
Beta Was this translation helpful? Give feedback.
-
Moving this from an "issue" to a "discussion" since it seems related to a specific Erlang installation. If we find some actual issue in Erlang LS (or the docs!) we can open an actual issue. |
Beta Was this translation helpful? Give feedback.
-
Thanks for getting back to me ! :) I'm afraid I have to let this one rest a bit if you don't mind, because everything works fine now, magically. The next time this error appears, I will check |
Beta Was this translation helpful? Give feedback.
-
Is there anything I can do to debug this any further? I'm on |
Beta Was this translation helpful? Give feedback.
-
Just wanted to follow up on this instead of making a duplicate. Having the exact same issue, the only error presented in logs is the Have also tried disabling all other plugins. MacOS Monterey v12.2.1 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Faced the same issue, on windows 10, with wsl2. I've added the debug print to erlang_ls vscode extension - ~/.vscode-server/extensions/erlang-ls.erlang-ls-0.0.39/client/out/client.js:
I've found that the error returned in res variable is "enoent", which means that there is no path to 'escript' (installed within erlang with asdf in wsl2). When looking for "enoent vscode issues", found that such an issue happend for different VS Code extentions, e.g.: https://stackoverflow.com/questions/69166487/process-failed-spawn-c-windows-system32-cmd-exe-enoent-jest-process-watch-tes. Advice from this topic helped me - erlang_ls launched well when I open VS Code directory from wsl terminal with - |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
In around 90% of the cases, the erlang LS fails to start in VS code for me. On the last sufccessful start, VScode shows a activation time of a little over 20 seconds.
To Reproduce
Start VScode with erlang LS installed.
Expected behavior
the LS would start normally.
Actual behavior
VScode shows an error notification that the erlang LS could not be started. I am not sure how to gather more information on this sparse error message unfortunately.
Context
erlang_ls
version (tag/sha): v0.0.35 (vscode plugin version info)Beta Was this translation helpful? Give feedback.
All reactions