This is a test version of Biostars. For the public version, visit https://www.biostars.org.
No such variable: nextflow

Hi, I am having an issue with running Nextflow pipeline on hpc.

All pipelines I am trying to run ends with following error:

No such variable: nextflow

It refers to line:

nextflow.enable.dsl=2

If I remove this line it fails on include command.

I tested on many Nextflow versions. Seems to be not dependent on specific version or pipeline.

Any ideas appreciated!

nextflow

You need to show some minimal code to understand or reproduce the error.

Look, if you want help, you need to show code and error messages. If I clone the linked repo and then run nextflow run main.nf, then I get:

N E X T F L O W   ~  version 24.04.4

Launching `main.nf` [agitated_yonath] DSL2 - revision: b0eee95d4e

executor >  local (4)
[8c/3c0495] process > sayHello (1) [100%] 4 of 4 
Hola world!

Ciao world!

Hello world!

Bonjour world!

Please run with this command and then show what happens.

This is the output:

` NE X T F L O W ~ version 23.10.1 Launching main.nf ERROR ~ No such variable: nextflow

-- Check '.nextflow.log' file for details `

1 answer

Check if https://stackoverflow.com/questions/71939685/nextflow-tutorial-getting-error-no-such-variable applies and you have an old Nextflow version.

Log in to answer this question.