-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve error message about missing identifier when the cause i…
…s a missing import statement When the missing identifier matches a module name, a note is added to the error message highlighting the fact that the import statement is missing. Example: ```text r#"error: unknown identifier `test_proto2` ╭─[line:4:5] │ 4 │ test_proto2.foo │ ─────┬───── │ ╰─────── this identifier has not been declared │ │ Note: there is a module named `test_proto2`, but the `import "test_proto2"` statement is missing ───╯ ```
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 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