ghc-mod
ghc-mod copied to clipboard
stack: readPackageDb: inappropriate type
ghc-mod: $HOME/.stack/snapshots/x86_64-linux/lts-2.22/7.8.4/pkgdb/package.cache: GHC.PackageDb.readPackageDb: inappropriate type (not a ghc-pkg db file, wrong file magic number)
Doing stack ghc -- --version on every run seems too slow can't think of a better way to do this right now.
:+1:
You can make stack expose information about current resolver, including GHC version. Maybe it may write it to a file inside .stack-work.
I'm getting this error:
ghc-mod: /home/mahdi/.stack/snapshots/x86_64-linux/lts-6.13/7.10.3/pkgdb/package.cache: GHC.PackageDb.readPackageDb: inappropriate type (Not a valid Unicode code point!)
is this related?
@mdibaiee Probably, see: https://github.com/DanielG/ghc-mod/wiki#readpackagedb-inappropriate-type.
@DanielG: Oh, that actually worked, thanks.
i got the same problem
ghc-mod: /home/himarsmty/.stack/programs/x86_64-linux/ghc-nopie-8.2.2/lib/ghc-8.2.2/package.conf.d/package.cache: GHC.PackageDb.readPackageDb: inappropriate type (Not a valid Unicode code point!)
I am confused,may any one help me