Hi, The Nextflow language server complains with th...
# nf-schema
j
Hi, The Nextflow language server complains with this error:
Copy code
Included name 'paramsSummaryLog' is not defined in plugin 'nf-schema'
I have tried using different versions of the nf-schema plugin in my
nextflow.config
but the error does not goes away. The problem seems only to be an issue with the language server as the pipeline runs normally. The version of Nextflow I have in my system is
25.10.2.10555
, any ideas of how I can get rid of this error?
To give more context, I need to get rid of the error since we are trying the automatic metro map generation tool presented in the last summit and for using it latest version it relies on the language server and only works if it does not find any error
m
Is it maybe using a cached version of the plugin. Can you double check that it uses an updated version when you update it in the config?
j
Where is the plugin cached?
n
I've also noticed this issue in the
utils_nfschema_plugins
subworkflow. not sure what's causing it tho
j
And is there anyway to fix it? Using previous versions of the plugin seems not to fix it on my hands, but might a problem of the cache as @mashehu suggested
n
I haven't had time to investigate this issue ๐Ÿ˜• maybe @Ben Sherman knows more about this since it seems to language server related
I found the issue! Apparently the language server determined that the configuration file in the
tests/
directory of that subworkflow had priority over the main config file. So it thought that it was using nf-schema 2.5.1 (which the language server does not handle properly) instead of the newest version (2.6.1). Can you try bumping to 2.6.1 and see if that fixes the issue? Keep in mind that 2.6.1 is only supported by NXF version 25.10.0 and up
j
Thanks a lot! The version needs to be updated to 2.6.1 both in the test config file and the pipeline config, in case someone finds the same issue
๐ŸŽ‰ 1
I had not thought about the config file of the testsโ€ฆ
n
Yeah me neither, it's also not really clear by the error message
b
I'm looking at this subworkflow in rnaseq, it looks like a bug. I would not expect the test config to take priority for the subworkflow itself. Can you submit an issue to the language server repo?
j
Sure, actually I am not sure this is the reason, I am still encountering the error
deleteme.jpg
Actually, the error now is different when I open visual code I get ๐Ÿค”
Copy code
Plugin 'nf-schema' does not exist or is not specified in the configuration file
b
it should just look at the
nextflow.config
in the workspace root, so as long as the workspace root is the pipeline repo, it should get the
plugins
block from there
๐Ÿ‘ 1