nextflow icon indicating copy to clipboard operation
nextflow copied to clipboard

nextflow lint success message does not reset color

Open ScottNortonPhD opened this issue 7 months ago • 5 comments

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

ScottNortonPhD avatar May 27 '25 13:05 ScottNortonPhD

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?

bentsherman avatar May 27 '25 20:05 bentsherman

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).

ScottNortonPhD avatar Jun 01 '25 02:06 ScottNortonPhD

Verified the problem also occurs on centos7 in nextflow 25.04.3-dist, java 23.0.1, bash 4.2.46

ScottNortonPhD avatar Jun 10 '25 20:06 ScottNortonPhD

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

Image

mahesh-panchal avatar Jun 11 '25 11:06 mahesh-panchal

The red leaks too

mahesh-panchal avatar Jun 11 '25 16:06 mahesh-panchal

Same issue here.

Image
  • 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

samuell avatar Aug 01 '25 14:08 samuell

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?

samuell avatar Aug 02 '25 08:08 samuell