-
19 Dec 2012 3:09 AM #1
com.sencha.exceptions.ExParse: Failed parsing
com.sencha.exceptions.ExParse: Failed parsing
I got a few errors with a description, but ended up with this one:
But the mentioned file looks fine to me :\Code:# sencha compile --classpath=src,lib/extjs page -in=index.html -out=build/index.html Sencha Cmd v3.0.0.141 [INFO ] Compiling page null [INFO ] Processing classPath entry : /home/devel/kpl/projects/tree-gui/sencha-compile-temp-dir [INFO ] Processing classPath entry : src [INFO ] Processing classPath entry : lib/extjs [ERROR] Error executing page compilation Failed parsing /home/devel/kpl/projects/tree-gui/src/plugins/report/controller/Main.js [ERROR] com.sencha.exceptions.ExParse: Failed parsing /home/devel/kpl/projects/tree-gui/src/plugins/report/controller/Main.js
--- EDIT ---
Btw. I'm using an object to get all class name strings to the top of every file.
Code:var oClasses = { myController: 'My.plugins.report.controller.Main', myFactory: 'My.plugins.report.helper.Factory' }; Ext.define( oClasses.myController, { ... uses: [ oClasses.myFactory ], ... });Using Ext JS 4.1 (commercial) to build GUIs for web analytics.
-
19 Dec 2012 3:55 AM #2
Somehow it's because of my class string object.
Does Sencha Cmd use "requires" only or also "uses" for determining the needed classes?
Using "uses" is probably useless, since alle class files get loaded at once later...Using Ext JS 4.1 (commercial) to build GUIs for web analytics.
-
19 Dec 2012 6:00 AM #3
lol okay, Sencha Cmd could not work with my variable class names.
I used them for easy refactoring and minimizing string creation.
Anyhow...
I changed every "uses" to "requires" and removed all the variable class names from defines and requires.
Then I increased the heap space in sencha.cfg, since 512 somehow blasted the system.
Now I don't get errors anymore, but Sencha Cmd does nothing usefull...
I end up with a all-classes.js (which has one class in it) and a index.html. Which is kinda strange since it threw a few errors about classes it couldn't find, so I had to change the define of them, but now they aren't even in the file?!
Has this anything todo with the fact, that I don't use Ext.controller.Application for my app?Using Ext JS 4.1 (commercial) to build GUIs for web analytics.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote