question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error building hoogle and hindent

See original GitHub issue

Repro:

  1. Open Haskell project

Expected: no errors Instead: 2 error popups with following text:

first
Executing `/home/develop7/bin/stack --stack-root /home/develop7/.intellij-haskell/lts-11 --resolver lts-11 --compiler ghc-8.2.2 --system-ghc --local-bin-path /home/develop7/.intellij-haskell/lts-11/bin install hoogle` failed: /home/develop7/bin/stack --stack-root /home/develop7/.intellij-haskell/lts-11 --resolver lts-11 --compiler ghc-8.2.2 --system-ghc --local-bin-path /home/develop7/.intellij-haskell/lts-11/bin install hoogle: Selected resolver: lts-11.13 Error: While constructing the build plan, the following exceptions were encountered: In the dependencies for hoogle-5.0.17.3: conduit-1.2.13 from stack configuration does not match >=1.3.0 (latest matching version is 1.3.0.2) needed since hoogle is a build target. Some different approaches to resolving this: * Set 'allow-newer: true' to ignore all version constraints and build anyway. * Consider trying 'stack solver', which uses the cabal-install solver to attempt to find some working build configuration. This can be convenient when dealing with many complicated constraint errors, but results may be unpredictable. * Recommended action: try adding the following to your extra-deps in /home/develop7/projects/stack/stack.yaml: - conduit-1.3.0.2 Plan construction failed.
Second
Executing `/home/develop7/bin/stack --stack-root /home/develop7/.intellij-haskell/lts-11 --resolver lts-11 --compiler ghc-8.2.2 --system-ghc --local-bin-path /home/develop7/.intellij-haskell/lts-11/bin install hindent` failed: /home/develop7/bin/stack --stack-root /home/develop7/.intellij-haskell/lts-11 --resolver lts-11 --compiler ghc-8.2.2 --system-ghc --local-bin-path /home/develop7/.intellij-haskell/lts-11/bin install hindent: Selected resolver: lts-11.13 hindent-5.2.5: configure hindent-5.2.5: build -- While building custom Setup.hs for package hindent-5.2.5 using: /home/develop7/.intellij-haskell/lts-11/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file" Process exited with code: ExitFailure 1 Logs have been written to: /home/develop7/projects/stack/.stack-work/logs/hindent-5.2.5.log Configuring hindent-5.2.5... Preprocessing library for hindent-5.2.5.. Building library for hindent-5.2.5.. [1 of 4] Compiling HIndent.CabalFile ( src/HIndent/CabalFile.hs, .stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/build/HIndent/CabalFile.o ) /tmp/stack25945/hindent-5.2.5/src/HIndent/CabalFile.hs:11:1: error: Could not find module ‘Distribution.PackageDescription.Parse’ Perhaps you meant Distribution.PackageDescription.Parsec (from Cabal-2.2.0.1) Distribution.PackageDescription.Check (from Cabal-2.2.0.1) Distribution.PackageDescription.Quirks (from Cabal-2.2.0.1) Use -v to see a list of the files searched for. | 11 | import Distribution.PackageDescription.Parse | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Note: running above commands in a terminal succeeds.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
rikvdkleijcommented, Jun 23, 2018

Also soon after this I’m getting following exception:

That is because after the build the plugin expects that hlint is installed.

Thanks for reporting. Changed plugin so it will handle that case properly 😄

1reaction
develop7commented, Jun 17, 2018

Ya, running stack update in intellij-haskell’s sandbox actually did update indexes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Indentation Errors During BUILD · Issue #9653 · google/jax
The error disappears and the build is successful after manually fixing the BUILD file. Please: Check for duplicate issues. Provide a complete ...
Read more >
error - Hoogle - Haskell.org
Throw pure errors. Use this function only to when you are sure that this branch of code execution is not possible. DO NOT...
Read more >
Google Cloud Function crashing with error: Build failed
I am trying to run a deep learning model using Google Cloud functions. Just trying to load it but it gives the following...
Read more >
Error Reporting | Google Cloud
Automatic and real-time. Real production problems can be hidden in mountains of data. Error Reporting helps you see the problems through the noise...
Read more >
Google's home security system, Nest Secure's had a hidden ...
Google says that the microphone on Nest Secure was never meant to be hidden, product specification was missed it due to an internal...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found