Skip to content

Commit 0206d1f

Browse files
Fix Nextflow console (#5937) [ci fast]
Signed-off-by: Ben Sherman <bentshermann@gmail.com> Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com> Co-authored-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
1 parent d084299 commit 0206d1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/nf-console/src/main/nextflow/ui/console/Nextflow.groovy

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import groovy.console.ui.Console
2525
import groovy.console.ui.OutputTransforms
2626
import groovy.transform.ThreadInterrupt
2727
import groovy.util.logging.Slf4j
28+
import nextflow.NF
2829
import nextflow.NextflowMeta
2930
import nextflow.Session
3031
import nextflow.cli.CliOptions
@@ -98,7 +99,9 @@ class Nextflow extends Console {
9899
void newScript(ClassLoader parent, Binding binding) {
99100
assert parent
100101

101-
def parser = new ScriptLoaderV1(parent)
102+
if( NF.getSyntaxParserVersion() != 'v1' )
103+
log.warn "The Nextflow console only supports the v1 syntax parser -- ignoring NXF_SYNTAX_PARSER setting"
104+
final parser = new ScriptLoaderV1(parent)
102105
config = parser.getConfig()
103106

104107
if (threadInterrupt)

0 commit comments

Comments
 (0)