-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doctests in multi-package project interfering with each other #5159
Comments
Can't say for sure but probably fixing #4745 should take care of this too |
sjakobi
added a commit
to quchen/prettyprinter
that referenced
this issue
Feb 8, 2020
This is a workaround for commercialhaskell/stack#5159.
pbrisbin
added a commit
to freckle/bcp47
that referenced
this issue
Jul 28, 2020
There is a (long-standing) bug in Stack for multi-package projects where their package environments are shared across tests. This means that if bcp47-orphan's environment is used for bcp47's doctest suite, it can't find megaparsec. If the bug reproduces or not depends on concurrency settings and build order too. See commercialhaskell/stack#5159 Adding the dependency in all environments ensures it always works. It's seen as a weed in both places, so we ignore that via .weeder.yaml.
pbrisbin
added a commit
to freckle/bcp47
that referenced
this issue
Jul 28, 2020
pbrisbin
added a commit
to freckle/bcp47
that referenced
this issue
Jul 28, 2020
pbrisbin
added a commit
to freckle/bcp47
that referenced
this issue
Jul 28, 2020
I am closing given the passage of time, the closing of #4745, and because I could not reproduce the problem with the current version of Stack on Ubuntu (via WSL). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
General summary/comments (optional)
In a multi-package project that contains several
doctest
suites,stack test
fails with a "could not load module from hidden package" message. Only when I add-j1
, the tests pass reliably.It seems that the package environment contains the dependencies for one package, but the other package tries to use it too, which fails because the second package has additional dependencies.
Steps to reproduce
Expected
Both testsuites pass.
Actual
With
--verbose
:Note that the hidden
QuickCheck
package is a dependency ofprettyprinter:doctest
, but notprettyprinter-convert-ansi-wl-pprint:doctest
.Stack version
Method of installation
Probably
stack upgrade
.The text was updated successfully, but these errors were encountered: