"Showing last 10 lines of the build log"

(I'm currently using Cabal 1.18.) Working with sandboxes and multiple cabal packages (via --add-source and a super-package which requires all the others), I've found that the Showing last 10 lines of the build log feature is less useful than one would hope for. When restructuring code across multiple packages there's a lot of potential for huge error messages, *and* furthermore the most interesting lines in the build log are actually towards the *start* og the build log since that's where the *first* error shows up -- given the nature of compilers you generally always want to fix the first-occuring error first since that may fix subsequent errors. So, here's a little feature request: Couldn't we just have cabal install spit out the full build log in case a build fails? Is there any real disadvantage that I'm not seeing?

On 2014-05-10 18:27, Bardur Arantsson wrote:
So, here's a little feature request: Couldn't we just have cabal install spit out the full build log in case a build fails? Is there any real disadvantage that I'm not seeing?
(Btw, I'll be happy to write the necessary patch since it seems simple enough for me to do, I just want to be sure there's some interest.)

On Sat, May 10, 2014 at 7:15 PM, Bardur Arantsson
On 2014-05-10 18:27, Bardur Arantsson wrote:
So, here's a little feature request: Couldn't we just have cabal install spit out the full build log in case a build fails? Is there any real disadvantage that I'm not seeing?
(Btw, I'll be happy to write the necessary patch since it seems simple enough for me to do, I just want to be sure there's some interest.)
I think there's enough interest: I'm often annoyed by this and there are at least two tickets [0,1] about it. Erik [0] https://github.com/haskell/cabal/issues/1373 [1] https://github.com/haskell/cabal/issues/1062

On 2014-05-10 18:27, Bardur Arantsson wrote:
(I'm currently using Cabal 1.18.)
Working with sandboxes and multiple cabal packages (via --add-source and a super-package which requires all the others), I've found that the
Showing last 10 lines of the build log
feature is less useful than one would hope for. When restructuring code across multiple packages there's a lot of potential for huge error messages, *and* furthermore the most interesting lines in the build log are actually towards the *start* og the build log since that's where the *first* error shows up -- given the nature of compilers you generally always want to fix the first-occuring error first since that may fix subsequent errors.
So, here's a little feature request: Couldn't we just have cabal install spit out the full build log in case a build fails? Is there any real disadvantage that I'm not seeing?
participants (2)
-
Bardur Arantsson
-
Erik Hesselink