Hi Klaus,
Klaus-F. Kaal wrote:
> Hi,
>
> I am having a project which runs fine when I run it under "source", but
> throws
> exception, when compiled into the /build directory. Then I get this error
> message in firebug:
>
> [Exception... "'Error: Server error 4: Method `5` not found in service
> class
> `structure`.' when calling method: [nsIDOMEventListener::handleEvent]"
> nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location:
> "<unknown>" data: no]
>
>
> The strange thing: it obviously works with the class called "Structure" and I
> cannot see, where I would call something like "5". I have no idea how to
> debug this.
This is due several optimizations which are used for the "build"
version. There are two ways to solve this. If you are using the current
trunk you can easily modify the "OPTIMIZE" macro value.
--snip--
let : {
...
"OPTIMIZE" : ["basecalls", "variables", "privates", "strings"],
...
}
--snip--
Just delete the "variables" out of the list.
If you use the 0.8 version you have to create your own build job to
achieve this, because overwriting/merging jobs will be available with
the upcoming 0.8.1 release.
This setup works for me (at least with the "feedreader" application).
--snip--
{
"name" : "Feedreader config.json",
"include" :
[
{
"path" : "../../tool/data/config/application.json"
}
],
"let" :
{
"APPLICATION" : "feedreader",
"QOOXDOO_PATH" : "../../framework",
"QOOXDOO_URI" : "../${QOOXDOO_PATH}",
"CACHE" : "../../cache",
"QXTHEME" : "qx.theme.Modern",
"LOCALES" : ["en", "de", "es", "fr", "it", "sv"],
"TEST_INCLUDE" : "${APPLICATION}.*",
"ROOT" : ".",
"BUILD_PATH" : "${ROOT}/build"
},
"jobs" :
{
"common" :
{
"library" :
[
{
"manifest" : "${QOOXDOO_PATH}/Manifest.json",
"uri" : "${QOOXDOO_URI}"
},
{
"manifest" : "${ROOT}/Manifest.json",
"uri" : ".."
}
],
"include" :
[
"${APPLICATION}.Application",
"${QXTHEME}"
],
"cache" :
{
"compile" : "${CACHE}"
},
"settings" :
{
"qx.version" : "${QXVERSION}",
"qx.theme" : "${QXTHEME}",
"qx.application" : "${APPLICATION}.Application"
}
},
// -- build jobs ---------------------------------------------------
"build-myscript" :
{
"extend" : ["common"],
"variants" :
{
"qx.debug" : ["off"]
},
"compile-dist" :
{
"target" : "${BUILD_PATH}",
"file" : "${BUILD_PATH}/script/${APPLICATION}.js",
"uri" : "script/${APPLICATION}.js",
"root" : "${BUILD_PATH}",
"format" : "on",
"locales" : "${LOCALES}",
"optimize" : ["basecalls"]
}
},
"build-files" :
{
"extend" : ["common"],
"copy-files" :
{
"files" :
[
"index.html"
],
"target" : "${BUILD_PATH}"
}
},
"build-resources":
{
"extend" : ["common"],
"copy-resources" :
{
"target" : "${BUILD_PATH}",
"resource-filter" : true
}
},
"mybuild" :
{
"run" :
[
"build-resources",
"build-myscript",
"build-files"
]
}
}
}
--snip--
cheers,
Alex
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel