Skip to content

workflow is not defined in the config file #4145

@zhilizheng

Description

@zhilizheng

Bug report

I tried to get the ${workflow.workDir} in the config file for trace path and name. Note the workDir and runName are specified by the nextflow run command line -w test -name test

trace{
    enabled = true
    file = "${workflow.workDir}/reports/${workflow.runName}.trace.txt"
}

Expected behavior and actual behavior

Expected: get the current work dir and runName specified by the command line
Actual: get an error:

ERROR ~ Unknown config attribute `workflow.workDir` -- check config file

Steps to reproduce the problem

Any job with the trace in config file, and specify the workDir and name by command line.

Program output

ERROR ~ Unknown config attribute `workflow.workDir` -- check config file:

Environment

  • Nextflow version: [23.04.2]
  • Java version: [17.0.8]
  • Operating system: [Debian12]
  • Bash version: (5.2.15)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions