Skip to content

Re-enabling Cabal-3.12 #493

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

Merged
merged 2 commits into from
Apr 18, 2025
Merged

Re-enabling Cabal-3.12 #493

merged 2 commits into from
Apr 18, 2025

Conversation

GuillaumedeVolpiano
Copy link
Contributor

@jaspervdj : the bump to Cabal-3.14 creates an issue downstream with haskell-language-server, where many ghc-9.10 plugins are hard limited to Cabal-3.12. This patch attempts to adress the situation.

@jhrcek : I think this respects the logic behind your changes.

Copy link
Contributor

@jhrcek jhrcek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extending version range of cabal dependency makes sense to me.
Could you please make sure hls can be built with these looser constraints (e.g. using source-repository-package referring to this PR's commit in hls repo similar to how this PR does it?

@GuillaumedeVolpiano GuillaumedeVolpiano force-pushed the ghc9.10 branch 2 times, most recently from 02bbaea to 84684c4 Compare April 14, 2025 15:24
@GuillaumedeVolpiano
Copy link
Contributor Author

Extending version range of cabal dependency makes sense to me. Could you please make sure hls can be built with these looser constraints (e.g. using source-repository-package referring to this PR's commit in hls repo similar to how this PR does it?

Note that the tests will only work on ghc-9.10 because we have another issue : there is no hlint version compatible with ghc-lib-parser-9.10 (they went directly from 9.8 to 9.12)

@GuillaumedeVolpiano
Copy link
Contributor Author

@jhrcek : tests pass on ghc-9.10

Copy link
Contributor

@jhrcek jhrcek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great news 🙂 @jaspervdj could you please release 0.15.0.1 with these changes? We seem to need these relaxed version bound to be able to enable stylish in hls for ghc 9.10

@GuillaumedeVolpiano
Copy link
Contributor Author

The changes are also working for Cabal 3.10, so I relaxed the testing conditions, this way we still support ghc-9.6 and ghc-9.8

@GuillaumedeVolpiano
Copy link
Contributor Author

OK, so we have another issue with ghc-9.6.7, linked to this . I'm trying to track it down, hopefully it's here and not in ghc-lib-parser

@GuillaumedeVolpiano GuillaumedeVolpiano force-pushed the ghc9.10 branch 2 times, most recently from f7b060e to 7e9e95d Compare April 15, 2025 12:32
@GuillaumedeVolpiano
Copy link
Contributor Author

So the issue with ghc-9.6.7 is with ghc-lib-parser. Reported here digital-asset/ghc-lib#595
What do you want to do?

@GuillaumedeVolpiano
Copy link
Contributor Author

GuillaumedeVolpiano commented Apr 15, 2025

For what it's worth, there is the same issue with ghc-lib-parser-9.12.2 and ghc-9.8.4. The folks over at #ghc said to downgrade to ghc-lib-parser-9.8.5 (for ghc-9.6.7). I'm going to disable ghc-9.6 from the tests for now. If we want to include ghc 9.6 support, we are going to need to wait for a potential update of ghc-lib-parser-9.10.

Oh, and in case you're wondering : there was no issue until yesterday because apparently Ubuntu just pushed ghc-9.6.7.

Update: the issue is actually fixed in the live version of ghc-lib-parser ( digital-asset/ghc-lib@d4e1bc6#diff-472eaebd24c7e540a4d552d3b13cab6de8eb8d327990ae09778d91f30ae430f1 ). So either we wait for a new release, or we just ditch 9.6 for now.

@jhrcek
Copy link
Contributor

jhrcek commented Apr 15, 2025

Maybe no need to exclude 9.6. from CI altogether - you could just "pin" the previous patch version by specifying "9.6.6" in CI config (+ add a short comment linking the issue with 9.6.7 so it's clear in the future why more specific version is used)?

I'm not sure about this, I haven't looked at upstream issues, so feel free to ignore this comment for now.
We don't have to rush with supporting stylish in hls with 9.10 - better wait few days until things settle for 9.6.7 release, than pushing confusing workarounds..

@GuillaumedeVolpiano
Copy link
Contributor Author

Well, I'll follow @jaspervdj and your lead on when is the best time to release. I've followed your advice and re-enabled 9.6.6 in the ci, with a note. Tests passed on my fork.

My 2 pence: we don't know if and when a new version of ghc-lib-parser-9.10 will be released, and there is no other reason the tests should fail on ghc-9.6.7. Also, we need this Cabal backport if we want to be able to use the ghc-lib-parser-9.12 version with <=ghc-9.10 (where we'll encounter the same issue with ghc-9.8.4 vs 9.8.3 for now, I think). As this is a fix, I think we could release, but once again, not my call on either side of the stream ;)

@jaspervdj
Copy link
Member

Thanks! I am pushing one commit here to minimize the diff. Then I'll release these changes, and after that I'll work on releasing #491.

@jaspervdj jaspervdj merged commit cc7ad86 into haskell:main Apr 18, 2025
7 checks passed
@jaspervdj
Copy link
Member

Released in v0.15.0.1 #494

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants