halive icon indicating copy to clipboard operation
halive copied to clipboard

Not a valid Unicode code point!

Open ego opened this issue 6 years ago • 2 comments

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!)

ego avatar Jan 28 '18 21:01 ego

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.

schell avatar Jan 29 '18 03:01 schell

@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?

ego avatar Jan 29 '18 20:01 ego