| 26 Sep 2025 |
sterni | yes this also happens in that case, hence you need to overrideScope | 09:52:08 |
maralorn | A recent ghc version started embedding links to the ghc error index via terminal control codes. | 14:14:39 |
maralorn | That doesn’t seem to work in nix logs. | 14:15:07 |
maralorn | Does anyone know how that can be fixed? | 14:15:23 |
maralorn | If not maybe we should deactivate/strip it? | 14:15:41 |
maralorn | Looks like that for me:
<no location info>: warning: [8;;https://errors.haskell.org/messages/GHC-42258GHC-422588;;] [-Wunused-packages]
| 14:16:36 |
Alex | My guess is that [8;; is some kind of terminal escape code.
Although undesirable, does disabling colours work? | 15:03:59 |
teo (they/he) | A quick glance at the GHC codebase points me to GHC.Types.Errors where it seems like this is always emitted irrespective of whether you are in a fancy terminal. We probably shouldn't do that | 15:06:29 |
teo (they/he) | Ah wait no it is a setting | 15:06:50 |
teo (they/he) | yeah it determines if your terminal supports colours and only uses it in that case. And you can disable it with fprint-error-index-links=never | 15:08:23 |
maralorn | Yeah, but are we sure that nix can’t forward that? I mean it can forward colors. | 15:14:09 |
chreekat | Sounds like something in the chain does not understand the encoding. Maybe something (nix?) is special cased for colors but not that | 17:04:37 |
maralorn | Sounds likely. | 17:12:11 |
maralorn | Might be worth to open a nix issue about it. | 17:12:25 |