nf-core / nf-core/modules

Wrong argument type in log.debug

Open
#10,005 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Nextflow
Stars
429
Forks
1.1k
Avg merge
1d 6h
Merged PRs (30d)
153

Description

Description of the bug

Hi!
I think there's a very little bug in nf-core/tools.
At nf_core/pipeline-template/subworkflows/nf-core/utils_nextflow_pipeline/main.nf, it should be:

debug(e.toString())

instead of

debug(e)
Command used and terminal output

Any pipeline with latest nf-core/tools would work.
The error I obtained can be reproduced on a system that does not have conda installed (at least not in the PATH).

nextflow run main.nf -profile conda,test

ERROR ~ Invalid method invocation `debug` with arguments: java.io.IOException: Cannot run program "conda": error=2, Aucun fichier ou dossier de ce nom (java.io.IOException) on Logger type

 -- Check script 'subworkflows/nf-core/utils_nextflow_pipeline/main.nf' at line: 101 or see '.nextflow.log' file for more details
System information

Nextflow version: 25.04.8

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open nf_core/pipeline-template/subworkflows/nf-core/utils_nextflow_pipeline/main.nf and inspect the logging call around lines 95-101. Reproduce the failure with nextflow run main.nf -profile conda,test on a system without conda, then verify that the error is logged without an invalid debug invocation.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.