da_b0uncer
19 Dec 2012, 3:09 AM
I got a few errors with a description, but ended up with this one:
# 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
But the mentioned file looks fine to me :\
--- EDIT ---
Btw. I'm using an object to get all class name strings to the top of every file.
var oClasses = {
myController: 'My.plugins.report.controller.Main',
myFactory: 'My.plugins.report.helper.Factory'
};
Ext.define( oClasses.myController, {
...
uses: [ oClasses.myFactory ],
...
});
# 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
But the mentioned file looks fine to me :\
--- EDIT ---
Btw. I'm using an object to get all class name strings to the top of every file.
var oClasses = {
myController: 'My.plugins.report.controller.Main',
myFactory: 'My.plugins.report.helper.Factory'
};
Ext.define( oClasses.myController, {
...
uses: [ oClasses.myFactory ],
...
});