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
I'm testing with the 2.0 branch. My package built successfully and has one executable section. The new-run command correctly checks if things are up to date and rebuilds them, but it is not running the executable. I added printouts in main that I never see and the program should block on a getContents but it doesn't do that either. I've tried adding exe:mypkg to the new-run command and it doesn't change the behavior.
Ok, so the runProjectPreBuildPhase should return the resolved targets selected. That'd be most direct. I'm doing some refactoring in ProjectOrchestration so I can do this.
runProjectPreBuildPhase still does not return the resolved targets selected, so it needs to be refactored to do so. Duncan did a bunch of refactoring (the latest commit of which was 1022c14) but this change still does not seem to be done.
Activity
Failing test case for haskell#4477.
ezyang commentedon Apr 30, 2017
Looking at CmdRun.hs it looks like it's just not implemented. CC @dcoutts.
I think this should be easy to fix.No it's not see below.Merge pull request #4478 from ezyang/pr/T4477-testcase
ezyang commentedon Apr 30, 2017
No, it's not so easy to fix. From @dcoutts:
runProjectPreBuildPhasestill does not return the resolved targets selected, so it needs to be refactored to do so. Duncan did a bunch of refactoring (the latest commit of which was 1022c14) but this change still does not seem to be done.fixed haskell#4477
Merge pull request #4586 from fgaz/new-run-2
m-renaud commentedon Jan 30, 2018
This isn't working for me using cabal-install 2.0.0.1.
Versions:
Steps to reproduce:
Create new executable project,
cabal run xworks as expected,cabal new-runonly builds, does not run executable.Let me know if there's any other information you need, thanks!
hvr commentedon Jan 30, 2018
@m-renaud see #5074