Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bentsherman opened this issue Apr 18, 2024 · 0 comments
Open

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

bentsherman opened this issue Apr 18, 2024 · 0 comments
Labels

Comments

@bentsherman
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant