Skip to content

Importing operator from plugin in multiple modules doesn't work #4926

@bentsherman

Description

@bentsherman

When importing an operator from a plugin, if you import anything from the same plugin in a different module, it fails with the following error:

if( existing.getClass().getName() != ext.getClass().getName() ) {
throw new IllegalStateException("Operator '$realName' conflict - it's defined by plugin ${pluginId} and ${existing.pluginId}")
}

It seems to import the operator twice and reports duplicate operators. It only seems to happen with operators, not factories or functions.

Here is a minimal test case: https://github.com/human9/nextflow-import-issue

Source: nextflow-io/nf-schema#3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions