'stack ghci': build project before launching GHCi#1228
Conversation
src/Stack/Ide.hs
Outdated
There was a problem hiding this comment.
@chrisdone @mgsloan: Is building the project (and continuing even if it fails) the correct behaviour for stack ide?
There was a problem hiding this comment.
Actually, I think the right behavior for stack ide is to only build dependencies.
There was a problem hiding this comment.
@mgsloan: Should it stay with the old behaviour of not starting if the dependencies fail to build, or would the new behaviour of continuing anyway be better?
There was a problem hiding this comment.
The new behavior of continuing is better, I think. At least that way the user ends up with a GHCI session that's somewhat setup.
33121bf to
660a765
Compare
|
I've rebased this to resolve merge conflicts. @chrisdone / @mgsloan: still not sure what the right behaviour for |
|
LGTM! should the |
src/Stack/Ghci.hs
Outdated
660a765 to
c54dff5
Compare
Don't build anything for 'stack ide targets', and only build dependencies before 'stack ide start'
|
@mgsloan I've updates based on your comments, please give this a final review and merge if good. |
|
LGTM! |
…efore-ghci 'stack ghci': build project before launching GHCi
(closes #1065, fixes #1180)
Optimistically, launch GHCi anyway even if the build fails.
@chrisdone, can you review?