MySQL Forums
Forum List  »  MySQL Workbench

Running WB 5.x plugin in WB 6 fails
Posted by: Karsten Wutzke
Date: March 18, 2014 08:14PM

Hello,

I've been away from my plugin I developed until 1-2 years ago. Some things have changed in WB 6 now (using 6.0.9).

I still have the plugin jpa_export_plugin_grt.py in my user's modules directory and it's still in the list in the UI under Tools -> Catalog -> Export JPA Annotated Classes...

However, when executing the script a dialog pops up saying:

Error during "Export JPA Annotated Classes..."

mforms: attempt to add a subview already contained somewhere

I see this is some kind of check from the mforms lib when a subview already has a parent, but since the code worked on previous WB versions (namely 5.1 and 5.2) I have to find out what it is.

How do I debug this?

I can't seem to achieve anything useful from the scripting shell >>> prompt.

Using

execfile('C:\\Users\\MYSELF\\AppData\\Roaming\\MySQL\\Workbench\\modules\\jpa_export_plugin_grt.py')

just does absolutely nothing.

I also removed the code that actually shows up the options UI, but this doesn't seem to have any effect?

What's wrong? It seems like the code gets/got cached somewhere.

Karsten

Options: ReplyQuote


Subject
Views
Written By
Posted
Running WB 5.x plugin in WB 6 fails
1180
March 18, 2014 08:14PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.