-
Notifications
You must be signed in to change notification settings - Fork 848
stack ghci stopped work for non-default target #1269
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
Comments
I edited files in the project and the error has gone. Can you explain why does it happen? |
This commit came after #1222, and changed That's a weird log, though, looks like it's unregistering megaparsec but not installing a new one. Perhaps we should first do an |
It seems strange that it unregistered megaparsec (due to the options change) but didn't then rebuild it before launching GHCi. Changing a file in the project probably triggered it to rebuild, but it should have done so anyway. @mgsloan: what makes you think this particular problem had anything to do with dependencies? |
I've not been able to reproduce this (using the latest stack master). I toggled between @mrkkrp, can you provide any additional details, such as exactly which |
Just a theory based on the main other change to ghci since mrkkrp's last issue report. May well have nothing to do with it. I agree that we need further details in order to work out what's going on here. |
I fear I myself cannot reproduce this now, sorry. I don't know what exactly made the difference so that it ceased to work. Sequence of commands was:
I tried to |
Here, it happened again. I edited code in library and in tests, then
Do you need help? I want to read code of |
If this is still happening, can you provide We love getting help, so definitely feel free to jump into the code! The entry-point for the GHCi code is here: Line 75 in dd554f5
|
I'd guess this has something to do with haskell/cabal#2870 It first install's the library with one package key. Then, when building the tests, it reconfigures and in-place registers a library with a different package key ( I can't wait till the package key stuff gets cleaned up in ghc 8.0.... I have no idea how to tell if |
This may have been fixed by 3ea8437 . Since this has lingered a while with the "need repro" label, and may now be fixed, I'm closing the issue. Feel free to open a new issue if the problem persists. |
After #1222 everything was fine, but now
stack ghci megaparsec:tests
(that's actual project I'm working on) stopped to work with this message:stack --version
returns:Why it doesn't work anymore? I've tried to clear/rebuild the whole thing but it doesn't help.
If you need log with
-v
option or any other information, tell me.The text was updated successfully, but these errors were encountered: