nextflow lint success message does not reset color
After running nextflow lint on a pipeline throwing zero errors, the green color from the success message persists in subsequent console lines.
nextflow-25.04.2-dist, java openjdk-17.0.3, rocky linux 9, bash v5.1.8
I was unable to replicate this on Ubuntu 24 (GNOME terminal and VS Code terminal), and my setup is otherwise the same. Is there something about the terminal app you're using in rocky linux that could be related?
Possibly, would need to check. Verified that the issue does not replicate on macOS 15.5, M3 CPU (aarch64), zsh version 5.9 (nextflow-25.04.2, java-openjdk-23.0.2).
Verified the problem also occurs on centos7 in nextflow 25.04.3-dist, java 23.0.1, bash 4.2.46
I've got the same issue:
$ lsb_release -a
LSB Version: n/a
Distributor ID: SUSE
Description: SUSE Linux Enterprise Server 15 SP5
Release: 15.5
Codename: n/a
$ uname -a
Linux login1 5.14.21-150500.55.65_13.0.73-cray_shasta_c #1 SMP Fri Jun 14 21:25:32 UTC 2024 (d052318) x86_64 GNU/Linux
$ nextflow -v
nextflow version 25.04.3.5949
The red leaks too
Same issue here.
- Linux Mint 21.1
- xfce4-terminal 0.8.10 (Xfce 4.16)
- GNU bash, version 5.1.16
- Nextflow version 25.04.6.5954
Same thing happens in Gnome terminal 3.44.0 using VTE 0.68.0 +BIDI +GNUTLS +ICU +SYSTEMD
If I run nextflow lint via script with script -q -c "nextflow lint main.nf" nflint.out, and inspect the raw characters cat -v nflint.out, I get this in the end of the file:
^M
^[[39m^M
^[[1A^[[K^[[1mNextflow linting complete!^[[m^M
^[[31m M-bM-^]M-^L 3 files had 9 errors^M
^[[32m M-bM-^\M-^E 6 files had no errors^M
Script done on 2025-08-02 10:40:53+02:00 [COMMAND_EXIT_CODE="1"]
... so it seems it is missing an ^[[0 in the end to reset the colors?