Skip to content

Stack 3.9.1 has GHC's redundant backtrace, when tests fail #6840

@NorfairKing

Description

@NorfairKing

Get rid of this when my test suite fails, please:

nix-ci-leader-gen> Test suite nix-ci-leader-gen-test failed

Error: [S-7282]
       Stack failed to execute the build plan.
       
       While executing the build plan, Stack encountered the error:
       
       Error: [S-1995]
       Test suite failure for package nix-ci-leader-gen-0.0.0
           nix-ci-leader-gen-test:  exited with: ExitFailure 1
       Logs printed to console
       
       HasCallStack backtrace:
         collectBacktraces, called at libraries/ghc-internal/src/GHC/Internal/Exception.hs:169:13 in ghc-internal:GHC.Internal.Exception
         toExceptionWithBacktrace, called at libraries/ghc-internal/src/GHC/Internal/IO.hs:260:11 in ghc-internal:GHC.Internal.IO
         throwIO, called at libraries/ghc-internal/src/GHC/Internal/Control/Exception/Base.hs:195:43 in ghc-internal:GHC.Internal.Control.Exception.Base

Most of my screen is filled up with this useless information.

All I need is:

Test suite nix-ci-leader-gen-test failed for package nix-ci-leader-gen-0.0.0

The call stack is especially egregious. I don't need to know where the code is defined GHC uses to implement the exception mechanism that you use to implement showing me failing tests.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions