Skip to content

unrecognized config option 'process.withLabel...' with NXF_SYNTAX_PARSER=v2 #6239

@kverstae

Description

@kverstae

Bug report

Expected behavior and actual behavior

When you define a label in a config file with withLabel, the config parsing fails.
This just gives a warning in most cases, but when running nextflow -C <CONFIG> run, it just crashes...

I don't know withLabel has changed or the use of it in a config file is no longer supported...

Steps to reproduce the problem

main.nf

workflow {
    main:
        println "$params"
}

nextflow.config

params {
    foo = 'bar'
}

process {
    withLabel: foolabel {
        cpus = 8
    }
}

Program output

export NXF_SYNTAX_PARSER=v2;
nextflow config main.nf > test.config;
nextflow -C test.config run main.nf;

 N E X T F L O W   ~  version 25.04.6

Error test.config:1:5: Unexpected input: ':'
│   1 | WARN: Unrecognized config option 'process.withLabel:foolabel.cpus'
╰     |     ^


ERROR ~ Config parsing failed

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

Environment

  • Nextflow version: 25.04.6 (not tested with other versions)
  • Operating system: Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions