You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migrations/25-04.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@
8
8
9
9
<h3>Strict syntax</h3>
10
10
11
-
The *strict syntax* is a strict parser for Nextflow DSL2 that implements the {ref}`Nextflow language specification <syntax-page>`. Originally introduced by the [Nextflow language server](https://github.com/nextflow-io/language-server) alongside Nextflow 24.10, the strict syntax is now available in the Nextflow CLI.
11
+
The *strict syntax parser* is a strict implementation of Nextflow DSL2 based on the {ref}`Nextflow language specification <syntax-page>`. Originally introduced by the [Nextflow language server](https://github.com/nextflow-io/language-server) alongside Nextflow 24.10, the strict parser is now available in the Nextflow CLI.
12
12
13
-
The strict syntax is disabled by default. Enable it by setting the environment variable `NXF_SYNTAX_PARSER=v2`. See {ref}`strict-syntax-page` for details.
13
+
The strict parser is disabled by default. Enable it by setting the environment variable `NXF_SYNTAX_PARSER=v2`. See {ref}`strict-syntax-page` for details.
14
14
15
15
<h3>Linting and formatting</h3>
16
16
17
-
The `nextflow lint` command checks Nextflow scripts and config files for errors using the {ref}`strict syntax <strict-syntax-page>`. It can also format Nextflow files using the same formatter as the Nextflow language server. See {ref}`cli-lint` for details.
17
+
The `nextflow lint` command checks Nextflow scripts and config files for errors using the {ref}`strict parser <strict-syntax-page>`. It can also format Nextflow files using the same formatter as the Nextflow language server. See {ref}`cli-lint` for details.
Copy file name to clipboardExpand all lines: docs/migrations/25-10.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
<h3>Workflow params</h3>
10
10
11
11
:::{note}
12
-
Typed parameters require the {ref}`strict syntax <strict-syntax-page>`. Set the `NXF_SYNTAX_PARSER` environment variable to `v2` to enable:
12
+
Typed parameters require the {ref}`strict parser <strict-syntax-page>`. Set the `NXF_SYNTAX_PARSER` environment variable to `v2` to enable:
13
13
14
14
```bash
15
15
export NXF_SYNTAX_PARSER=v2
@@ -73,7 +73,7 @@ See {ref}`migrating-workflow-outputs` to get started.
73
73
<h3>Static typing (preview)</h3>
74
74
75
75
:::{note}
76
-
Static typing requires the {ref}`strict syntax <strict-syntax-page>`. Set the `NXF_SYNTAX_PARSER` environment variable to `v2` to enable:
76
+
Static typing requires the {ref}`strict parser <strict-syntax-page>`. Set the `NXF_SYNTAX_PARSER` environment variable to `v2` to enable:
77
77
78
78
```bash
79
79
export NXF_SYNTAX_PARSER=v2
@@ -209,7 +209,7 @@ Plugins should be updated to publish to the Nextflow plugin registry using the {
209
209
<h3>New syntax for workflow handlers</h3>
210
210
211
211
:::{note}
212
-
The new syntax for workflow handlers require the {ref}`strict syntax <strict-syntax-page>`. Set the `NXF_SYNTAX_PARSER` environment variable to `v2` to enable:
212
+
The new syntax for workflow handlers requires the {ref}`strict parser <strict-syntax-page>`. Set the `NXF_SYNTAX_PARSER` environment variable to `v2` to enable:
213
213
214
214
```bash
215
215
export NXF_SYNTAX_PARSER=v2
@@ -231,11 +231,11 @@ workflow {
231
231
}
232
232
```
233
233
234
-
This syntax is simpler and easier to use with the {ref}`strict syntax <strict-syntax-page>`. See {ref}`workflow-handlers` for details.
234
+
This syntax is simpler and easier to use with the {ref}`strict parser <strict-syntax-page>`. See {ref}`workflow-handlers` for details.
235
235
236
236
<h3>Simpler syntax for dynamic directives</h3>
237
237
238
-
The {ref}`strict syntax <strict-syntax-page>` allows dynamic process directives to be specified without a closure:
238
+
The {ref}`strict parser <strict-syntax-page>` allows dynamic process directives to be specified without a closure:
239
239
240
240
```nextflow
241
241
process hello {
@@ -284,11 +284,11 @@ This feature addresses previous inconsistencies in timestamp representations.
284
284
285
285
## Deprecations
286
286
287
-
- The legacy type detection of CLI parameters is disabled when using the strict syntax (`NXF_SYNTAX_PARSER=v2`). {ref}`Legacy parameters <workflow-params-legacy>` in the strict syntax should not rely on legacy type detection. Alternatively, use the new `params` block to convert CLI parameters based on their type annotations. Legacy type detection can be disabled globally by setting the environment variable `NXF_DISABLE_PARAMS_TYPE_DETECTION=true`.
287
+
- The legacy type detection of CLI parameters is disabled when using the strict parser (`NXF_SYNTAX_PARSER=v2`). {ref}`Legacy parameters <workflow-params-legacy>` should not rely on legacy type detection. Alternatively, use the new `params` block to convert CLI parameters based on their type annotations. Legacy type detection can be disabled globally by setting the environment variable `NXF_DISABLE_PARAMS_TYPE_DETECTION=true`.
288
288
289
289
- The use of workflow handlers in the configuration file has been deprecated. You should define workflow handlers in the pipeline script or a plugin instead. See {ref}`config-workflow-handlers` for details.
290
290
291
-
- The `nextflow.enable.configProcessNamesValidation` feature flag is deprecated. It was originally introduced to suppress false warnings for process selectors targeting conditional processes. The {ref}`strict syntax <strict-syntax-page>` now validates process selectors without producing false warnings.
291
+
- The `nextflow.enable.configProcessNamesValidation` feature flag is deprecated. It was originally introduced to suppress false warnings for process selectors targeting conditional processes. The {ref}`strict parser <strict-syntax-page>` now validates process selectors without producing false warnings.
Copy file name to clipboardExpand all lines: docs/process.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -211,8 +211,8 @@ Template scripts are generally discouraged due to the caveats described above. T
211
211
212
212
### Shell
213
213
214
-
:::{deprecated} 24.11.0-edge
215
-
Use the `script` section instead. Consider using the {ref}`strict syntax <strict-syntax-page>`, which provides error checking to help distinguish between Nextflow variables and Bash variables in the process script.
214
+
:::{deprecated} 25.04.0
215
+
Use the `script` section instead.
216
216
:::
217
217
218
218
The `shell` section is a string expression that defines the script that is executed by the process. It is an alternative to the {ref}`process-script` definition with one important difference: it uses the exclamation mark `!` character, instead of the usual dollar `$` character, to denote Nextflow variables.
@@ -1036,8 +1036,7 @@ The `tuple` qualifier outputs multiple values in a single output as a {ref}`tupl
1036
1036
```nextflow
1037
1037
process blast {
1038
1038
input:
1039
-
val species
1040
-
path query
1039
+
tuple val(species), path(query)
1041
1040
1042
1041
output:
1043
1042
tuple val(species), path('result')
@@ -1052,7 +1051,7 @@ workflow {
1052
1051
ch_species = channel.of('human', 'cow', 'horse')
1053
1052
ch_query = channel.fromPath('*.fa')
1054
1053
1055
-
blast(ch_species, ch_query)
1054
+
blast(ch_species.combine(ch_query))
1056
1055
}
1057
1056
```
1058
1057
@@ -1257,7 +1256,7 @@ All directives can be assigned a dynamic value except the following:
1257
1256
:::{versionadded} 25.10
1258
1257
:::
1259
1258
1260
-
Dynamic directives can be specified without a closure when using the {ref}`strict syntax <strict-syntax-page>`:
1259
+
Dynamic directives can be specified without a closure when using the {ref}`strict parser <strict-syntax-page>`:
0 commit comments