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?
The text was updated successfully, but these errors were encountered:
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
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?The text was updated successfully, but these errors were encountered: