Skip to content

Escape sequence error #152

@DLBPointon

Description

@DLBPointon

Hi All,

Apologies if this is the wrong place, but I've been sent this way. Just been debugging an awk command that is a channel inside a subworkflow (done this way for better portability).

Minimal replicable:

#!/usr/bin/env nextflow

workflow REPEAT_DENSITY {

    main:

    ch_rename_ids_awk = channel.of('''\ 
        {
            gsub(/\./, "0")
            print
        }'''.stripIndent())
        .collectFile(name: "reformat_gaps.awk", cache: true)
        .collect()

}

Both Nextflow lint and VSCode plugin see '''\ as the error. But is actually /\./ zed-nextflow doesn't see it, but I think that's more because we I've not been able to work on it recently :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions