-
Notifications
You must be signed in to change notification settings - Fork 175
Error with ghc-mod on CabalHelper/Licenses.hs:56:8 #905
Comments
I think you're using a stackage nightly in your project which has Cabal-2.x already, actually I can see that from the output above. That isn't supported by cabal-helper-0.7.x. The release of c-h-0.8 is pending the merging and deployment on hackage of haskell/cabal#4714. After that we will need to release a version of ghc-mod compatible with c-h-0.8 which is the easy part. For now you'll have to use lts-9.1 in your project (which appears to still have Cabal-1.24), sorry. |
@DanielG thanks! You're right. I have no idea how it ended in that state, nuking the |
You did change the |
Yeah, it's a bit of a weird issue with this folder only. The
Running
The cabal file contains,
Also, I got it working outside of this, so it's not a pressing issue by any means, but I am still interested in what might be wrong though :) |
Very strange. If |
Hmm, I get (globally),
And inside my project,
Notably the I tried Should I move this over to stack's issue tracker instead? |
Sounds like a plan, I really have no idea why Stack would have the Cabal version used to build projects deviate from the one in the stackage snapshot.. |
Moved to commercialhaskell/stack#3417. |
To sum up how I fixed it (although still remains how it got there), I went to So:
You can probably close this issue here, since this seems to be entirely on the |
haskell/cabal#4714 is now merged, but I can't tell if it's deployed on Hackage. Any idea where to check on the status of this? |
We've made progress since the but cabal-helper remains the blocker. See #900 (comment). |
Note that this same problem is an issue for recent Nix. |
|
So, with #900 (comment), this can move forward? EDIT: Ah, that's you also hacking over there - sorry for the noise. |
I seem to be getting the same error as reported in #831 whenever I try to run
ghc-mod check src/Parser.hs
.ghc-mod
was installed with stackage LTS 9.1, which seems to bringand internally use
cabal-helper
7.3.0 (at least according to stackage.org).The earlier issue I referenced seemed to have it solved by updating either
ghc-mod
orcabal-helper
, but both should be in sync here using the newest versions.I can also upload my source code that I'm trying it on it that helps. All the
stack.yaml
contains isresolver: lts-9.1
.The text was updated successfully, but these errors were encountered: