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

NextLS crashes when the project deps updates #115

Closed
wkirschbaum opened this issue Jul 18, 2023 · 7 comments
Closed

NextLS crashes when the project deps updates #115

wkirschbaum opened this issue Jul 18, 2023 · 7 comments

Comments

@wkirschbaum
Copy link
Contributor

After running mix deps.update --all on a project using NextLS, the NextLS server crashes with the following error:

[NextLS] NextLS v0.5.4 has initialized!
[NextLS] Booting runtime...
[NextLS] Unchecked dependencies for environment dev:
[NextLS] * flop (Hex package)
[NextLS]   the dependency does not match the requirement "~> 0.22.0", got "0.21.0"
* flop_phoenix (Hex package)
[NextLS]   the dependency does not match the requirement "~> 0.21.0", got "0.19.1"
[NextLS] ** (Mix) Can't continue due to errors on dependencies
[NextLS] The runtime has crashed

After deleting and the .elixir-tools directory it recompiles and works again.

@mhanberg
Copy link
Collaborator

Did you modify mix.exs first?

@wkirschbaum
Copy link
Contributor Author

Only mix.lock changed.

@mhanberg
Copy link
Collaborator

Sorry, I mean did you run mix deps.update while Next LS was already running?

@wkirschbaum
Copy link
Contributor Author

I think so, yes. I restarted the server afterwards and it gave the same error until I deleted the .elixir-tools folder. When I have a minute I can try to pin it down to exact actions.

@mhanberg
Copy link
Collaborator

Interesting, I would not have expected the need to delete the .elixir-tools folder

@mhanberg
Copy link
Collaborator

Related #53

mhanberg added a commit to jjcarstens/next-ls that referenced this issue Feb 28, 2024
mhanberg added a commit to jjcarstens/next-ls that referenced this issue Feb 28, 2024
mhanberg added a commit to jjcarstens/next-ls that referenced this issue Feb 28, 2024
mhanberg added a commit to jjcarstens/next-ls that referenced this issue Feb 28, 2024
mhanberg added a commit that referenced this issue Feb 28, 2024
@mhanberg
Copy link
Collaborator

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

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

2 participants