Hi Sebastian,
thanks for your patch, the generator works fine now on "make" and "make
source"... but "make api" doesn't work fine for me. See hereafter a trace :
* Generating API tree:
.........................................................................................
..................................................................................................................
.........................................................................
* Finalising tree...
* Writing JSON API file to api/script/data.js
Traceback (most recent call last):
File "../qooxdoo/frontend/framework/tool/generator.py", line 1056, in ?
main()
File "../qooxdoo/frontend/framework/tool/generator.py", line 300, in main
argparser(sys.argv[1:])
File "../qooxdoo/frontend/framework/tool/generator.py", line 285, in
argparser
execute(fileDb, moduleDb, options, options.packageId)
File "../qooxdoo/frontend/framework/tool/generator.py", line 843, in
execute
jsonContent = tree.nodeToJsonString(docTree, "", "", "")
File
"/cygdrive/c/wamp/www/qooxdoo/frontend/framework/tool/modules/tree.py", line
526, in nodeToJsonString
asString += nodeToJsonString(child, prefix, childPrefix, newLine) + ','
+ newLine
File
"/cygdrive/c/wamp/www/qooxdoo/frontend/framework/tool/modules/tree.py", line
526, in nodeToJsonString
asString += nodeToJsonString(child, prefix, childPrefix, newLine) + ','
+ newLine
File
"/cygdrive/c/wamp/www/qooxdoo/frontend/framework/tool/modules/tree.py", line
526, in nodeToJsonString
asString += nodeToJsonString(child, prefix, childPrefix, newLine) + ','
+ newLine
File
"/cygdrive/c/wamp/www/qooxdoo/frontend/framework/tool/modules/tree.py", line
526, in nodeToJsonString
asString += nodeToJsonString(child, prefix, childPrefix, newLine) + ','
+ newLine
File
"/cygdrive/c/wamp/www/qooxdoo/frontend/framework/tool/modules/tree.py", line
526, in nodeToJsonString
asString += nodeToJsonString(child, prefix, childPrefix, newLine) + ','
+ newLine
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 135:
ordinal not in range(128)
make: *** [generate-api-data] Error 1
best,
frederic
Sebastian Werner wrote:
>
> Hi Frederic,
>
> thank you for your report. Any sorry about any inconvenience. Should be
> fixed with revision 4791.
>
> Sebastian
>
>
> frederic schrieb:
>> Hello,
>> With the latest SVN revision of Qooxdoo, I cannot compile a simple script
>> with accent in string.
>>
>> =================================
>> My test file class/custom/Application. (stored in UTF8 format):
>>
>> qx.OO.defineClass("custom.Application", qx.component.AbstractApplication,
>> function () {
>> qx.component.AbstractApplication.call(this);
>> });
>>
>> qx.Proto.main = function(e)
>> {
>> var button1 = new qx.ui.form.Button("Welcome, enchanté!",
>> "icon/16/reload.png");
>> button1.addToDocument();
>> };
>>
>> =================================
>> the compilation command (from skeleton sample 1) :
>>
>> ...
>> generate-script-build:
>> @chmod u+x $(GENERATOR) && nice -n $(NICE) $(GENERATOR) \
>> --script-input $(FRAMEWORK)/source/class \
>> --script-input source/class \
>> --generate-compiled-script \
>> $(INCLUDE) $(OPTIMIZESTR) $(OPTIMIZEVAR) \
>> --compiled-script-file build/script/$(SCRIPTNAME) \
>> --copy-resources \
>> --resource-input $(FRAMEWORK)/source/resource \
>> --resource-output build/resource \
>> --define-runtime-setting
>> qx.manager.object.AliasManager.resourceUri:./resource \
>> --cache-directory $(CACHE)
>> ...
>> =================================
>> The error message :
>>
>>
>> GENERATION OF SETTINGS:
>> ----------------------------------------------------------------------------
>> * Processing input data...
>>
>> GENERATION OF COMPILED SCRIPT:
>> ----------------------------------------------------------------------------
>> * Compiling: .Traceback (most recent call last):
>> File "../qooxdoo/frontend/framework/tool/generator/generator.py", line
>> 1056, in ?
>> main()
>> File "../qooxdoo/frontend/framework/tool/generator/generator.py", line
>> 300, in main
>> argparser(sys.argv[1:])
>> File "../qooxdoo/frontend/framework/tool/generator/generator.py", line
>> 285, in argparser
>> execute(fileDb, moduleDb, options, options.packageId)
>> File "../qooxdoo/frontend/framework/tool/generator/generator.py", line
>> 1033, in execute
>> compiledOutput += compiledFileContent
>> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
>> 19078:
>> ordinal not in range(128)
>> make: *** [generate-script-build] Error 1
>>
>> =================================
>>
>> cheers,
>> frederic
>>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://www.nabble.com/Bug-in-revision-4783---generator.py---string-with-accent-tf2617251.html#a7328327
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel