Closed qrilka closed 5 years ago
It seems that file /home/qrilka/ws/h/xeno/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup-config
doesn't exist.
Does the directory /home/qrilka/ws/h/xeno/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/
exist?
Can you execute the command stack path --dist-dir
in a directory with the source code of xeno package?
stack path --dist-dir
returns relative path of a dist-dir
where setup-config
file should be. (For example, I installed xeno-0.3.4 on my machine and the dist-dir
is .stack-work/dist/x86_64-linux/Cabal-2.0.1.0
).
Then you can try to add --dist
option to haskell-code-indexer
:
stack exec -- haskell-code-indexer -p ../xeno --dist DIST_DIR
You're right, that was the case. Running stack build
on the project fixed the problem.
I think it's worth to document this requirement.
That doesn't sound like a reasonable requirement to force everyone to use stack.
Stack is not a requirement. It is possible to index packages built by cabal-install (cabal
). You need Stack only to build haskell-code-indexer
and haskell-code-server
.
It fails with the following message:
The output of that command could be found at https://gist.github.com/qrilka/422fefa3208bb94e7d1093bf450f6116