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 think it's easier to consider an example script block, in which we mix Bash variables, Awk column names and Nextflow variables. To be correct, you need to escape the dollar signs of all non-Nextflow variables (otherwise Nextflow fails).
The thing is, if you forget to escape, that's invalid Nextflow code. Can we have a special highlight (like red background) to spot these? This might become even more relevant since Nextflow decided to deprecate the shell block.
We can unambiguously determine that $1, $2, etc cannot be Nextflow variables (I think). Also for the syntax $(command) which is Bash only.
Hi!
I am not sure how to proceed alone to make this change. Note that I am using the fork from @raivivek (https://github.com/raivivek/nextflow.vim) but cannot submit an issue there.
I think it's easier to consider an example script block, in which we mix Bash variables, Awk column names and Nextflow variables. To be correct, you need to escape the dollar signs of all non-Nextflow variables (otherwise Nextflow fails).
(I am making this up).
The thing is, if you forget to escape, that's invalid Nextflow code. Can we have a special highlight (like red background) to spot these? This might become even more relevant since Nextflow decided to deprecate the
shell
block.We can unambiguously determine that
$1
,$2
, etc cannot be Nextflow variables (I think). Also for the syntax$(command)
which is Bash only.I read the syntax file, and maybe at this line:
we could add an extra contained group such as
InvalidGroovyVar
.The text was updated successfully, but these errors were encountered: