-
Notifications
You must be signed in to change notification settings - Fork 676
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
[>=25.02.0-edge] unable to resolve class nextflow.script.ScriptParser #5904
Comments
These classes are internal and not guaranteed to be stable across releases. In fact, they are not even guaranteed to be accessible in Nexflow scripts. I suggest moving such code into a plugin so that you can better control the version of Nextflow that it depends on. |
I see your point -- but at the same time in #4869 you were considering exposing it as an extension point, acknowledging that it would be useful for community members to work with this class 😅 I'm actively looking into refactoring much of our code into a plugin. However if the current implementation of Nextflow is released as a stable version it would break a lot of production workflows in different large organizations, some of which I know are direct Seqera clients. Is it possible to consider introducing a fallback, until we've had the time to develop a decent Nextflow plugin, and make sure that clients have transitioned successfully to the new implementation? Thanks for your help :) |
To be fair, #4869 would almost certainly involve breaking changes to internal classes, even if the end result would be stable. I can't control how others extend Nextflow, but it's simply not reasonable for us to preserve all internal APIs or maintain fallbacks for every change, just because someone else might be using that internal class in their scripts. It's a side effect of the fact that you can basically import anything from the Nextflow runtime into a Nextflow script... but we are trying to get away from that 😅 I would also point out that a new stable release only breaks your setup if you choose to upgrade to it -- but no one has to upgrade immediately! We try to make the upgrade as smooth as possible, but we make no guarantee that it will always be 100% seamless |
Bug report
Hi all!
With Nextflow >= 25.02.0-edge I get the following error:
This is because
nextflow.script.ScriptParser
was renamed tonextflow.script.parser.v1.ScriptLoaderV1
in #4613.Is there a way for Nextflow to be backwards compatible, e.g. by adding:
Otherwise organizations which are using production workflows on seqera cloud will end up with broken workflows when Nextflow is automatically updated to a newer version.
Thanks!
Robrecht
Expected behavior and actual behavior
With an older version of Nextflow, this error does not occur:
Instead, I get the error shown above.
Steps to reproduce the problem
See above.
Program output
See above.
Environment
Additional context
(Add any other context about the problem here)
The text was updated successfully, but these errors were encountered: