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
{{ message }}
Repository navigation
Feature request: Super fast output of all warnings #1179
to quickly get all warnings of the project. This is obviously slow since all code has to be re-compiled (even though code generation can be skipped).
It would be nice if cabal could use its knowledge of which code has no changes to maintain a cache of warnings and error messages that can be queried super quickly.
We could then add an option cabal build --check that only typechecks the project and prints out all errors/warnings of unchanged files from the cache, so that a no-op typecheck with warnings is instant and can give feedback very quickly or even as you type.
This is actually annoying to do in the current architecture, because ghc --make spews out all of the warnings into one stderr, so you'd have to parse and separate them out by hand.
Activity
nh2 commentedon Nov 27, 2014
Related to https://ghc.haskell.org/trac/ghc/ticket/9243
ezyang commentedon Sep 8, 2016
This is actually annoying to do in the current architecture, because
ghc --makespews out all of the warnings into one stderr, so you'd have to parse and separate them out by hand.I actually implemented warning caching in ghc-shake https://github.com/ezyang/ghc-shake which is a drop-in replacement for ghc. Warnings are put in
*.logfiles so if you usefind dist-newstyle/build/ -name "*.log" -exec cat {} \;you'll see all the warnings. Works pretty well for me.This won't get fixed unless someone steps up to do it.
jneira commentedon Apr 28, 2022
Not sure if that behaviour should be included in cabal itselfor in a external tool.