Hi John,

> 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?

It's neither nor. It's Json, or to be more precise, our simple extension
to it: We support JavaScript-style comments. When you use '//' you start
an end-of-line comment which is stripped, and what remains is a run-away
string that extends to the end of the file.

I never fall into this trap as I use JavaScript syntax highlighting when
editing Json, so comments stand out.

What you can do when you need to enter '//' or '/*' in a string literal is
to escape the slash with a backslash.

T.



------------------------------------------------------------------------------
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