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
I am playing around with the syntax trying to understand the language server better and I managed to generate a possible lexical error in nextflow which shows an error but still runs as the user might expect. Unclear whether this is actually a bug, edge-case, or something else
Expected behavior and actual behavior
Either the script doesn't compile, or the error is not raised.
Steps to reproduce the problem
x = [z: 4]
println "$x\ some more"
Note the space after the \.
Using a \ produces a script compilation error with cause: Unexpected character: '"' in the following other cases:
"a\ b"
"\ a"
"a \ "
" \ a"
Program output
N E X T F L O W ~ version 24.10.3
Launching `./test.nf` [backstabbing_maxwell] DSL2 - revision: 008f33b6cc
unknown recognition error type: groovyjarjarantlr4.v4.runtime.LexerNoViableAltException
[z:4] some more
Environment
Nextflow version: 24.10.3
Java version: openjdk version "17.0.10" 2024-01-16
Operating system: macOS
Bash version: GNU bash, version 3.2.57
The text was updated successfully, but these errors were encountered:
Bug report
I am playing around with the syntax trying to understand the language server better and I managed to generate a possible lexical error in nextflow which shows an error but still runs as the user might expect. Unclear whether this is actually a bug, edge-case, or something else
Expected behavior and actual behavior
Either the script doesn't compile, or the error is not raised.
Steps to reproduce the problem
Note the space after the
\
.Using a
\
produces a script compilation error withcause: Unexpected character: '"'
in the following other cases:Program output
Environment
The text was updated successfully, but these errors were encountered: