Skip to content

Include column in warnings emitted by compiler #11339

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

Merged
merged 2 commits into from
Oct 24, 2021
Merged

Conversation

josevalim
Copy link
Member

We also extend Mix.Tasks.Compiler.Diagnostic
to include {line, column} as possible position.
We also explicitly document the behaviour of
line=0, which is equivalent to unknown line.
Elixir was already setting the line to zero in
multiple occasions prior to this patch, so this
patch officializes it and we stop returning nil
for said cases.

We also extend Mix.Tasks.Compiler.Diagnostic
to include {line, column} as possible position.
We also explicitly document the behaviour of
line=0, which is equivalent to unknown line.
Elixir was already setting the line to zero in
multiple occasions prior to this patch, so this
patch officializes it and we stop returning `nil`
for said cases.
@josevalim
Copy link
Member Author

/cc @lukaszsamson @axelson

@josevalim josevalim merged commit 9154c8b into master Oct 24, 2021
@josevalim josevalim deleted the jv-column-warning branch October 24, 2021 14:28
@josevalim
Copy link
Member Author

💚 💙 💜 💛 ❤️

@axelson
Copy link
Contributor

axelson commented Oct 25, 2021

Thanks for the ping! :)

I'm excited to use this in ElixirLS 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants