Hi John,

that's a bug. The generator uses the simplejson module which doesn't 
support JS-style comments in the string, so we strip them out before 
parsing. Here a RegEx misidentifies the double slashes as a comment and 
removes them and the rest of the line, so you end up with a newline 
where there shouldn't be one.

Could you please open a report for this issue?

Regards,
Daniel

On 02/03/2012 04:10 PM, John Spackman wrote:
> Hi,
>
> I got this weird error when running the generator:
>
> My config.json
>
> "libraries" : {
>
> "=library" : [ {
>
> "manifest" : "${QOOXDOO_PATH}/framework/Manifest.json",
>
> "uri" : "${QOOXDOO_URI}"
>
> }, {
>
> "manifest" : "Manifest.json",
>
> "uri" : "/__grasshopper.v3forms//control-panel.html!/bootstrap"
>
> }
>
>
> Output:
>
>     > >> Processing configuration
>     Invalid control character u'\n' at: line 40 column 1 (char 1262)
>     File: config.json
>
>
> Line 40 is the last closing brace in the config.json snippet above but
> the problem is caused by having a double slash in the value for "uri" on
> the previous line.
>
> It's typo in my config.json but the error message is rather obscure and
> took me a while to figure out what was triggering it. Is this just
> normal python or a bug in the generator?
>
> John
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
>
>
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to