-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Can't continue due to errors on dependencies #285
Comments
This fixed the compilation issue JakeBecker/elixir-ls#71 (comment), but it seems this is necessary every time I restart Zed. |
Might be a zed root path detection issue for umbrella apps, I'll have to play around with it later and report upstream if I'm correct. |
I played around with an umbrella app, it seems to work on my end. I am curious to know if there is anything special about your umbrella app that is different from a basic one? |
FWIW this also happens to me on vscode and elixir 1.15.5 after installing NextLS and disabling ElixirLS. I'm not on an umbrella app |
Can you share the rest of the "specs"? Elixir, OTP version, how you install them (asdf, brew), OS, CPU arch, etc |
@mhanberg Yep! Let me know if I'm missing something :) I'm on a M1 Pro macbook running Ventura 13.1. Elixir and Erlang/OTP are installed through asdf's plugin. I first tried it out on vscode and it wouldn't download the missing deps (see logs below), then I tried it on zed and it worked perfectly. Not sure what's different between the integrations but since it was able to compile on zed now it works fine on vscode too 🤔 . > elixir -v
Elixir 1.15.7 (compiled with Erlang/OTP 25)
> erl
Erlang/OTP 25 [erts-13.2] ... NextLS logs: [NextLS] NextLS v0.13.5 has initialized!
[NextLS] Booting runtimes...
[NextLS] Beginning DB migration...
[Info - 3:09:32 PM] [NextLS] Database is on the latest version: 5
[NextLS] Finished DB migration...
[NextLS] Using `elixir` found at: /Users/nico/.asdf/shims/elixir
[NextLS] Connected to node nextls-runtime-1697652572210874417@MacBook-Pro
[NextLS] Runtime for folder my-app is ready...
[NextLS] Unchecked dependencies for environment dev:
Unchecked dependencies for environment dev:
* grpcbox (Hex package)
* grpcbox (Hex package)
the dependency is not available, run "mix deps.get"
* file_system (Hex package)
the dependency is not available, run "mix deps.get"
the dependency is not available, run "mix deps.get"
* connection (Hex package) |
bump Any progress on this? |
Can you answer the question I asked previously:
|
Not that I'm aware of. Anything specific you have in mind that I can answer? |
Partially addresses elixir-tools#53 elixir-tools#115 elixir-tools#285 Co-authored-by: Mitchell Hanberg <[email protected]>
Partially addresses elixir-tools#53 elixir-tools#115 elixir-tools#285 Co-authored-by: Mitchell Hanberg <[email protected]>
Partially addresses elixir-tools#53 elixir-tools#115 elixir-tools#285 Co-authored-by: Mitchell Hanberg <[email protected]>
Partially addresses elixir-tools#53 elixir-tools#115 elixir-tools#285 Co-authored-by: Mitchell Hanberg <[email protected]>
Partially addresses #53 #115 #285 Co-authored-by: Mitchell Hanberg <[email protected]>
Would you mind updating to 0.19.1 and trying it out again? I've introduced a new feature that will detect when your deps have changed since you opened the editor (like if you change branches, etc) and then prompt you with a message to ask if you want it to fetch deps again and restart the internal runtime. I tested in Zed and it seems to work, would you mind testing on your end to see if it helps with the issues you were seeing? |
Also seeing issues with an umbrella in 0.19.1. I saw similar messages to those in this thread prior to updating next_ls. After update, I'm still having trouble. Logs excerpt that may help 🤞 (umbrella app names redacted):
I'm wondering if next_ls is having issues with inter-app deps? e.g. defp deps do
[
{:an_app_in_the_umbrella_i_depend_on, in_umbrella: true},
{:another_app_in_the_umbrella_i_depend_on, in_umbrella: true},
# ...
]
end |
Thanks for the report! I have a new hypothesis, will be investigating over the coming days. |
I think I was able to reproduce this in the wild, but not in a test. I haven't tested my suspicion yet but I'm hopeful |
I believe #401 should close out this issue, I will likely release it in v0.20.2, please update and let me know if you can still reproduce. I'll close the issue if I don't hear back in a while, but feel free to comment and I'll re-open |
Just installed it last night, I was able to use find references (wow is it fast) so it seems to be up and running, I’ll file a new ticket if I hit any other issues |
I'm seeing the following error in the next-ls server logs when starting up Zed. I've tried deleing
.elixir-tools
anddeps
, runningmix deps.get
, reopening Zed, still seeing this error. The app compiles with no issue. I'm using Zed 0.107.6. I'm on Erlang/OTP 25 [erts-13.1.2] and Elixir 1.14.2.The text was updated successfully, but these errors were encountered: