You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
First of all, thanks a lot for HIE that is now my Haskell engine in VSC.
Here is an issue I observe when I have project with a main source directory + a test one.
Summary
I have a project built with several targets (library, executable, test-suite).
The "main" sources are in src, while the tests are in test.
All is ok with the source files but on test files modules are not found.
How to reproduce
git clone https://github.com/pascalpoizat/veca-haskell
cd veca-haskell
gco multiple-component-instances
open . -a Visual\ Studio\ Code
Then in VSC open any file in the test directory (eg EventsTests.hs).
There is an error on the two Tasty imports.
[ghcmod]
Could not find module ‘Test.Tasty’
Use -v to see a list of the files searched for.
Thanks @alanz with stack test (or my "run" command, stack clean; stack test :veca-haskell-test --ta "--html result.html" --coverage --haddock --no-haddock-deps) it works fine.
Got error while processing diagnostics: <no location info>: error: module ‘veca-haskell-1.0.1.0:Main’ is defined in multiple files: /private/var/folders/ww/4qr74bvn12v4049mw7mxvzq80000gn/T/ghc-mod4121/Main4118-4.hs /private/var/folders/ww/4qr74bvn12v4049mw7mxvzq80000gn/T/ghc-mod4119/Spec4118-2.hs
First of all, thanks a lot for HIE that is now my Haskell engine in VSC.
Here is an issue I observe when I have project with a main source directory + a test one.
Summary
I have a project built with several targets (library, executable, test-suite).
The "main" sources are in
src
, while the tests are intest
.All is ok with the source files but on test files modules are not found.
How to reproduce
Then in VSC open any file in the test directory (eg
EventsTests.hs
).There is an error on the two Tasty imports.
Possible solution
This could be close to an issue I had when using Haskero,
https://gitlab.com/vannnns/haskero/issues/30,
the solution being a button to select the target (or "all targets"),
https://gitlab.com/vannnns/haskero/merge_requests/1.
Environment
Stack file: https://github.com/pascalpoizat/veca-haskell/blob/multiple-component-instances/stack.yaml
Cabal file: https://github.com/pascalpoizat/veca-haskell/blob/multiple-component-instances/veca-haskell.cabal
The text was updated successfully, but these errors were encountered: