Stdout not defined

I have a working pipeline that contains a process that captures the standard output.
With the latest language server update in VSCode, it started complaining:

process DDBB_START {
    input:
        tuple val(meta), val(reads)
    output:
        tuple val(meta), val(reads), stdout

the error I see is:

`stdout` is not defined

According to the documentation, this is the proper way to use it so… what should I do?

Thanks for reporting. I will look into it and see if we can correct it in the compiler. In the meantime, I think you can specify it as stdout() and it will work.

Yes, using stdout() gets rid of the error. I will believe that it will work in the same way :slight_smile: Thanks!

Correction – it turns out that stdin and stdout cannot be used with parens if they are in a tuple as in your example. If you try to use parens there it will fail.

I have submitted a fix which will allow you to use them without parens: Fix false error when using stdin/stdout in a tuple by bentsherman · Pull Request #6219 · nextflow-io/nextflow · GitHub

OK, removing the parens. I didn’t managed to test them yet. Thanks!