-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Building HLS fails with "happy: 1861: unrecognised directive: %shift" #3783
Comments
I have never seen that error and our CI succeeds for almost this arch/platform/ghc/cabal combination. Perhaps you have an old |
Can't remember I have installed
Tried to build with latest stack (using ghcup for managing cabal and ghc) and that worked out ok so it seems to be an issue with cabal? One thing I found searching for similar issues is this: haskell/cabal#8489 |
Let's take a look:
So However, normally cabal picks the latest versions of packages. I would try building with |
I did manage to build HLS with cabal 3.8.1.0. After that I switched to cabal 3.10.1.0 and now I then tried to build with the |
Okay, I don't understand why that isn't changing things. Maybe |
I can try to do some investigation on my own to see if I can narrow down the root of the problem further. But perfectly it's fine to close this issue because I don't think it's HLS's "fault". Thanks for the help. |
Just for the record I have now found the cause of this issue. See: digital-asset/ghc-lib#484 |
I have some trouble trying to build HLS from source to be able to try som some HLS plugin hacking.
Your environment
MacOS X 11.7.9 (old intel mac)
From ghcup:
What's wrong?
Following the instructions https://haskell-language-server.readthedocs.io/en/latest/contributing/contributing.html#building
Any suggestions how to fix this error? Thanks in advance.
The text was updated successfully, but these errors were encountered: