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
C:\Neil\hlint>stack ghci
Using main module: Package `hlint' component exe:hlint with main-is file: C:\Neil\hlint\src\Main.hs
Configuring GHCi with the following packages: hlint
GHCi, version 7.10.2: http://www.haskell.org/ghc/ :? for help
<command line>:
Could not find module `Paths_hlint'
Use -v to see a list of the files searched for.
Failed, modules loaded: none.
Prelude> :q
Leaving GHCi.
That's after deleting my .ghci file and removing my .stack-work.
My guess is stack ghci should generate the paths file if it needs it. I thought it used to do a whole build before launching ghci? Using 06a4b27.
That Paths module will have to be generated by Cabal, which unfortunately only happens from a call to build. I'm not deeply involved in the GHCi stuff, but it seems like a large number of issues are coming out of trying to avoid doing a full build before stack ghci starts, but that we just need to bite the bullet and do such a build anyway.
Yep, I agree. It's time to just bite the bullet and do the build and cache-and-ignore any exceptions to retain the optimistic case of running ghci. I was thinking we could also add a trivial --no-build flag for impatient people like myself.
@chrisdone: currently stack targets and stack ide also both do an implicit build --only-dependencies beforehand and fail if that fails (since they use ghciSetup as well). Should their behaviour also be changed to match stack ghci's new behaviour?
Activity
borsboom commentedon Oct 6, 2015
@chrisdone / @snoyberg: any thoughts?
snoyberg commentedon Oct 9, 2015
That Paths module will have to be generated by Cabal, which unfortunately only happens from a call to
build. I'm not deeply involved in the GHCi stuff, but it seems like a large number of issues are coming out of trying to avoid doing a full build beforestack ghcistarts, but that we just need to bite the bullet and do such a build anyway.chrisdone commentedon Oct 9, 2015
Yep, I agree. It's time to just bite the bullet and do the build and cache-and-ignore any exceptions to retain the optimistic case of running ghci. I was thinking we could also add a trivial
--no-buildflag for impatient people like myself.borsboom commentedon Oct 25, 2015
@chrisdone: currently
stack targetsandstack idealso both do an implicitbuild --only-dependenciesbeforehand and fail if that fails (since they useghciSetupas well). Should their behaviour also be changed to matchstack ghci's new behaviour?'stack ghci': build project before launching GHCi (closes #1065, fixes …
'stack ghci': build project before launching GHCi (closes #1065, fixes …
'stack ghci': build project before launching GHCi (closes #1065, fixes …
Adjust 'stack ide' pre-builds (#1065)