Skip to content
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

Launch script can fail #944

Closed
lukaszsamson opened this issue Jul 13, 2023 · 5 comments
Closed

Launch script can fail #944

lukaszsamson opened this issue Jul 13, 2023 · 5 comments

Comments

@lukaszsamson
Copy link
Collaborator

** (ArgumentError) could not call Module.put_attribute/3 because the module ElixirLS.Shell.Quiet is already compiled
    (elixir 1.14.4) lib/module.ex:2504: Module.assert_not_readonly!/2
    (elixir 1.14.4) lib/module.ex:2201: Module.__put_attribute__/5

Reported in https://elixirforum.com/t/elixirls-extension-not-working-support-needed-using-asdf-brew-elixir/57030

@nathankg
Copy link

Hi there, this is my issue--any help would be greatly appreciated :)

@lukaszsamson
Copy link
Collaborator Author

Can you check what this returns?

elixir -e "ElixirLS.Shell.Quiet.module_info()"

Normally it returns something like

** (UndefinedFunctionError) function ElixirLS.Shell.Quiet.module_info/0 is undefined (module ElixirLS.Shell.Quiet is not available)
    ElixirLS.Shell.Quiet.module_info()
    nofile:1: (file)
    (stdlib 4.3.1.1) erl_eval.erl:748: :erl_eval.do_apply/7
    (elixir 1.15.2) lib/code.ex:543: Code.validated_eval_string/3

@nathankg
Copy link

Yes, I think it printed nearly that!

nathangupta@Nathans-MacBook-Pro checkmate_api % elixir -e "ElixirLS.Shell.Quiet.module_info()"
** (UndefinedFunctionError) function ElixirLS.Shell.Quiet.module_info/0 is undefined (module ElixirLS.Shell.Quiet is not available)
    ElixirLS.Shell.Quiet.module_info()
    nofile:1: (file)
    (stdlib 4.3) erl_eval.erl:748: :erl_eval.do_apply/7
    (elixir 1.14.4) lib/code.ex:425: Code.validated_eval_string/3

@pro100andrey
Copy link

Hi all, same issue

Running /Users/_user_/.vscode/extensions/jakebecker.elixir-ls-0.16.0/elixir-ls-release/launch.sh
Preffered shell is zsh, relaunching
Looking for ASDF install
ASDF install found in /usr/local/opt/asdf/libexec/asdf.sh, sourcing
** (ArgumentError) could not call Module.put_attribute/3 because the module ElixirLS.Shell.Quiet is already compiled
    (elixir 1.15.5) lib/module.ex:2310: Module.assert_not_readonly!/2
    (elixir 1.15.5) lib/module.ex:2007: Module.__put_attribute__/5
    /Users/_user_/.vscode/extensions/jakebecker.elixir-ls-0.16.0/elixir-ls-release/installer.exs:60: (module)
    /Users/_user_/.vscode/extensions/jakebecker.elixir-ls-0.16.0/elixir-ls-release/installer.exs:59: (file)
[Error - 13:05:29] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 13:05:29] Connection to server got closed. Server will restart.
true
[Error - 13:05:29] ElixirLS - server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097
➜ ~ asdf list

elixir
 *1.15.5-otp-25
erlang
 *25.3.2.5
➜ ~ code --version

1.81.1
6c3e3dba23e8fadc360aed75ce363ba185c49794
x64
➜ ~ sw_vers

ProductName:		macOS
ProductVersion:		13.5.1
BuildVersion:		22G90

@lukaszsamson
Copy link
Collaborator Author

Closing as there is no way to reproduce this

@lukaszsamson lukaszsamson closed this as not planned Won't fix, can't repro, duplicate, stale Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants