-
Notifications
You must be signed in to change notification settings - Fork 52
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
** (Mix.Error) Can't continue due to errors on dependencies #71
Comments
I had the exact same error. It went away when I removed the |
I'm guessing that running the task to |
Until I fix this, try setting |
Setting |
It also happens when adding a new dependency to |
I actually have to quit VSCode before nuking the folders (per @lukaszsamson's comment), otherwise my deps only partially get fetched. It would leave my deps folder in borked state (hence the errors). Perhaps ElixirLS is locking a folder or there's a race condition. I think the magic sauce is:
You should only have to do this once. |
This would solve the problem but it sometime occur again with switching between branches. |
The error materialized itself for me in a situation where I already had These elixir-ls log lines before this error may be helpful too:
The project does compile and run from the command line with this additional unnecessary dependency in that situation, so only elixir-ls has a problem with this.
Possibly related problem: when switching to a branch with a new dependency added, after doing |
This issue is in general related to the fact that For example, I added a dependency as a list instead of a tuple, saved the file and got a Maybe we should have a command to re-evaluate a file or restart the language service? For example, TypeScript LS allows us to restart it via a VS Code command and it fixes most issues with persisting errors. |
@JakeBecker I could reproduce it immediately by creating a new umbrella project
Then I added
fetchDeps is set to |
I just had this issue when specifying a version of a dep that was not compatible with my current version of elixir. Even after changing the version and refetching the deps and restarting vscode, the error wasn't gone. Only solution was to delete the |
I had this issue and I found that simply restarting Atom fixed it. I didn't have to sacrifice a chicken or anything else more invasive. |
I was able to make this stop happening by changing 2 configuration settings in ElixirLS:
This does mean that you have to run mix deps.get and deps.compile manually when you make changes, but I kind of prefer that--I know the state of things in my conceptual understanding of my deps :) |
This project has moved! It's now being maintained by proactive volunteers from the Elixir community over at elixir-lsp/elixir-ls. Updates will continue to be published from that repo to the original VS Code extension, so no need to switch plugins if you're using VS Code. To avoid inundating the new maintainers with issues, please verify that your issue persists with the latest version of the extension (which is published from the new repo) before re-filing your issue there. Thanks for using ElixirLS! |
This did not help |
I was having this issue ..............deleting the whole .elixir_ls directory and the mix.lock file worked for me. |
I had a very similar problem and found my way here via a Google search. My solutionFor others reading this, here's what I needed to do:
Environment
Error messageThe error message I originally encountered was (first few lines):
|
ElixirLS is giving me an exception on VS Code Problems window that is not happing anywhere else (not with mix compile or releasing using distillery). The system also runs fine.
** (Mix.Error) Can't continue due to errors on dependencies
Any tips on how to handle that problem? Is there a different elixir compile option so I can execute to try to reproduce that crash on terminal?
Environment
Crash report template
an exception was raised:
** (Mix.Error) Can't continue due to errors on dependencies
(mix) lib/mix.ex:291: Mix.raise/1
(mix) lib/mix/tasks/deps.loadpaths.ex:27: Mix.Tasks.Deps.Loadpaths.run/1
(mix) lib/mix/task.ex:314: Mix.Task.run_task/3
(mix) lib/mix/tasks/loadpaths.ex:34: Mix.Tasks.Loadpaths.run/1
(mix) lib/mix/task.ex:314: Mix.Task.run_task/3
(mix) lib/mix/tasks/compile.ex:87: Mix.Tasks.Compile.run/1
(mix) lib/mix/task.ex:314: Mix.Task.run_task/3
(language_server) lib/language_server/build.ex:162: ElixirLS.LanguageServer.Build.compile/0
The text was updated successfully, but these errors were encountered: