-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
combine related errors for eqwalizer cli reporting too
Summary: The `DiagnosticsCollection` has functionality to combine related errors, so that if a function has a syntax error, the cascade of undefined functions from that reported by the erlang service compiler is collapsed, as they get added as related diagnostics to the syntax error. Route the erlang service diagnostics reported by eqwalizer cli through this too. Reviewed By: robertoaloi Differential Revision: D56818059 fbshipit-source-id: 674d2622a12abf4a2d52339f0ec7fe8bb3c68791
- Loading branch information
1 parent
27769e0
commit 99ebfe9
Showing
9 changed files
with
122 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
crates/elp/src/resources/test/standard/eqwalize_all_parse_error_cascade.pretty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
error: parse_error | ||
┌─ parse_error_a/src/parse_error_a_cascade.erl:11:5 | ||
│ | ||
11 │ . | ||
│ ^ syntax error before: '.' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
test_projects/parse_error/parse_error_a/src/parse_error_a_cascade.erl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-module(parse_error_a_cascade). | ||
|
||
-export([foo/0]). | ||
|
||
foo() -> | ||
bar(). | ||
|
||
bar() -> | ||
|
||
%% syntax error | ||
. |
99ebfe9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_projects/parse_error/parse_error_a/src/parse_error_a_cascade.erl