-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension fails to load after upgrade to v0.6.0 #145
Comments
I'm experiencing the same. This is the error I'm getting: [2020-10-04 06:48:35.485] [exthost] [error] Activating extension JakeBecker.elixir-ls failed due to an error:
|
I think it's about I try to manual package with But when I use |
Seem like |
Ouch. I've experienced the same bug and created issue elixir-lsp/elixir-ls#372. Since this is an error related to the VSCode extension itself I am closing that issue. |
🆗 I found this issue microsoft/vscode-vsce#494 to confirm that it's bug from |
I'm not sure that the issue is due to The extension that I packaged locally with latest @axelson making sure the P.S: worth considering using Webpack in the future to produce a single, slimmer bundle as recommended here https://code.visualstudio.com/api/working-with-extensions/bundling-extension |
Can confirm, it's broken for me as well
|
temporary solution, run |
@AidasPa that temporary solution worked for me! Thanks. |
I tried @AidasPa's solution and am now seeing these logs in the ElixirLS output:
|
I have the same effect as @aleury. Starting the language server by hand with
So it seems that my Erlang installation is too old - but officially the language server should run with Erlang 21 as minimum. |
I've also been experiencing this issue today. I tried @AidasPa's temporary workaround. But, like other commenters, I ran into issues when ElixirLS would start up. I think I've identified a temporary workaround that does indeed work, based on @iporsut's comments that this is ultimately a Steps:
For more info, see the Packaging extensions guide from the VSCode docs. |
Thank you! As a temporary solution, this worked great! |
@bceskavich 's Solution works but the LS does not start for an umbrella project, though working for a non-umbrella project. Crashes with [Info - 10:05:32 PM] Connection to server got closed.
Server will restart. ** (UndefinedFunctionError) function ElixirLS.LanguageServer.CLI.main/0 is undefined (module ElixirLS.LanguageServer.CLI is not available) ElixirLS.LanguageServer.CLI.main() (stdlib 3.11.2) erl_eval.erl:680: :erl_eval.do_apply/6 (elixir 1.10.0) lib/code.ex:332: Code.eval_string_with_error_handling/3
[Info - 10:05:33 PM] Connection to server got closed. Server will restart.
** (UndefinedFunctionError) function ElixirLS.LanguageServer.CLI.main/0 is undefined (module ElixirLS.LanguageServer.CLI is not available) ElixirLS.LanguageServer.CLI.main() (stdlib 3.11.2) erl_eval.erl:680: :erl_eval.do_apply/6 (elixir 1.10.0) lib/code.ex:332: Code.eval_string_with_error_handling/3
[Error - 10:05:33 PM] Connection to server got closed. Server will not be restarted. @AidasPa 's Installing ~/.vscode/extensions/jakebecker.elixir-ls-0.6.0 also did not work for me, led to some other error. I resorted to the previous version. I will just try an update after the fix is made 😄 |
Sorry about this! After investigating it looks like there were two issues, one was that I was hit by microsoft/vscode-vsce#494 which caused the extension to not start because the dependencies were not installed. This issue could be worked around with #145 (comment) The second issue was that I built the package with Elixir 1.10, and that caused the extension to not run on any project using an earlier elixir version which caused the But the good new is that I just released v0.6.1 that fixes both those issues. Didn't make a PR but this is the commit that bumps the version and adds a reminder to use the |
Thanks a lot for fixing @axelson 🙏 The new version now launches and main features like autocomplete, navigation, docs and PLT build work however I can't seem to get the new Ecto completion feature working (I had successfully tested this earlier but with the local build of the extension in debug mode with the I also get the following error in the extension log and some docsh warnings that reference the original build directory Is anyone else experiencing the same scenario? |
Environment
Troubleshooting
.elixir_ls
directory, then restart your editormix new empty
, then open that project with VS Code and open an Elixir file. Is your issue reproducible on the empty project? If not, please publish a repo on Github that does reproduce it.View > Output
and selecting "ElixirLS" in the dropdown. Please include any output that looks relevant. (If ElixirLS isn't in the dropdown, the server failed to launch.)Help > Toggle Developer Tools
and include any errors that look relevant.Description
The extension fails to properly load after upgrading to v0.6.0. Syntax highlighting works but other features like autocompletion, navigation, deps fetching and PLT build do not work and the extension does not appear in the dropdown under
View > Output
.A
Cannot find module 'shelljs'
error is printed in the DevTools console.The text was updated successfully, but these errors were encountered: