Modules not being parsed in HLS
billksun opened this issue · 0 comments
billksun commented
Commit 27aacd1 seem to have caused issues when modules/source files are added inside of src
. For example, when I add src/Lib/Lib.hs
, HLS cannot parse the file and I get this error:
Failed to run ["cabal","v2-repl","/home/bill/Projects/test/src/Lib/Lib.hs"] in directory "/home/bill/Projects/sari". Consult the logs for full command and error.
Failed command: cabal --builddir=/home/bill/.cache/hie-bios/dist-test-46b5963281c285ba43873006efe139c6 v2-repl --with-compiler /home/bill/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/bill/.cache/hie-bios/ghc-pkg-1267337f2438d8be4f64a47aa79ad3bf /home/bill/Projects/test/src/Lib/Lib.hs
Error: cabal: Failed extracting script block: `{- cabal:` start marker not
found
Process Environment:
HIE_BIOS_GHC: /nix/store/4wjl91hrizxghwqy18a1337gq2y9mh40-ghc-9.2.7/lib/ghc-9.2.7/bin/ghc
HIE_BIOS_GHC_ARGS: -B/nix/store/73mpvqn6z1sh3y1mx9g716wmfv1qmfqv-ghc-9.2.7-with-packages/lib/ghc-9.2.7
cradle
To get rid of this error, I had to manually add back the component
and path
parameters in hie.yaml
:
cradle:
cabal:
- component: exe:test
path: src