-
-
Notifications
You must be signed in to change notification settings - Fork 396
porting hls-refactor to ghc-9.12 #4543
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
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, amazing work!
I have honestly not reviewed in-depth. I will rely on the test-suite to catch any mistakes :)
4c6667a
to
32b9ae6
Compare
The tests will not run on CI, you need to change this line: https://github.com/haskell/haskell-language-server/blob/master/.github/workflows/test.yml#L137 Very difficult to find, apologies! Also, just making sure, you can ignore the |
32b9ae6
to
121176e
Compare
Changed. Hadn't even thought to look there. Hopefully they will run smoothly. Thanks for pointing it out. |
Let's make sure this is fine, but I just wanted to note that as a consequence, rename and splice built smoothly on my end, they'll just need unmasking afterwards. Unless you want me to add it here. gadt will need some love, on the other hand. |
It is fine to enable more plugins immediately, spares us a separate CI run :) You have to accept the changes to the golden files, this is just there so we are sure to catch the changes! |
OK. Hold a bit then, because I see that splice is currently <ghc-9.10. I need to check it with ghc-9.10 too |
121176e
to
0986598
Compare
No hurry, I will be here tomorrow as well :D CI will take a while anyway. |
Tests pass on my side. Let's see how the CI goes. |
I might need help understanding these failing ghcide tests. They don't seem to relate to any of my changes… |
The windows CI failures are spurious and will be resolved by simply rerunning CI (which I will take care of). The 9.12. ubuntu failure is genuine, as you are enabling plugins, you need to accept the test changes. |
So basically I need to patch the test file as indicated by the results of the test, do I understand this right? Sorry if it's a dumb question, it's my first time running into these. |
Yes, this should do the trick: https://github.com/haskell/haskell-language-server/blob/master/test/functional/ConfigSchema.hs#L20 Assuming, you run the test with |
39bdf50
to
1402e38
Compare
Now that was easy. Thanks for the pointer |
Well, seems I actually failed a few tests.will get back to work on it. Sorry about that |
Don't worry, we are very happy you are working on it :) |
Thanks. Maybe worth adding a WIP tag to it for now? |
Like this? |
Yes thanks! |
6bf3945
to
24d9657
Compare
Only two tests left. Of course, the first four were easy because they're actually just changes in the way ghc report things. |
Five downs, one to go |
24d9657
to
cdcd99c
Compare
@fendor : We're good to go |
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.
Amazing work, only two small comments, then we will merge!
Thank you for this great contribution :)
plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs
Outdated
Show resolved
Hide resolved
cdcd99c
to
1e41244
Compare
I'm going to re-disable splice. I'll look at it and gadt in a second time. |
3ab95d9
to
c4f71a1
Compare
c4f71a1
to
a03ab2e
Compare
@fendor : can you have a look at the failures? I think they are of the spurious kind, but if they're not, I'll also disable rename for now and add it to my todo list ;) |
Yeah, they look spurious. I will rerun the CI job once the others have finished running. |
Awesome! There will be likely another release in the next two weeks, our users will be happy to see the |
Thanks for accepting my PR. Will do my best to add a few other plugins in the meantime :p |
These changes allow the hls-refactor plugin to compile and pass the tests with ghc-9.12