Charlie_fr wrote: > Hi again Fabian > Thanks for your tip. Now i'm having problem with the migration from 0.8 to > 0.8.1 > I have indeed a specific config.json configuration, since i have defined > several libraries, moved them in various places, and also developed a maven > plug-in to call python. By now, when calling my config.json with the > generator.py script (not throught the maven plugin), and after some basic > changes in the config.json (0.8/framework reference => 0.8.1/), I'm > encountering the following error : > > File > "C:\Users\charles\Documents\sources\slc\org.argeo.slc.webapp\src\main\webapp\qooxdoo-0.8.1-sdk\tool\pylib\generator\code\DependencyLoader.py", > line 175, in getCombinedDeps > 'undef' : static['undef'] > KeyError: 'undef' >
Please delete your cache (e.g. by running 'generate.py distclean'). The cache format of these objects has changed between 0.8 and 0.8.1. The new DependencyLoader is trying to read an old cache object and chokes. Thomas > After going through the py code (which I don't know at all, python), I tried > replacing the problematic line by 'undef':[] and it is working. > Have you any idea of what the changes in the config.json might create this > problem? I've read the release note describing the changes but did not > understand everything. > > Thanks if you can figure this out, and thanks for your great work anyway > > Charles > > Below I put you my config.json (only the job i'm using, slc-source) : > > { > "name" : "ria", > > "include" : > [ > { > "path" : > "src/main/webapp/qooxdoo-0.8.1-sdk/component/apiviewer/api.json", > "as" : "apiconf" > }, > { > "path" : > "src/main/webapp/qooxdoo-0.8.1-sdk/component/testrunner/testrunner.json", > "as" : "testrunner" > } > ], > > "let" : > { > "APPLICATION" : "org.argeo.ria", > "QOOXDOO_PATH" : "src/main/webapp/qooxdoo-0.8.1-sdk", > "QOOXDOO_URI" : "../qooxdoo-0.8.1-sdk", > "QXTHEME" : "qx.theme.Modern", > "QXICONTHEME" : ["Tango"], > "API_EXCLUDE" : ["qx.legacy.*"], > "LOCALES" : [ "en" ], > "ROOT" : "src/main/webapp/argeo-ria-src", > "BUILD_PATH" : "src/main/webapp/argeo-ria", > "RIA_LIB_PATH" : "src/main/webapp/argeo-ria-lib", > "RIA_LIB_URI" : "../argeo-ria-lib", > "CACHE" : "cache" , > "CUSTOM_PACKAGE" : "org.argeo.slc.web" > }, > > "jobs" : > { > "common" : > { > "library" : > [ > { > "manifest" : "${QOOXDOO_PATH}/framework/Manifest.json" > }, > { > "manifest" : "${RIA_LIB_PATH}/slc-web/Manifest.json" > }, > { > "manifest" : "${RIA_LIB_PATH}/slc/Manifest.json" > }, > { > "manifest" : "${ROOT}/Manifest.json" > } > ], > > "include" : > [ > "${APPLICATION}.Application", > "${CUSTOM_PACKAGE}.*", > "${QXTHEME}" > ], > > "cache" : > { > "compile" : "${CACHE}" > }, > > "settings" : > { > "qx.version" : "${QXVERSION}", > "qx.theme" : "${QXTHEME}", > "qx.application" : "${APPLICATION}.Application", > "ria.StartupPerspective":"org.argeo.slc.web.LauncherPerspective" > > } > }, > > // -- source jobs -------------------------------------------------- > > "source-script" : > { > "extend" : ["common"], > > "compile-source" : > { > "file" : "${ROOT}/script/${APPLICATION}.js", > "locales" : "${LOCALES}", > "root" : "${ROOT}" > } > }, > > > "slc-source" : > { > "run" : > [ > "source-script" > ] > }, > } > > > > > > > Fabian Jakobs wrote: > >> Charlie schrieb: >> >>> Hi, >>> I'm trying to handle some specific actions when the user closes the >>> window. I guess this should be done listening to the "shutdown" event >>> but I can't get it to work. >>> I'm indeed listening on a jms server (using activemq) and I would like, >>> if possible, to unregister my client when closing it. >>> >>> What i've tried : >>> + add a "terminate()" function in my Application class (extending >>> Standalone), not triggered >>> >>> >> This is the correct approach but you need to update to 0.8.1. It has >> been fixed after the 0.8 release. >> >> Best Fabian >> >> >> >>> + In the main() function, register a listener on the window object, >>> listening for "shutdown" event, not triggered >>> + In the main() function, register a native listener on "unload", using >>> qx.bom.Event.addNativeListener(window, "unload", function(){}) : this is >>> indeed triggered but it seems that the objectregistry is inbetween >>> emptied and I cannot access my objects anymore, at a certain point... I >>> think.. :-) >>> >>> So is there something wrong with the "shutdown" event? Do I have to >>> extend in a way the qx.event.handler.Application? in that case, where >>> should I instantiate and register it? I'm trying all these with Firefox >>> 3. >>> >>> Thanks a lot >>> Charles >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by: >>> SourcForge Community >>> SourceForge wants to tell your story. >>> http://p.sf.net/sfu/sf-spreadtheword >>> _______________________________________________ >>> qooxdoo-devel mailing list >>> qooxdoo-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >>> >>> >>> >>> >> -- >> Fabian Jakobs >> JavaScript Framework Developer >> >> 1&1 Internet AG >> Brauerstraße 48 >> 76135 Karlsruhe >> >> Amtsgericht Montabaur HRB 6484 >> >> Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas >> Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, >> Achim Weiss >> Aufsichtsratsvorsitzender: Michael Scheeren >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> qooxdoo-devel mailing list >> qooxdoo-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> >> > > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel