ghciwatch
ghciwatch copied to clipboard
multiple components with cabal-install 3.12.1.0
What happened?
carrying on from https://github.com/MercuryTechnologies/ghciwatch/issues/308 - cabal-install 3.12.1.0 is out now, and the multiple component repl seems to work. unfortunately, ghciwatch crashes:
ghciwatch --command "cabal repl --enable-multi-repl mylib mylib:mylib-test" --watch src --watch test --test-ghci main
...ghci loading elided...
Ok, 13 modules loaded.
Error: × Tasks failed:
│ • run_ghci: Failed to parse `:show targets` output
running cabal repl --enable-multi-repl mylib mylib:mylib-test
and running :show targets
, it shows my library modules and my test modules, but also 'test/Main.hs' in the list, so perhaps not surprising ghciwatch crashes if it's expecting a module name.
What did you expect to happen?
expected ghciwatch to load and run my tests.
Steps to reproduce the issue
i think you can replicate this with any library with a test component.
The version of ghciwatch with the bug
ghciwatch 1.0.1