Bug report
Expected behavior and actual behavior
Expected
nextflow module run should execute successfully when the input to the process is a destructured record input.
Actual
An error occurs that indicates the inputs are being passed in as an ArrayList and not being structured as a record properly.
Steps to reproduce the problem
nextflow.enable.types = true
workflow {
inputs = channel.of(
record(id: "abc", greeting: "hello")
)
RECORDS(inputs)
}
process RECORDS {
input:
record(
id: String,
greeting: String
)
output:
record(
id: id,
greeting: greeting
)
script:
"""
echo '${greeting}'
"""
}
- create a module at
./modules/testing/records
- copy contents of the process
RECORDS to that module
- run
nextflow module run testing/records --id "a" --greeting "hi"
Program output
N E X T F L O W ~ version 26.04.1
Launching `.../modules/testing/records/main.nf` [angry_thompson] revision: d10ebc4246
ERROR ~ Error executing process > 'RECORDS'
Caused by:
[RECORDS] input at index 0 expected a record but received: [a, hi] [ArrayList]
Tip: when you have fixed the problem you can continue the execution adding the option `-resume` to the run command line
-- Check '.module.log' file for details
Environment
- Nextflow version: 26.04.1
- Java version: openjdk 17.0.10 2024-01-16
- Operating system: macOS / Linux
- zsh version: 5.9 (x86_64-apple-darwin23.0)
Bug report
Expected behavior and actual behavior
Expected
nextflow module runshould execute successfully when the input to the process is a destructured record input.Actual
An error occurs that indicates the inputs are being passed in as an ArrayList and not being structured as a record properly.
Steps to reproduce the problem
./modules/testing/recordsRECORDSto that modulenextflow module run testing/records --id "a" --greeting "hi"Program output
Environment