-
-
Notifications
You must be signed in to change notification settings - Fork 396
Use structured diagnostics in pragmas plugin #4620
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
base: master
Are you sure you want to change the base?
Conversation
079ed08
to
01648e0
Compare
Removed all temporary changes, and made it work on all types of errors (first version was working only on suggestions for type errors). Tested it on small repository and it seems to be working on example with LambdaCase and RecordWildCards missing. |
01648e0
to
305eaab
Compare
Found the source for old messages ghc9.6 and it's indeed not structured but it was working fine enough with text search. What remains to be verified is that ghc versions from 9.8 converted all error messages suggesting extensions to structured diagnostics. Hopefully that's the case as I'm implementing workaround that checks ghc versions and based on that uses either old approach or new. |
305eaab
to
0ecb2ad
Compare
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.
LGTM, thanks! Just a couple of nitpicks.
Changes suggestion provider in pragmas plugin to use structured diagnostics and ghc machinery to generate hints
0ecb2ad
to
90eb271
Compare
Part of #4605 |
Proof of concept of structured diagnostics use. Requires some cleanup and testing.
Not ready to merge yet