Skip to content

Config namespace warnings #637

@trym-b

Description

@trym-b

Hi

When using the latest version (1.5.0) of the nextflow language server in VS Code, and use it on the sample listed here: https://training.nextflow.io/2.2/basic_training/config/#config-scopes

alpha.x  = 1
alpha.y  = 'string value..'

beta {
    p = 2
    q = 'another string ..'
}

I get the following warnings: Unrecognized config option 'alpha.y'nextflow

Image

In the following file I do not get the same warning:

params.x  = 1
params.y  = 'string value..'

params {
    p = 2
    q = 'another string ..'
}

This is kind of confusing, as the first snippet is completely valid, but I get the impression that this means custom namespaces are not recommended. My specific use-case is to setup a namespace that contains a bunch of variables that will be re-used and I do not want to use params for this, as they are not variables given through the CLI or similar.

Let me know if I am completely confused or not.

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