-
Notifications
You must be signed in to change notification settings - Fork 17
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
Package hiding/unhiding still not completely stateless? #257
Comments
No, neither Cabal nor ghc make persistent changes to the visibility of packages in the database. GHC itself only ever reads package dbs (it does not have code to write them). Cabal only registers packages, it does not modify existing ones. |
In that case this must mean we still don't completely manage to reset ghc state correctly, though I don't know how or when. We have explicit tests for hiding and unhiding packages, as well as setting and unsetting |
This is affecting the travis builds - see https://travis-ci.org/fpco/ide-backend/jobs/74153359#L554 I suspect the fix for #224 needs to be revisited. For now I'm going to have the test always use |
When running tests in parallel, occasionally we get test failures about hidding packages, which are not getting if we run the tests strictly sequentially (but with session reuse).
I don't understand why this should be the case -- surely hiding or unhiding packages should be local to the ghc session? Would either ghc or cabal change the visibility of packages in the global package DB?
The text was updated successfully, but these errors were encountered: