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

Simplify diagnostic handling #63

Merged
merged 1 commit into from
Dec 18, 2023
Merged

Simplify diagnostic handling #63

merged 1 commit into from
Dec 18, 2023

Conversation

josevalim
Copy link
Contributor

  • file should remain as nil if you can't pinpoint a source
  • if there is no position (0), don't assume whole file

Boundary should provide the information it has and not assume.
The decisions of how to deal with incomplete data is a tooling choice.

* file should remain as nil if you can't pinpoint a source
* if there is no position (0), don't assume whole file

Boundary should provide the information it has and
not assume. The decisions of how to deal with incomplete
data is a tooling choice.
Copy link
Owner

@sasa1977 sasa1977 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

I think file name should be included if we know it, because this improves UX. The position could be set to 0 in this case, but I need to check how that works with ElixirLS.

lib/boundary/mix/tasks/compile/boundary.ex Show resolved Hide resolved
lib/boundary/mix/tasks/compile/boundary.ex Show resolved Hide resolved
lib/boundary/mix/tasks/compile/boundary.ex Show resolved Hide resolved
@sasa1977 sasa1977 merged commit 61d0e0e into sasa1977:master Dec 18, 2023
1 check passed
@sasa1977
Copy link
Owner

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants