Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected input: double quote #76

Open
ArthurPERE opened this issue Jan 21, 2025 · 4 comments
Open

Unexpected input: double quote #76

ArthurPERE opened this issue Jan 21, 2025 · 4 comments

Comments

@ArthurPERE
Copy link

Hello,

the nextflow extension is highlighting the double quote in an error in this situation :

path_module = "${projectDir}/module"

include { dorado } from "$path_module/dorado.nf"
                                     ^
                                    -----
                                   Unexpected input: '"'

But when I run the workflow, there is no warning, in this workflow.

Is it an real error or a bug.
Regards.

@bentsherman
Copy link
Member

The include source must be a string literal in the strict syntax. It can't be a dynamic string like "$path_module/..."

@ArthurPERE
Copy link
Author

And yet it work when I do a nextflow run

@bentsherman
Copy link
Member

It will work for now, but over the next 1-2 years the new strict syntax will be incorporated into Nextflow itself, first as opt-in, then the default, then the only way to run Nextflow scripts. So the language server is showing errors that will come in the future so that you can prepare accordingly

@ArthurPERE
Copy link
Author

Thank you for your explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants