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

Fix range positions in diagnostics #793

Merged
merged 4 commits into from
Jan 14, 2019
Merged

Fix range positions in diagnostics #793

merged 4 commits into from
Jan 14, 2019

Conversation

jvican
Copy link
Contributor

@jvican jvican commented Jan 14, 2019

  • Pretty print range positions in the cli diagnostics
  • Report range positions in diagnostics via BSP
  • Deduplicate duplicated diagnostics from scalac

Fixes #787

When a diagnostic is in the same line, we pretty print range positions
in cli diagnostics. Otherwise, we fallback to the previous pointer.
@jvican jvican added build server Any issue or pull request that has to do with hot compilers or BSP. bug A defect or misbehaviour. enhancement labels Jan 14, 2019
As suggested by #785 (comment), we need to deduplicate errors coming from the compiler.

The logic we implement it's adapted from the way the default
`AbstractReporter` handles it: https://github.com/scala/scala/blob/2.12.x/src/compiler/scala/tools/nsc/reporters/AbstractReporter.scala
@jvican jvican merged commit 3fb02c0 into master Jan 14, 2019
@tgodzik tgodzik deleted the ticket/787 branch September 7, 2021 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect or misbehaviour. build server Any issue or pull request that has to do with hot compilers or BSP. enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant