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
What I do: I have a few doctests in the module Symbolic.hs of the project symbolic. It's nothing special. doctest runs manually from command line without any sign of misbehaviour, correctly performs the tests specified in the module. I try to set up doctest-discover to run tests with stack.
My expectations: When set up in package.yaml as recommended, doctest will be run by stack test successfully.
What happens: Everything builds alright. As the process enters the testing stage, an error occurs:
symbolic-0.1.0.0: test (suite: doctest)
Progress: 3/4
<no location info>: error:
module ‘main:Bar’ is defined in multiple files: /home/kindaro/code/symbolic/.stack-work/downloaded/wTjnDRat1Snx/doctest-master/test/extract/imported-module/Bar.hs
/home/kindaro/code/symbolic/.stack-work/downloaded/wTjnDRat1Snx/doctest-master/test/extract/th/Bar.hs
/home/kindaro/code/symbolic/.stack-work/downloaded/wTjnDRat1Snx/doctest-master/test/integration/with-cbits/Bar.hs
/home/kindaro/code/symbolic/.stack-work/downloaded/wTjnDRat1Snx/doctest-master/test/integration/custom-package-conf/Bar.hs
Completed 4 action(s).
Test suite failure for package symbolic-0.1.0.0
doctest: exited with: ExitFailure 1
I don't know what to do. These files in .stack-work apparently belong to doctest, not doctest-discover, but, as I said, I can run doctest from command line without any issues. I am reporting this here because I have no better idea.
@karun012 Yes, I cloned this repo and stack installed from there. This was the wrong thing to do. I just stack installed whatever version comes from Stackage and it works flawlessly.
What I do: I have a few doctests in the module
Symbolic.hs
of the projectsymbolic
. It's nothing special.doctest
runs manually from command line without any sign of misbehaviour, correctly performs the tests specified in the module. I try to set updoctest-discover
to run tests withstack
.My expectations: When set up in
package.yaml
as recommended,doctest
will be run bystack test
successfully.What happens: Everything builds alright. As the process enters the testing stage, an error occurs:
I don't know what to do. These files in
.stack-work
apparently belong todoctest
, notdoctest-discover
, but, as I said, I can rundoctest
from command line without any issues. I am reporting this here because I have no better idea.These are the relevant code extracts:
doctest-config.json
doctest-driver.hs
package.yaml
I will appreciate any advice.
The text was updated successfully, but these errors were encountered: