Skip to content

cabal new-run doesn't work #5074

Closed
Closed

Description

@mitchellwrosen

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?

Activity

  1. hvr commented on Jan 27, 2018

    @hvr
    Member

    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

  2. mitchellwrosen commented on Jan 27, 2018

    @mitchellwrosen
    Author

    Makes sense, thanks! I was using the latest cabal-install from Hackage but I'll use HEAD from now on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions