Skip to content

nextflow.config file does not support typed params #6935

@VasLem

Description

@VasLem

I am trying to modernize my Nextflow codebase with the strict syntax parsing. While it works for .nf files, it fails when types are used in nextflow.config files.

Minimum example nextflow config:

params{
test_flag: String = "test"
}

Minimum example workflow:

workflow test {
println "test"   
}

Running:

nextflow run test.nf

 N E X T F L O W   ~  version 26.02.0-edge

Error nextflow.config:2:20: Unexpected input: '='
│  2 |     test_flag: String = "test"
╰     |                      ^


ERROR ~ Config parsing failed

Environment

  • Nextflow version: 26.02.0-edge

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