-
Notifications
You must be signed in to change notification settings - Fork 205
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
ElixirLS.LanguageServer.MixShell.info/1 and ElixirSense.Core.Source.split_lines/1 undefined when the project uses Elixir 1.16 #1100
Comments
There is some problem with your env. The functions are definitely defined, see build on elixir 1.16 and OTP 25 https://github.com/elixir-lsp/elixir-ls/actions/runs/9461131788/job/26067861648. The fact that it's crashing like that means that there is a problem earlier with either your shims, elixir, OTP, ElixirLS install or mix cache. This is a giveway:
Some troubleshooting you should try
|
Were you able to resolve your issue? |
@lukaszsamson No, I kinda gave up for a while. I'm using Lexical, but I now have other issues on using it. I'll try to fix this Lexical's, if I don't succeed, I might come back here and try it again. |
It seems you have some system issues. Have you tried running either LS in VSCode devcontainer? See this sample for an isolated working setup https://github.com/elixir-lsp/elixir-ls-devcontainer-example |
Precheck
Done. Nothing relevant.
I have started a small thread on the Elixir's Slack, but I'm starting to think this might be indeed a bug.
I have tried it, but I wasn't able to make VSCode to identify my Elixir installation. However, I think my description will clarify that this might be related to the version of Elixir, as it works when using other versions.
Environment
Current behavior
If I create a Mix project using Elixir 1.16, the LSP stops working as expected and whenever there's an issue on the code, it starts acting like crashing. It works normally if I use Elixir 1.14. Since on the README.md the 1.16 is listed as fully supported, I figured I would open this.
Using Elixir 1.16
asdf global elixir 1.16.3-otp-25
mix new test_1_16_3 --module Test
mix.exs
, LSP complains about exception being raised.hello.ex
file, and introduce a syntax problem, LSP crashes.Relevant LSP logs:
Complete log here.
Picture:
![image (19)](https://private-user-images.githubusercontent.com/711853/338803984-bc3e2124-d35f-460e-853b-63b4d4548595.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzcwNDgsIm5iZiI6MTczOTQzNjc0OCwicGF0aCI6Ii83MTE4NTMvMzM4ODAzOTg0LWJjM2UyMTI0LWQzNWYtNDYwZS04NTNiLTYzYjRkNDU0ODU5NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwODUyMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNjRmMjg5MDNjNTMyYzAwZjEwOTdiMzZjMWY2YWVlZjdjYmU4NTZiMWRiZDdhZGEyOGMwYzcwODU2YzE4ZGMwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.QViLvf-IVxQD_-Mexl9al8YeKFMOqk_-sbZaoqu71ag)
Expected behavior
Using Elixir 1.14 yields the expected behavior.
Using Elixir 1.14
asdf global elixir 1.14.3-otp-25
mix new test_1_14_3 --module Test
mix.exs
, LSP says it was successfully initiated.hello.ex
file, and introduce a syntax problem, LSP highlights the problem as expected.The text was updated successfully, but these errors were encountered: