PDA

View Full Version : [FIXED] Build 311 SyntaxError: Parse error when parsing desinger.js application code



systemcall
13 Mar 2012, 7:06 AM
appears always, when i try to edit code.
32687

g13013
13 Mar 2012, 10:26 AM
I had this issue. I was about to report it before I see your post.

The designer won't save any changes when their is a syntaxe error in editor and we save, it's like it keeps the erronious changes forever until we remove all generated files.

try to remove all genrated files, correct your syntaxe mistakes and try again to save.

this is a bug. I think that the desinger look into the last generated files instead of the modifications in the editor!

aconran
13 Mar 2012, 10:58 AM
Could either of you provide us a project that reliably reproduces this bug?

systemcall
13 Mar 2012, 11:46 AM
the problem went away, when i saved the project with a different name. i 'll send you an example.

g13013
13 Mar 2012, 12:39 PM
Could either of you provide us a project that reliably reproduces this bug?

it's too easy to reproduce, just make a syntaxe mistake in any function, to be sure, lets say the launch function of the Application class, and then save the changes. when you try to correct the syntaxe mistake, Disigner raises the SyntaxeError aand won't let you save, even if you corrected the mistake.

to save again, you have to save the project on an another file, or remove all generated files included the metadata folder.

aconran
13 Mar 2012, 2:42 PM
Thanks for the pointer regarding launch function.

Any function which has been associated with the Application file is affected by this bug. All other classes (views/models/controllers/etc) will not be affected.

If you can point out any contrary point please let me know.

g13013
15 Mar 2012, 6:45 AM
another issue that I reported about functions under the Application class
http://www.sencha.com/forum/showthread.php?186738-(BUG)-Basic-Function-inside-the-Application-(Build-311)&p=753478&viewfull=1#post753478

aconran
4 Apr 2012, 10:31 PM
This is fixed in build 353+.