Failed to install ghc-mod with ghc 7.10 & cabal 1.22 #437
Comments
This is all fixed in my fork, I'm just finishing up a few things before releasing it as for example case splitting is currently broken with 7.10 :/ |
OK, thanks Daniel. Looking forward to the upgrade :) |
Are there any updates on this? Also (expectedly) affects Cabel 1.23. Missing ghc-mod a lot! |
Working on it still, unfortunately I managed to break case splitting with my changes somehow so I can't release this yet :/ |
Anything we could do to make this go away? |
Any word on an update on this? |
I would also appreciate an update on this issue. It's really driving me nuts! |
The workaround is basically to downgrade ghc for now as work has me rather tied up at the moment so I don't have any time to fix this properly, sorry. The GHC 7.10 support is all mangled up with a whole lot of other far reaching changes in my fork so It's not really feasible to release anything without finishing all that up first. (See: master...DanielG:master) |
Downgrading GHC also forces a downgrade of cabal-install below 1.22 since ghc-mod does not work with that one either. |
Right now I'm trying to fix all the failures in the test suite, which I thought I already had working at some point, but It's going quite slowly as I only have a few hours every few days. I'm not sure anyone would really be able to help much there without digging quite deep into the code but if anyone wants to help with that or testing in general just swing by IRC and I can give some guidance on how to help. So far people have only been complaining ;) Not sure how hackage trustees specifically would be any more help than just anyone willing to spend some time on this. |
I'll see if I can find some time. If you want some faster help, a post to
|
Anyone have advice regarding explicit steps I can take to work around this for now? I'm using https://ghcformacosx.github.io/ and have versions of ghc/cabal install up to date with that. |
@joshacheson exactly being up to date is the problem. Solving for now means: downgrade. |
Yeah sorry, I'm just not quite sure how to downgrade / obtain an older version of this. Sorry for bein such a newb. edit: I realize this isn't the obligation of anyone who works on ghc-mod to tell me this, but if oyu know off-hand it'd be a great help. Otherwise no worries. |
@joshacheson there's an older version at the same website. You just need to stick with that and wipe out the new one from your system (ghc, cabal, and the cabal home). |
@joshacheson I just downgrade to ghc 7.8.4 and cabal 1.20.0.3, and succeed in installing ghc-mod |
Any progress on GHC 7.10 support? Having exact same error:
|
Experiencing the same issue here as well Language/Haskell/GhcMod/Gap.hs:256:18: """ |
Guys, everybody will be having this issue! There're two options solely, help or downgrade. |
In case anyone wants to start working on this (I do not have the insight into GHC nor ghc-mod and don't feel competent enough to fix this), there is some things I found (take everything I say with a grain of salt): I hope this helps. |
DanielG has a lot of interconnected pending changes -- you'd need guidance from him first. |
I can confirm that Daniel's [1] fork (upcoming release) work well with GHC 7.8.4 and cabal-1.22. I've tried to look at sources of ghc-mod because of cabal-1.22 issue, but unfortunately my current experience is too small to make anything helpful. I heard that GHC 7.10 should eliminate cabal-1.22 issue, and hoped that it's possible to build ghc-mod with it. |
I had huge problems with ghc-mod, vim and syntastic, but everything works now. I followed HuStmpHrrr advice and modified the vesion in the .cabal file to the latest. The 0 version gave problems. The build problem still persists if I try to install it using the hackage repos. |
I'm one of those Windows users :) Started learning Haskell yesterday and wanted to setup Atom integration, which needed ghc-mod, and ran into this issue to. Am I correct the solution at this moment is still simply the following?
|
On 29 July 2015 11:49:58 CEST, David Cumps notifications@github.com wrote:
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
I added a trailing slash, seems to have worked too
|
You should set a version in ghc-mod.cabal if you compile from source since some editor plugins check the version string and can't handle the 0 there. |
Another issue with the 0 version is that you can’t just use |
For those working Nix who want to use ghc-mod from git, you can put something like this in your (ghc-mod.overrideDerivation (attrs: {
src = pkgs.fetchFromGitHub {
owner = "kazu-yamamoto";
repo = "ghc-mod";
rev = "4b2be9c9edbd377c3d95b6685ab53e7c5270edea";
sha256 = "1x8mifvwnlh9nsyq2zyg2fakqd8bam07z983wm3m6p2nm77aq85m";
};
nativeBuildInputs = [ cabal-helper cereal ] ++ attrs.nativeBuildInputs;
postInstall = "";
})) |
@CumpsD, your comment saved a lot of time for me. Thank you. |
👍 to get Atom ghc integration working with ghc 7.10 |
\o/ |
@CumpsD I'm a windows(10) user too, but I run into the same problem again while setting up Atom env. Do I need some other operations? |
how come this lasts so long... if the master is fine now why don't upload it. |
Feel free to speed things along by fixing one of these: https://github.com/kazu-yamamoto/ghc-mod/milestones/v5.3.0.0 :P But seriously if we get that stderr stuff finished today we'll probably do the release this evening and fix the other issues later. |
Relatively new to Haskell, trying to get this set up and cannot build ghc-mod on Windows 10. I tried hackage
|
brb, releaseing new cabal-helper ;) |
Ok give hackage a few minutes to update the index then |
As soon as this was ready the new version shoud've been uploaded. This is a much higher priority bug than any other on the list. |
Well it's been released like two hours ago so stop bitching already. grumbles ungrateful bunch these hackers.. :P |
I'm having this issue even using the
Before all this I tried to install some dependencies individually like happy but it didn't work either. BTW, I'm not using brew but Haskell for Mac OS X, because it didn't work with brew either. |
|
Oh and cabal warned you, didn't it? |
Actually please open a new issue there's 46 people being notified about this xD |
From a fresh clone,
cabal install
fails with:Language/Haskell/GhcMod/Gap.hs:256:18:
Not in scope: data constructor ‘ExposePackageId’
Perhaps you meant ‘ExposePackage’ (imported from DynFlags)
ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.0.20141222
~/git/ghc-mod ghc710 master*
cabal --version
cabal-install version 1.22.0.0
using version 1.22.0.0 of the Cabal library
The text was updated successfully, but these errors were encountered: