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

Backport "Export diagnostics (including unused warnings) to SemanticDB" #20315

Merged
merged 3 commits into from
Jun 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions tests/semanticdb/metac.expect
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ Text => empty
Language => Scala
Symbols => 181 entries
Occurrences => 159 entries
Diagnostics => 1 entries
Diagnostics => 2 entries
Synthetics => 6 entries

Symbols:
Expand Down Expand Up @@ -1364,6 +1364,7 @@ Occurrences:

Diagnostics:
[30:12..30:17): [warning] unused explicit parameter
[48:13..48:13): [warning] `:` after symbolic operator is deprecated; use backticks around operator instead
Copy link
Author

Choose a reason for hiding this comment

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


Synthetics:
[52:9..52:13):Refl => *.unapply[Option[B]]
Expand Down Expand Up @@ -1652,6 +1653,7 @@ Text => empty
Language => Scala
Symbols => 29 entries
Occurrences => 66 entries
Diagnostics => 1 entries
Synthetics => 3 entries

Symbols:
Expand Down Expand Up @@ -1753,6 +1755,11 @@ Occurrences:
[26:57..26:58): A -> a/b/Givens.foo().(A)
[26:59..26:64): empty -> a/b/Givens.Monoid#empty().

Diagnostics:
[24:53..24:63): [warning] An inline given alias with a function value as right-hand side can significantly increase
generated code size. You should either drop the `inline` or rewrite the given with an
explicit `apply` method.
Copy link
Author

Choose a reason for hiding this comment

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


Synthetics:
[12:17..12:25):sayHello => *[Int]
[13:19..13:29):sayGoodbye => *[Int]
Expand Down Expand Up @@ -3736,9 +3743,9 @@ Occurrences:
[40:10..40:18): rightVar -> local4

Diagnostics:
[30:11..30:18): [warning] unset local variable, consider using an immutable val instead
[30:20..30:28): [warning] unset local variable, consider using an immutable val instead
[31:15..31:25): [warning] unset local variable, consider using an immutable val instead
Copy link
Author

Choose a reason for hiding this comment

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

[30:11..30:18): [warning] unset local variable
[30:20..30:28): [warning] unset local variable
[31:15..31:25): [warning] unset local variable

Synthetics:
[5:6..5:10):Some => *.unapply[Int]
Expand Down
Loading