- Notifications
You must be signed in to change notification settings - Fork61
dedicated parsing for error messages related to interface files#379
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…2 diagnostics for some interface file issues - one pointing to the implementation in question, and one to the definition in the interface file. clean up some error messages for interface files.
Although I think it's a great change and delivers better UX to editor users, the conflict between compiler error msg and editor error message can be confusing. I prefer this to be done somewhere in the compiler. |
zth commentedMay 3, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Are you up for taking a stab at implementing it in the compiler? |
I think we can use super erros implemenation to deliver such behavior iirc. i should take a look. |
That would be great if you had a look at that! In fact, there's quite a lot of error messages that needs cleaning up. So if you figure out a good workflow it'd be nice to also look at a few more of them. |
Closing this as we're not going to move forward with something like this directly in the extension.@amiralies is doing some potentially related work on error messages in the compiler. We'll focus our efforts there instead. |
This detects a few diagnostics related to interface files, and does the following:
One diagnostic for the implementation, one for the interface file
Previously the diagnostic would point to the implementation only. This changes it to produce one diagnostic for the implementation file, and one for the interface file. This will hopefully make it a bit easier to find where the actual issue is located.
Clean up error messages
The error message the compiler produces is quite dense. This produces slightly cleaned up, separate error messages for the implementation and the interface respectively.
Before (one message only):
...and in this PR - error message for the implementation:
And for the interface file:
The original message is still printed by the compiler in the terminal.
More
This is also a preparation for experimenting with code actions related to interface file diagnostics.