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
When running executables with cabal run, it prints an annoying line Up to date line, messing with the output and making it look less pretty.
The cabal exec command, however, doesn't print this line, make the output nicer. The cabal run command, is more preferred, as it guarantees to run the latest version of the executable and compiles it if needed.
Comparison from one of the executables:
cabal run
❯ cabal run simple-grep -- -f iris.cabal -s iris
Up to date
2: name: iris
7: See [README.md](https://github.com/chshersh/iris#iris) for more details.
8: homepage: https://github.com/chshersh/iris
9: bug-reports: https://github.com/chshersh/iris/issues
27: location: https://github.com/chshersh/iris.git
107: test-suite iris-test
114: Paths_iris
117: Paths_iris
126: , iris
I tried to check the code to see if it's possible to fix this log quickly. However, it seems like it's buried deep inside, and I'm not sure what is the best way to fix it.
@chshersh sure, no worries. If you have GHCup at hand, you can add the prerelease channel (see their guide) and check out cabal-install 3.9, a prerelease that should have this patch. That way we can double check that everything is going as planned.
When running executables with
cabal run
, it prints an annoying lineUp to date
line, messing with the output and making it look less pretty.The
cabal exec
command, however, doesn't print this line, make the output nicer. Thecabal run
command, is more preferred, as it guarantees to run the latest version of the executable and compiles it if needed.Comparison from one of the executables:
cabal run
*cabal exec
I tried to check the code to see if it's possible to fix this log quickly. However, it seems like it's buried deep inside, and I'm not sure what is the best way to fix it.
cabal/cabal-install/src/Distribution/Client/ProjectOrchestration.hs
Lines 882 to 883 in 0bedc4a
Details
cabal version: 3.8.1.0
OS: Ubuntu 20.04
GHC version: 9.2.5
The text was updated successfully, but these errors were encountered: