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
Subworkflows are not checked for dependencies within Groups #1066
Comments
I don't understand this -- do you mean that opening a pipeline that contains an abstraction module, the abstraction's pipeline is checked for needed packages? But that doesn't recurse in the abstraction pipeline's groups? Or is it when opening the abstraction's pipeline in the view? |
This is when subworkflows in ~/.vistrails/subworkflows/ are loaded when starting vistrails. |
I think those subworkflows are loaded after all packages (including the spreadsheet). So the case in question is when the spreadsheet is manually loaded after starting VisTrails, right? The right way to do this is probably to have a hook so that whenever a package is (re)loaded, we check all subworkflows to see which may need to be (re)loaded. Ideally, the packages each subworkflow depends on should be cached to make this a quick check. |
This all happens at startup. Loading the subworkflows last should fix this. I checked if this was already done but could not find it. Maybe checking for dependencies at the top level was considered good enough? |
On my machine, this triggered a
This is all very broken. |
Fixed by aea6e38 |
@rexissimus, looks good, but there is an |
Thanks, fixed in 9c04ab5. |
I notice that |
Subworkflows are all in the "My Subworkflows" package, so there should not be a need to recurse on subworkflows to get all dependencies. |
Example: A subworkflow with a spreadsheet module inside a Group will fail to load if it is loaded before the spreadsheet package.
If this happens the abstraction package needs to be manually reloaded to enable the subworkflow.
The text was updated successfully, but these errors were encountered: