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
If a process is imported twice, once aliased using as and once without, Nextflow unnecessarily prints a warning that the process is defined twice.
A minimal two-file example is provided at:
nextflow run robsyme/nf-test -r import-rename-bug
Where main.nf is
include { EXAMPLE } from './modules/main'
include { EXAMPLEasEXAMPLE_B } from './modules/main'
workflow {
Channel.of("Nextflow")
| ( EXAMPLE & EXAMPLE_B)
}
and modules/main.nf is
process EXAMPLE {
input:
val(name)
"echo Hi $name"
}
Expected behavior and actual behavior
It is expected that no warning is given, given there is no name conflict.
Steps to reproduce the problem
nextflow run robsyme/nf-test -r import-rename-bug
Program output
❯ nextflow run robsyme/nf-test -r import-rename-bug
N E X T F L O W ~ version 22.10.5
Launching `https://github.com/robsyme/nf-test` [evil_tuckerman] DSL2 - revision: b55151dc82 [import-rename-bug]
WARN: A process with name 'EXAMPLE_B' is defined more than once in module script: /Users/robsyme/.nextflow/assets/robsyme/nf-test/main.nf -- Make sure to not define the same function as process
Environment
Nextflow version: 22.10.5
Java version: openjdk version "17.0.5" 2022-10-18
Operating system: macOS & Linux
Bash version: zsh 5.8.1 & bash
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bug report
If a process is imported twice, once aliased using
as
and once without, Nextflow unnecessarily prints a warning that the process is defined twice.A minimal two-file example is provided at:
Where
main.nf
isand
modules/main.nf
isExpected behavior and actual behavior
It is expected that no warning is given, given there is no name conflict.
Steps to reproduce the problem
Program output
Environment
The text was updated successfully, but these errors were encountered: