-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while indexing: cannot satisfy -package-id #16
Comments
Thank you for the issue! It looks like a GHC version mismatch.
(from https://www.haskell.org/platform/contents.html) It seems that
ghc-8.4.4 cannot find array-0.5.3.0. Can you compile
Good idea! I will add the GHC command line to the debug output. |
Thanks for the quick response! I can't believe I didn't catch that. Unfortunately, it doesn't seem that |
After doing so, I'm seeing the following:
Perhaps this package shouldn't look for identical hashes, but just identical versions? |
Is it possible to use |
It would be helpful to see command line arguments for |
Thanks again for taking a look! I'll see if I can get Nix building the vendored version. Any chance those changes will be upstreamed? Here's the CLI:
and the log: |
I assume that
It looks like the problem has already been fixed in master. The code that caused 'Could not deduce (Control.Monad.Fail.MonadFail m)' error while compiling |
Okay, after running
I still get a very similar result: |
Can I get I've compiled (using GHC-8.6.3, cabal-install 2.4.1.0 and You can unpack the archive and start the server: |
I imagine that whatever is going on has to do with the fact that I am getting the libraries involved via a |
This, indeed, seems to be the case. It turns out that the path to a global package database is
Of course, there is also an option to build and index |
@alexwl That worked like a charm! Thanks for all the help, I'm very excited to be able to use this. Here was my Nix solution: { pkgs ? import ../../galois-haskell-nix/pinned-pkgs.nix { } }:
let name = "llvm-pretty-bc-parser";
gpkgs = import ../../galois-haskell-nix/default.nix { compiler = "ghc843"; };
this = gpkgs.haskellPackages.${name};
ghcWH = gpkgs.haskellPackages.ghcWithHoogle (hpkgs: with hpkgs; [
ghcid
] ++ this.buildInputs ++ this.propagatedBuildInputs);
ghcPkgConf = ghcWH + "/lib/ghc-8.4.3/package.conf.d";
in with pkgs; stdenv.mkDerivation {
inherit name;
src = if lib.inNixShell then null else lib.sourceFilesBySuffices ../. [ ".cabal" ".hs" ];
shellHook = ''
alias haskell-code-indexer='haskell-code-indexer --ghc "-package-db ${ghcPkgConf}"'
'';
buildInputs = [
ghcWH
gpkgs.haskellPackages.haskell-code-explorer
haskellPackages.cabal-install
];
} |
@siddharthist Awesome, thank you for the Nix file! |
I built this project with the following Nix file:
where
haskell-code-explorer
was generated bycabal2nix
.I then dropped into a
nix-shell
for the project I want to index, and calledand got:
But
ghc-pkg
lists it:Any idea why it can't be found?
cabal build
works just fine.(One thing that might be helpful in debugging this is if the debug logging actually printed the full GHC command line rather than just the flags.
The text was updated successfully, but these errors were encountered: