Error while defining file paths in Part 6: Hello Config

In section 2.2 of Hello Nextflow > Part 6: Hello Config, I receive errors when trying to run the workflow after having changed the output paths. With the syntax (as shown in the tutorial):

    first_output {

        path { "${params.batch}/intermediates/${sayHello.name}" }

        mode 'copy'

    }

I receive the following error:

Error hello-config.nf:44:49: `sayHello` is not defined
│  44 |         path { "${params.batch}/intermediates/${sayHello.name}" }
╰     |                                                 ^^^^^^^^               

I receive similar errors for all five processes. The same occurs when I just define the path as path { sayHello.name }.

I am running this on my own computer (v26.10.5). When I load up hello-config.nf in the GItHub Codespace, although hovering over the offending text still shows an is not defined error, I am able to run the code as intended… I’ve run diff on my file and the one found in solutions/, and found no difference, so any pointers on what I might be doing wrong would be appreciated.

Hi! I think you’ve hit on a behavior change in the latest version. The training codespace uses version 26.04.4 (the April release), and I suspect that the way we were accessing the process name no longer works in the latest release. We were actually planning to remove that exercise from the training because accessing those properties is now discouraged. Sorry about that!

No worries! I wondered if it might be a version issue, thanks for the confirmation.