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 feel very silly for filing this ticket, because I looked through some open issues and found other people using cabal new-run just fine. But anyway, cabal new-run isn't working in this sample repo. It builds the executable, but doesn't run it. What might I be doing wrong?
I suspect you're using a non-bleeding edge cabal version? Afaik, cabal new-run wasn't fully functional yet in cabal 2.0 exhibiting the very behaviour you're seeing; and most people dogfooding new-build tend to use cabal 2.1 (i.e. cabal HEAD) -- where I can confirm that cabal new-run works as expected on your repro case. This is also part of the reason my Travis script generator defaults to the cabal-install-head package, as it relies on fixes/features available in the latest cabal in-dev version. Cabal 2.2 will already be a big improvement over cabal 2.0, and hopefully the next release after cabal 2.2 will be already cabal 3.0 (see also https://summer.haskell.org/ideas.html#cabal-new-build) which will make new-build the default build (which implies that at that point we'll have to be minimally feature complete).
PS: It's fine to file issues here, but I'd also like to point out that you can come to the #hackage IRC channel on freenode if you like to discuss things in a more interactive medium
Activity
hvr commentedon Jan 27, 2018
I suspect you're using a non-bleeding edge
cabalversion? Afaik,cabal new-runwasn't fully functional yet in cabal 2.0 exhibiting the very behaviour you're seeing; and most people dogfoodingnew-buildtend to use cabal 2.1 (i.e. cabal HEAD) -- where I can confirm thatcabal new-runworks as expected on your repro case. This is also part of the reason my Travis script generator defaults to thecabal-install-headpackage, as it relies on fixes/features available in the latest cabal in-dev version. Cabal 2.2 will already be a big improvement over cabal 2.0, and hopefully the next release after cabal 2.2 will be already cabal 3.0 (see also https://summer.haskell.org/ideas.html#cabal-new-build) which will makenew-buildthe defaultbuild(which implies that at that point we'll have to be minimally feature complete).PS: It's fine to file issues here, but I'd also like to point out that you can come to the
#hackageIRC channel on freenode if you like to discuss things in a more interactive mediummitchellwrosen commentedon Jan 27, 2018
Makes sense, thanks! I was using the latest
cabal-installfrom Hackage but I'll use HEAD from now on.