Daniel Lundin
06/10/2026, 3:05 PMERROR ~ Argument of `file()` function cannot be empty
-- Check script 'subworkflows/nf-core/utils_nfschema_plugin/main.nf' at line: 72 or see '.nextflow.log' file for more details
Line 72 is the call to validateParams in:
if(validate_params) {
validateOptions = [:]
if(parameters_schema) {
validateOptions << [parametersSchema: parameters_schema]
}
if(cli_typecast != null) {
validateOptions << [cliTypecast: cli_typecast]
}
validateParameters(validateOptions)
}
I call the utility function like this from the local subworkflow:
UTILS_NFSCHEMA_PLUGIN (
workflow,
validate_params,
null,
help,
help_full,
show_hidden,
before_text,
after_text,
command,
null
)
I.e. with null for parameters_schema.
A couple of println shows that neither of the two `if`s are visited, and validateOptions is [:] when the function is called.
Running the pipeline with --help works.
Tools version 4.0.2, fails both with Nextflow 26.4.03 and 25.10.4.
Doing the same with #C01U1E95JQ5 just works. I can't find any differences between the two.Daniel Lundin
06/11/2026, 5:36 AM.nextflow.logDaniel Lundin
06/11/2026, 6:17 AMnextflow.config to the empty string rather than null.