Skip to content

Error message not colored when using ghcid -c "cabal new-repl --enable-multi-repl" #393

@yhuangsh

Description

@yhuangsh

Symptoms:

  • running "cabal new-repl --enable-multi-repl" without ghcid -> console error/warning message not properly colored
  • running ghcid -c "cabal new-repl --enable-multi-repl" -> error/warning message not colored
    • adding --color=always at ghcid level or --ghc_option=-fdiagnostics-color=always does not fix it
    • changing new-repl to replace does not fix it either
  • running above without "--enable-multi-repl" -> error/message properly colored, but if there is error in one of the libs on which the final build target depends will terminate ghcid all together.
    • I tried with a simple project with one lib and one executable

My Environment:

  • NixOS 24.11 stable
  • sway + foot, $TERM=foot, tried prefixing TERM=xterm-256color, does not fix it
  • ghcid with stack worked ok, I'm migrating from stack to cabal2nix, thus using cabal directly with ghcid

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions