Haskell-ide-engine: Installation fails with error: no .cabal file could be found in ...submodules/HaRe

Created on 24 Apr 2018  Â·  4Comments  Â·  Source: haskell/haskell-ide-engine

Following the instructions on https://github.com/haskell/haskell-ide-engine#installation I did:

git clone https://github.com/haskell/haskell-ide-engine
cd haskell-ide-engine
make

and got the following error:

roland@goms:~/Projekte$ git clone https://github.com/haskell/haskell-ide-engine
Klone nach 'haskell-ide-engine' ...
remote: Counting objects: 9797, done.
remote: Total 9797 (delta 0), reused 0 (delta 0), pack-reused 9796
Empfange Objekte: 100% (9797/9797), 2.78 MiB | 2.50 MiB/s, Fertig.
Löse Unterschiede auf: 100% (4570/4570), Fertig.
roland@goms:~/Projekte$ cd haskell-ide-engine
roland@goms:~/Projekte/haskell-ide-engine$ make
stack --stack-yaml=stack-8.0.2.yaml install                  \
    && cp ~/.local/bin/hie ~/.local/bin/hie-8.0.2            \
    && cp ~/.local/bin/hie ~/.local/bin/hie-8.0              \
&& stack --stack-yaml=stack-8.2.1.yaml install               \
    && cp ~/.local/bin/hie ~/.local/bin/hie-8.2.1            \
    && cp ~/.local/bin/hie-8.2.1 ~/.local/bin/hie-8.2        \
&& stack --stack-yaml=stack.yaml install                     \
    && cp ~/.local/bin/hie ~/.local/bin/hie-8.2.2            \
    && cp ~/.local/bin/hie-8.2.2 ~/.local/bin/hie-8.2
Downloaded lts-9.21 build plan.    
Stack looks for packages in the directories configured in the 'packages' variable defined in your stack.yaml
The current entry points to /home/roland/Projekte/haskell-ide-engine/submodules/HaRe/ but no .cabal file could be found there.
Makefile:4: die Regel für Ziel „build“ scheiterte
make: *** [build] Fehler 1

I get the same error for stack install:

roland@goms:~/Projekte/haskell-ide-engine$ stack install
Downloaded lts-11.2 build plan.    
Stack looks for packages in the directories configured in the 'packages' variable defined in your stack.yaml
The current entry points to /home/roland/Projekte/haskell-ide-engine/submodules/HaRe/ but no .cabal file could be found there.
roland@goms:~/Projekte/haskell-ide-engine$ 

installations with

stack --stack-yaml=stack-8.2.1.yaml install

stack --stack-yaml=stack-8.0.2.yaml install

fail with the same error.

OS: Debian 9 x86_64

stack: Version 1.6.3, Git revision b27e629b8c4ce369e3b8273f04db193b060000db (5454 commits) x86_64 hpack-0.20.0

make: GNU Make 4.1

cabal:
cabal-install version 2.2.0.0
compiled using version 2.2.0.0 of the Cabal library

Most helpful comment

I ran into this too. You need to clone the submodules. The easiest way to do this is probably to add the --recurse-submodules flag when you clone the repo.

All 4 comments

I ran into this too. You need to clone the submodules. The easiest way to do this is probably to add the --recurse-submodules flag when you clone the repo.

See also issue #535. Many thanks!

@hansroland your link leads to this issue.

Having the same problem :P Chose the wrong day to learn haskell, just started today

Was this page helpful?
0 / 5 - 0 ratings