Comments (5)
Hi!
Thank you for the report.
I think I've found the problem.
These modules are needed for compilation but not listed in your .cabal file's other-modules:
is a warning, not an error (https://github.com/ghc/ghc/blob/21f0f56164f50844c2150c62f950983b2376f8b6/compiler/main/GhcMake.hs#L205). It seems that haskell-code-indexer
complains because of the -Werror
flag that makes all warnings fatal (https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/using-warnings.html?highlight=werror#ghc-flag--Werror).
I've removed -Werror
flag from the list of options for GHC.
Can you try 67d0714?
from haskell-code-explorer.
Hmm, that commit doesn't build for me:
$ time stack --stack-yaml=stack-8.2.2.yaml install
cabal-helper-0.8.1.2: unregistering (switching from /home/pwaller/.local/src/github.com/haskell-code-explorer/vendor/cabal-helper-0.8.1.2/ to /home/pwaller/.local/src/github.com/alexwl/haskell-code-explorer/vendor/cabal-helper-0.8.1.2/)
haskell-code-explorer-0.1.0.0: unregistering (missing dependencies: cabal-helper)
cabal-helper-0.8.1.2: configure (lib + exe)
cabal-helper-0.8.1.2: build (lib + exe)
Progress 1/2
-- While building package cabal-helper-0.8.1.2 using:
/home/pwaller/.local/src/github.com/alexwl/haskell-code-explorer/vendor/cabal-helper-0.8.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-2.0.1.0 build lib:cabal-helper exe:cabal-helper-wrapper --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Logs have been written to: /home/pwaller/.local/src/github.com/alexwl/haskell-code-explorer/.stack-work/logs/cabal-helper-0.8.1.2.log
[1 of 2] Compiling Main ( /home/pwaller/.local/src/github.com/alexwl/haskell-code-explorer/vendor/cabal-helper-0.8.1.2/Setup.hs, /home/pwaller/.local/src/github.com/alexwl/haskell-code-explorer/vendor/cabal-helper-0.8.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/Main.o ) [flags changed]
[2 of 2] Compiling StackSetupShim ( /home/pwaller/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /home/pwaller/.local/src/github.com/alexwl/haskell-code-explorer/vendor/cabal-helper-0.8.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/StackSetupShim.o ) [flags changed]
Linking /home/pwaller/.local/src/github.com/alexwl/haskell-code-explorer/vendor/cabal-helper-0.8.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/setup ...
Configuring cabal-helper-0.8.1.2...
Preprocessing library for cabal-helper-0.8.1.2..
Building library for cabal-helper-0.8.1.2..
[1 of 4] Compiling CabalHelper.Shared.InterfaceTypes ( src/CabalHelper/Shared/InterfaceTypes.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/CabalHelper/Shared/InterfaceTypes.o )
[2 of 4] Compiling CabalHelper.Shared.Sandbox ( src/CabalHelper/Shared/Sandbox.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/CabalHelper/Shared/Sandbox.o )
[3 of 4] Compiling Paths_cabal_helper ( .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/autogen/Paths_cabal_helper.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Paths_cabal_helper.o )
[4 of 4] Compiling Distribution.Helper ( lib/Distribution/Helper.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Distribution/Helper.o )
/home/pwaller/.local/src/github.com/alexwl/haskell-code-explorer/vendor/cabal-helper-0.8.1.2/lib/Distribution/Helper.hs:101:1: error:
Could not find module ‘Cabal.Plan’
There are files missing in the ‘cabal-plan-0.4.0.0’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
101 | import Cabal.Plan
| ^^^^^^^^^^^^^^^^^
from haskell-code-explorer.
Hmm, of course that isn't to do with that, it's my fault for moving the source directory! Apologies.
from haskell-code-explorer.
It's working! Awesome, thanks.
from haskell-code-explorer.
Cool!
If you have any ideas or suggestions on how to improve the tool, I'd love to hear them.
from haskell-code-explorer.
Related Issues (20)
- Consider including GHC version in executable name HOT 2
- How to index all locally installed packages? HOT 6
- Default `--package` to `.` HOT 2
- Make more mobile browser friendly HOT 3
- Testing team HOT 2
- No "open in new tab" option after right clicking an identifier HOT 4
- Client HOT 4
- Are there any new features? HOT 3
- GHC version match check seems to be checking the version that Cabal was compiled with HOT 4
- segfault related to TemplateHaskell HOT 9
- Add instructions on how to index the GHC code base HOT 2
- submodule HOT 2
- Immediately fail on GHC mismatch HOT 1
- No cabal files HOT 4
- Including more packages in https://haskell-code-explorer.mfix.io/ HOT 6
- ghc-8.10.1 support? HOT 1
- Failing to index HOT 3
- Docker image for easy and reproducible deployment
- Port to GHC 9.x.x and emacs package HOT 3
- Comparison with HLS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haskell-code-explorer.