-
Notifications
You must be signed in to change notification settings - Fork 106
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
Annoying red highlighting of the whole mix.exs #132
Comments
Can you please copy the output from Output tab in vscode to this issue? |
|
@vyachkonovalov I had the same problem when I updated few dependencies in original project from github. Red highlighting of the whole mix.exs is a result of problems with dependencies in your project. |
This happens when the language server returns an error without a line number. Perhaps the language server client you're using can be configured to show such errors by highlighting only the first line? I know that emac's |
@axelson |
My mixfile (umbrella) is always covered in red. The problems tab seems to indicate it's a problem with elixir-ls.
|
FWIW, I find that this happens anytime I change a dependency in the Anyway, I can typically resolve by doing |
@cjbottaro if that's the full stacktrace then it looks like ElixirLS isn't failing in ElixirLS's code. So my guess is that you have something either in your |
I have the same issue with the umbrella application. It happens every time when dependencies are changed, which can be quite often. |
Same problem for me with an umbrella project. Just a hunch: ElixirLS only checks the top-level mix.exs for dependeny changes in order to trigger updates to its internal book keeping concerning dependencies. So when you add a new dependency to one of your apps' mix.exs and install it, it fails to re-evaluate the umbrella project's deps directory. @jjcarstens solution also works for me. |
bump |
Question. Is there a way to introduce some environment variable during the
.. and elixir-ls can't find the environment variable, because that is set via If only I can run Else I might have to just conditionally |
From here JakeBecker/elixir-ls#71 (comment) :
This solved the issue for me |
I tried the solution from @That-David-Guy which didn't seem to resolve. Manually removing the entire |
I wonder how to, in general, debug stuff like this. I had ElixirLS completely broken for half an hour today, and then I did some random stuff and I fixed it. It seemed to have failed to parse mix credo output, which, I presume, was complaining about a crash, but I couldn't even see the whole log... And of course, this UX peculiarity plagues my workflow as well. |
Duplicate of elixir-lsp/elixir-ls#120 |
If a project has problems with deps (or some other errors), the whole mix.exs is highlighted red. This is annoying and interferes with editing the file.
Is there an option to disable highlighting of mix.exs, or maybe highlight only the first line of it?
The text was updated successfully, but these errors were encountered: