haskell / haskell-mode

Emacs mode for Haskell
http://haskell.github.io/haskell-mode/
GNU General Public License v3.0
1.33k stars 344 forks source link

Color escape sequences from `cabal repl` causing garbled output (Cabal 3.10.1.0) #1820

Open sirlensalot opened 1 year ago

sirlensalot commented 1 year ago

Example:

image

Might be something introduced in Cabal 3.10.x + GHC 9.6. Breaks linting.

sirlensalot commented 1 year ago

Might be a cabal issue, I opened https://github.com/haskell/cabal/issues/9188 , since passing ghc option -fdiagnostics-color=never doesn't do anything to help.

However it would also be nice to set up the terminal as not ANSI color? I presume the default is auto which means it will try to detect.

sirlensalot commented 1 year ago

Hmm, haskell-compile doesn't have this issue

image
kenranunderscore commented 9 months ago

A colleague of mine has the same issue, but on GHC 9.4 (and I think even before that), while us others don't. AFAIK he had it on x86_64 macOS as well as aarch64 macOS. We have other macOS laptops that don't have this problem, using the same tooling (cabal, ghc etc. coming from the same nix development environment).