PDA

View Full Version : Where to find "syntax errors"



fischel
25 Jan 2012, 7:06 AM
Hello,

the output of my build give me same errormessages. Where can I find that errors in the source? What is the meaning of that numbers?

sencha build -v -p myproject.jsb3 -d .

[ERROR] 3689:26:syntax error
[ERROR] 3690:34:missing ; before statement
[ERROR] 3697:18:syntax error
[ERROR] 7686:21:missing : after property id

The errors were thrown after "Compress and obfuscate .."

In this forum I only found an old post without any answer:
http://www.sencha.com/forum/showthread.php?85638-Debugging-Errors&highlight=syntax+error

So someone can help me?

thx.
Stephan

fischel
1 Feb 2012, 12:56 AM
Okay, I can answer myself.

The number is the linenumber of the code in the build file. In my case I used a attribute "short".

{short: ''}

This throw the error "[ERROR] 11456:10:invalid property id" in the right line. So I have to quote it and everything was fine. It seems that "short" is a reserved word for the compressor.

{'short': ''}