Closed cahartsell closed 5 years ago
Charlie, good catch. The template for the boilerplate generator is in https://github.com/webgme/webgme-engine/blob/master/src/plugin/coreplugins/PluginGenerator/run_plugin_py.ejs. (It could be worth the while fix it here to - but has lower prio). Can you create an issue in the webgme-engine? Or even better a PR ;) Thanks
I've copied this issue to the webgme-engine repo and created a PR with the fix. I'm not entirely sure where the fix would go in this (webgme/bindings) repo. I'll leave this issue open for now
For python-based plugins, the namespace does not appear to be set correctly in "run_plugin.py". Relevant snippet below:
Also, the value of my 'sys.args' according to the logs:
So it looks like the "active-selection-path" should be sys.argv[5] instead of 4 and "namespace" should be sys.argv[6] instead of 5. In my case everything happens to work when there is no active node selected because this results in namespace="". I reference all my META objects with the absolute path (eg. "ALC_Meta.MyObject") so an empty namespace is not a problem. However, if any node is selected when the plugin is run, then it fails with an "Invalid Namespace" error.