lukexi / halive

Live recompiler for Haskell
BSD 2-Clause "Simplified" License
263 stars 17 forks source link

Not a valid Unicode code point! #31

Open ego opened 6 years ago

ego commented 6 years ago

I have an issue:

  1. I successfully build halive and it locate here /Users/jim/clone/halive/.stack-work/install/x86_64-osx/lts-8.2/8.0.2/bin/halive

  2. But when I build other haskell project with stack exec -- ghc --version The Glorious Glasgow Haskell Compilation System, version 8.2.2 and try to run halive I got an error like this: /Users/jim/.stack/snapshots/x86_64-osx/lts-10.3/8.2.2/pkgdb/package.cache: GHC.PackageDb.readPackageDb: inappropriate type (Not a valid Unicode code point!)

schell commented 6 years ago

Hi @0x7c48 - I have run into the same problem. It's because you're using halive built with GHC 8.0.2 to check and recompile a project built with GHC 8.2.2. See my pull request https://github.com/lukexi/halive/pull/28, and also another similar issue that was closed yesterday https://github.com/lukexi/halive/issues/29. The latter issue should have a fix for you as well.

ego commented 6 years ago

@schell Thanks! I understood, I need to build a halibe exactly with that ghc version, which I use in my project. So maybe halive needs some tags with different ghc support?