Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve message error when enabling types with syntax parser v1#7173

Merged
bentsherman merged 3 commits into
masterfrom
improve-error-when-using-types-with-syntax-parser-v1
May 26, 2026
Merged

Improve message error when enabling types with syntax parser v1#7173
bentsherman merged 3 commits into
masterfrom
improve-error-when-using-types-with-syntax-parser-v1

Conversation

@jorgee

@jorgee jorgee commented May 22, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces a new error handling mechanism to improve developer feedback when using static types with an unsupported syntax parser version in Nextflow.

In current implementation when executing a pipeline enabling types in syntax parser v1. The user get this error

ERROR ~ No such variable: types

In nextflow.log, the user can see this stack trace, that do not provide a useful guide to know the cause of the error.

groovy.lang.MissingPropertyException: No such property: types for class: nextflow.NextflowMeta$Features
        at nextflow.NextflowMeta$Features.propertyMissing(NextflowMeta.groovy)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
        at groovy.lang.MetaClassImpl.invokeMissingProperty(MetaClassImpl.java:856)
       ...

This pull request introduces a new error handling mechanism to improve developer feedback when using static types with an unsupported syntax parser version in Nextflow.

Error Handling Enhancement:

  • Added a setTypes method to the NextflowMeta class that throws an AbortOperationException with a clear error message if static types are enabled while using syntax parser v1, guiding users to set NXF_SYNTAX_PARSER=v2 for static types support.

With this PR the user will get a message sucha as the following:

Static types only available in syntax parser v2. Set NXF_SYNTAX_PARSER=v2 to enable static types. -- Check script 'module.nf' at line: 1 or see '.nextflow.log' file for more details

@netlify

netlify Bot commented May 22, 2026

Copy link
Copy Markdown

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 48e3ac8
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/6a15b15235d92f00087801c4
😎 Deploy Preview https://deploy-preview-7173--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@bentsherman bentsherman self-requested a review May 26, 2026 14:42
@bentsherman bentsherman merged commit 13282b5 into master May 26, 2026
25 checks passed
@bentsherman bentsherman deleted the improve-error-when-using-types-with-syntax-parser-v1 branch May 26, 2026 15:19
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

Successfully merging this pull request may close these issues.

2 participants