Giter Site home page Giter Site logo

Comments (5)

alexwl avatar alexwl commented on June 18, 2024

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.

pwaller avatar pwaller commented on June 18, 2024

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.

pwaller avatar pwaller commented on June 18, 2024

Hmm, of course that isn't to do with that, it's my fault for moving the source directory! Apologies.

from haskell-code-explorer.

pwaller avatar pwaller commented on June 18, 2024

It's working! Awesome, thanks.

from haskell-code-explorer.

alexwl avatar alexwl commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.