[Nix-dev] Fwd: ghc-mod fail errors: bug: gmeioException
Alan & Kim Zimmerman
alan.zimm at gmail.com
Mon Jan 19 17:28:39 CET 2015
I know that outside of nix I resolved this by doing a fresh "cabal install
cabal-install".
Basically the "dist/config" binary file is brittle, and has to be read with
exactly the same version that wrote it.
So the Cabal library used in cabal and the one in ghc-mod must be
identical, because ghc-mod tries to read it, and under certain
circumstances will do a configure, so it must be readable by the normal
cabal process too.
Alan
On Mon, Jan 19, 2015 at 6:20 PM, Carlo Nucera <meditans at gmail.com> wrote:
> Hi Alan,
> I did a `cabal clean && cabal configure`, then a `cabal clean && cabal
> configure && cabal build`, and just to be sure I reinstalled all my
> haskell environment. The package gets installed in ghcWithPackages,
> but I still have that error inside emacs with ghc-mod.
>
> Is there anything else I could try?
> Best regards
> Carlo
>
> 2015-01-19 5:30 GMT+01:00 Alan & Kim Zimmerman <alan.zimm at gmail.com>:
> > You need to cabal clean && cabal configure again in your project.
> >
> > The dist/config file is now binary, and you have a version mismatch
> >
> > Alan
> >
> > On 19 Jan 2015 01:35, "Carlo Nucera" <meditans at gmail.com> wrote:
> >>
> >> Hi all, I recently did a `nix-channel update` and a reinstall of my
> >> programs, and now I have in emacs+ghc-mod this problem:
> >>
> >> Fail errors:
> >>
> >> BUG: GMEIOException /home/carlo/code/haskell/helios/dist/setup-config:
> >> hGetContents: invalid argument (invalid byte sequence)
> >>
> >> After a brief search, it's probable that the issue is caused by the
> >> new version of cabalInstall.
> >> (see https://github.com/kazu-yamamoto/ghc-mod/issues/417)
> >>
> >> Anyone has had the same problem on nixOS?
> >>
> >> Best Regards
> >> Carlo
> >> _______________________________________________
> >> nix-dev mailing list
> >> nix-dev at lists.science.uu.nl
> >> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150119/7e1be892/attachment.html
More information about the nix-dev
mailing list