-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Build failure with HLS-hlint-plugin #3839
Comments
Hi, thank you for your bug report! You seem to try to build an almost one year version of that plugin... We don't support such a building from source.
It likely has been fixed, as hls-hlint-plugin that ships with 2.3.0.0 uses You can take a look at the plan.json for your GHC version https://downloads.haskell.org/~hls/haskell-language-server-2.3.0.0/plan_json.tar, it tells you which versions we use.
I think you need to be a bit more specific, what are you trying to do? After 2.0.0.0, it gets easier to see which plugin and ghcide versions are compatible, since we changed the version scheme to use lockstep versioning. |
Hi, I'll expand on the context of what I want to achieve. The overall aimOn Arch Linux, the official GHC package is at 9.0.2. While the ultimate goal is to update that to 9.6 (or since recently 9.8), the current stepping stone towards that is an update to 9.2. This means that all packages depending on GHC must be compatible with 9.2 (or more precisely, 9.2.8). This is a hard requirement. The specific issue with haskell-language-serverFor one thing, updating And I want to keep the changes in terms of packages as minimal as possible. A patch to get this plugin working is much easier than going through dozens of packages again. What I'd like from youNow, all of the above is mostly a me-problem. Where I'm slightly confused though, is that the How to proceedThinking about it, while I can't update all packages consistently, I might be able to update |
@fendor I have now rebuilt the packages in order to update I guess this issue now qualifies as a support request for a supported version. |
You say, our build is broken with GHC 9.2.8? Our CI is succeeding with
|
No, not at all, as I said, the package I'm building has some modifications, and those are probably not reflected in your CI. The main one being that the cpp-option Just FYI, the link is already expired, so I was never able to access it. |
Effectively prior to 2bd9ab4, AFAICT, the codepath not using @fendor Would it be reasonable to remove the guarded codepaths? This makes hacks like overriding the -- Vekhir |
If the codepath works again with that PR it would be fine with me. For now, I've switched to using |
The decision has been made to backport the PR #3757 to the Arch package of |
Note that we still won't be testing the non- |
Since all Arch packages are built against a single GHC version, the benefits of We'll do our own checks and maintainance, so your burden should be additionally minimized. |
Your environment
OS: Arch Linux
Kernel: Linux 6.5.6-arch2-1
Built from source (u = updated version):
GHC: 9.2.8 (u)
haskell-apply-refact: 0.11.0.0 (u)
haskell-hls-hlint-plugin: 1.1.1.0
haskell-ghc-exactprint: 1.5.0 (u)
haskell-hls-plugin-api: 1.6.0.0
haskell-ghc-lib-parser: 9.2.8.20230729 (u)
haskell-ghc-lib-parser-ex: 9.2.1.1 (u)
For brevity, all other packages dependent on GHC have been rebuilt aswell. I can provide a complete list of changes on request.
What's wrong?
HLS-Hlint-Plugin in version 1.1.1.0 should work with haskell-apply-refact 0.11.0.0. Instead, however, there are build errors (see below), so the build fails. Due to the various version constraints, I can't cleanly separate the effects of updating GHC,
apply-refact
, and the other components. Updatingapply-refact
to 0.13.0.0 has no effect, and updatinghls-hlint-plugin
to 1.1.2.0 also has no effect.I don't have this issue with any other plugin.
Do you have an idea where to look for potential issues or solutions? Has this been fixed in later versions? I'm mainly looking for a patch to backport rather than updating HLS, as I'm for example constrained by
fourmolu
to stay below2.3.0.0
.Debug information
During building of HLS-Hlint-Plugin, the following series of errors occurs:
The text was updated successfully, but these errors were encountered: