-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
Use -fno-show-error-context from GHC 9.8 #4295
base: master
Are you sure you want to change the base?
Use -fno-show-error-context from GHC 9.8 #4295
Conversation
Looks great! |
So it did work without changing the diagnostic printing options? |
The failures look weird, I've restarted them just to see. |
@michaelpj exactly!, no need for changing diagnostic printing options. It was completely my fault because I was using |
Okay, so we have several problems. Some of the tests are failing and they actually rely on matching against the error context! Argh! See https://github.com/haskell/haskell-language-server/blob/master/plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs#L810 I think that actually doesn't need to match on the error context and can be rewritten to just ignore the extra bits. I'm not sure what's going on with the hole message, we should investigate what if anything is different about the message that GHC gives us and see if we can adapt the regexes to avoid the problem: https://github.com/haskell/haskell-language-server/blob/master/plugins/hls-refactor-plugin/src/Development/IDE/Plugin/Plugins/FillHole.hs#L14 |
@michaelpj I debugged specifically the following failing spec regarding filling infix type hole: cabal test hls-refactor-plugin-tests --test-option="-p /filling infix type hole uses prefix notation/" And when looking to the relevant lines you suggested: haskell-language-server/plugins/hls-refactor-plugin/src/Development/IDE/Plugin/Plugins/FillHole.hs Lines 18 to 20 in 7b8e2e5
I have found, while debugging, that comparing
Looking at the rest of the payload, I can't see how we can still evaluate whether it is an infix hole. See below the full Before the change
After the change
|
b67871e
to
1a0c106
Compare
d13871a
to
57dccc2
Compare
Quick-updatetm: first of all thank you very much for all the support during the ZuriHac 2024,.. It would have been much harder to start being involved in the project without that initial push. Now, just some picks regarding the current state and my plans for the following weeks:
|
Don't worry about pushing more, that's not a problem. And if you can point out where you're still getting stuck then maybe we can help! |
63eb537
to
fa8b718
Compare
* master: (36 commits) Migrate indexHieFile progress notification to ProgressReporting API (haskell#4205) Remove final allow-newer for 9.10 (haskell#4329) Remove unused exactprint dep More stylish Use newer cabal-fmt, partially lift ghc version restriction stylish Cleanup CI configs and cabal files More no-op code cleanup Remove no-longer-needed compat code, remove unused stuff Remove pre-multi component junk for GHC <= 9.2 Fix stylish Fix a few things Remove from CI Update docs Fix loss of 9.2 GHC version More CPP WIP evaluate CPP Prepare release 2.9.0.0 (haskell#4319) Add completion for import fields in cabal files (haskell#4305) Refine GHC deprecation policy (haskell#3438) ...
* master: Formalize the ProgressReporting Type (haskell#4335) fix future index time (haskell#4343) Cleanup disabled warnings (haskell#4341) Cleanup imports after CPP removal + few hlint fixes (haskell#4337)
9bd316a
to
b6ffd3c
Compare
Quick updatetm: @michaelpj @fendor I've progressed until Lines 96 to 103 in 13e5795
In the following example used in the specs failing, without the new flag, you can see that the diagnostic message returns correctly the declaration name is So, which should be the correct approach to get the declaration name now? |
Resolves #4281
Before the change, with GHC 9.8.1, this is how error messages look in Visual Studio Code:
After the change, this is how it looks now:
Notes
b67871e fixes following specs in this build
See fixed specs