> > Hi !, > It is a bug in qooxdoo 0.8 > Qooxdoo maintains a cache to speed up the "./generate.py build" and > "./generate.py source" commands. > If the cache is some how outdated is not refreshed it does not include the > required dependencies, which has happened in your case and mine. > > A simple solution is too remove all files contained in the cache folder > and > then run "./generate source" or "./generate build" again, to remind it of > the dependencies it has too include. > > it does not happen often, but when it does it is just so irritating when > you > just dont seem to know why !
"It's not a bug, it's a feature" ;-). Chances are this crops up whenever you use a new class for the first time (like qx.io.remote.Rpc in Yann's example). Then you don't have to clear the cache folder, just re-run 'generate.py source' or 'generate.py build', and everything will be fine. The cache is not outdated, but since dependencies of an application are "wired" into the generated output, you have to re-run the generation when dependencies change (particularly, when new dependencies have been added) [1]. This helps to keep the generated output lean. This is deliberately so for the build version of the app. In case of the source version, if you are willing to pay the additional cost of size and start-up time, you might want to use the new job 'source-all' in place of 'source' which has been added with 0.8.1. This job will build a source version that contains *all* classes of the involved libraries, and will allow you to add new class references to your application without re-running 'generate.py source'; you just have to reload your app in the browser. HTH, Thomas [1] http://qooxdoo.org/documentation/0.8/helloworld#write_application_code > > xask.linus > > > > Yann Farge wrote: >> >> hi, >> >> i'm a super newbie... but i want to improve! >> >> i'm on qooxdoo 0.8. >> >> i just want to do a login page with RPC >> >> here is the beginning of my code (Application.js) >> >> >> qx.Class.define("custom2.Application", >> { >> extend : qx.application.Standalone, >> >> >> >> /* >> >> ***************************************************************************** >> MEMBERS >> >> ***************************************************************************** >> */ >> >> members : >> { >> /** >> * This method contains the initial application code and gets >> called >> * during startup of the application >> */ >> main : function() >> { >> // Call super class >> this.base(arguments); >> >> var url = "http://127.0.0.1:8000"; >> var service = "login.test"; >> >> var toto = new qx.io.remote.Rpc(); >> >> var rpc = new qx.legacy.io.remote.Rpc(); >> rpc.setTimeout(10000); >> rpc.setUrl(url); >> rpc.setServiceName(service); >> >> rpc.setCrossDomain(true); >> >> >> >> >> AND in firebug i have this message: >> >> >> qx.io is undefined >> var rpc = new qx.io.remote.Rpc(); >> >> >> >> Someone can help? >> >> Thanks you all >> >> >> >> >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> qooxdoo-devel mailing list >> qooxdoo-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> > > -- > View this message in context: > http://www.nabble.com/qx.io-is-undefined-tp19307312p21182597.html > Sent from the qooxdoo-devel mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > ------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel