-
Notifications
You must be signed in to change notification settings - Fork 196
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
Compiler diagnostics for .exs files #89
Comments
Hi @amencarini that is a known issue due to since |
While I understand |
Offhand I'm not sure what would be involved in returning compilation errors for |
There may be a resolution coming up upstream elixir-lang/elixir#10983 |
Hi! Any known workarounds? Just wanted to point out -- this isn't just tests. For a file like Thanks! |
As a workaround you can change your mixfile and force elixir to compile them. Or you can hack elixir-ls to load exs files on build. We do that in debugger.
… On 5 Aug 2021, at 17:28, Lee Pender ***@***.***> wrote:
Hi!
Any known workarounds?
Just wanted to point out -- this isn't just tests. For a file like releases.exs, if you're missing comma you don't find out until you're deploying.
Thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Thanks. Any specific "how to" would be most welcome! |
+1 how do you force mix to compile the Thx!! |
For .exs files, you can at least call Code.string_to_quoted to parse it and get at least syntax feedback. |
That's a good idea @josevalim |
Parser diagnostics has been added in #986. Full compiler diagnostics are unlikely as it would require evaluating the client code in the context of language server |
Environment
Not sure if this is by design, but I'm not getting any hints when things are broken in
.exs
files. e.g.: If I have a typo calling a function in a test, this doesn't get reported in VS Code, I'll only notice when running the tests.The text was updated successfully, but these errors were encountered: