[EMAIL PROTECTED] writes: > Fabian Jakobs <[EMAIL PROTECTED]> writes: > >> >> tool/generator.py --class-path source/class --migrate-source >> --migration-target 0.7 --include-without-dependencies qx.ui.core.Widget >> --cache-directory .cache > > Thanks. Problems, though. > > I used this in my skeleton-based application directory. It seemed to work but > the application doesn't run. Is there anything wrong with this command for a > full application migration? > > tool/generator.py --class-path source/class \ > --migrate-source --migration-target 0.7 > > Here's the error I got. > > > [Exception... "'Error: Singleton' when calling method: > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no] > anonymousBorder.js (line 716) > anonymousBorder.js (line 760) > anonymousBorder.js (line 684) > anonymousWidget.js (line 3012) > anonymousParent.js (line 965) > anonymousHorizontalBoxLayo... (line 642) > anonymousParent.js (line 921) > anonymousWidget.js (line 944) > anonymousWidget.js (line 612) > anonymousInterfaceInitComp... (line 93) > anonymousTarget.js (line 269) > anonymousTarget.js (line 227) > anonymousTarget.js (line 178) > anonymousPreloaderSystem.j... (line 154) > anonymousPreloaderSystem.j... (line 113) > anonymousTarget.js (line 269) > anonymousTarget.js (line 227) > anonymousPreloader.js (line 152) > anonymousPreloader.js (line 139) >
Thanks for your recent change that produced a better error message. That led me to the fact that I had a Singleton instance getter in an abstract class (for testing), and the migration script therefore assumed that it was itself a singleton when in fact it was an abstract class. Changing type:"singleton" to type:"abstract" solved that problem. It does lead to an interesting question, though. How does the migration tool determine that a class is abstract and set the type appropriately? Now I've got a different problem. I have a static method which appears to be properly defined using the new scheme, but a call to that static method generates an error which says that the static method "is not a function". I still need to track this down. (Any hints on how?) Cheers, Derrell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel