haskell / haskell/cabal

Separate -j choices for local vs non-local source

Open
#1,773 15 comments 0 reactions 0 assignees View on GitHub
old-milestone: ⊥ type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

The `-j` option to `cabal install` is a wonderful boost for installing packages from a repository, but it has a terrible impact on development. A failing `cabal install` yields "Last 10 lines of the build log ...", often cutting off the source position (file name and line & column numbers). My editor (Emacs) then can't jump directly to the error in the source. I can get there by opening the build log, but it's very tediousto do so. Are there solutions/workarounds?

I imagine that this `-j` behavior is a problem for everyone developing packages, rather than just installing them. Wouldn't people generally (or often) want `-j` for anything from hackage (dependencies) but not for local source? Is it possible to get this behavior currently, even with an explicit flag to override the `jobs` setting in my `~/.cabal/config`? Could we get separate choices (flags, etc) for repo vs local installation. (I'd want dependency installations triggered by a local `cabal install` to use the from-repo choice.)

(Edited to unconfuse the GHC vs Cabal `-j` options.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.