-
21 Sep 2012 11:02 AM #31
The options to the v3 Sencha Cmd will be sensitive to ordering. Commands in v3 are processed hierarchically, so options to a particular sub command will need to follow that sub command on the command line.
In this case, the compressor setting (closure or yui) is an option on the concat command, which means it will need to follow that command on the command line.
In the command you show, they are transposed, which would cause this issue, as the higher level compile command does not have options for closure or yui.
This should correct it:
PHP Code:/Users/knalli/bin/Sencha/Cmd/3.0.0.141/sencha compile -classpath=app.js,ext-4.1.1/src,ext-4.1.1/examples/ux,plugins,myappdir exclude -namespace=Ext.chart and concat -out all-classes-dev.js and -debug=false concat -out all-classes-debug.js and concat -closure -out=all-classes-prod.js
-
22 Sep 2012 10:27 AM #32
Ah, yes, thanks. That's makes actually more sense. Seems to be a bug in the blog post, however.
-
22 Sep 2012 2:52 PM #33
Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
24 Sep 2012 5:02 AM #34Sencha - Architect Dev Team
- Join Date
- Jan 2009
- Location
- Frederick, Maryland
- Posts
- 75
- Vote Rating
- 3
It may also be worth mentioning here that a restart is required if upgrading.Step 3: Download and install the latest Sencha Cmd.
-
24 Sep 2012 7:03 AM #35Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
24 Sep 2012 1:13 PM #36
Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
25 Sep 2012 6:43 AM #37Sencha - Architect Dev Team
- Join Date
- Jan 2009
- Location
- Frederick, Maryland
- Posts
- 75
- Vote Rating
- 3
-
25 Sep 2012 5:34 PM #38
I was getting the exact same error. I finally found the solution here: http://stackoverflow.com/questions/7189269/running-javascript-with-cscript
A very simple fix: use assoc.
c:\>assoc .js=JSFile
(Mine had become associated with a text editor at some point.)
Unfortunately now I can't open my JS files in UltraEdit by double-clicking them.
-
25 Sep 2012 6:05 PM #39
We will be replacing the batch file + wsh script approach to launching Sencha Cmd with a real exe for 3.0 GA which will eliminate this issue. Sorry for the hassle in the meantime.
Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
25 Sep 2012 9:22 PM #40
Thanks. By the way do you know if the upgrade command works with Sencha? I wanted to upgrade fromSencha 2.1 beta 1 to beta 3, but the SDK tools didn't seem to work. So I downloaded the new command tool, but it doesn't seem to work either for upgrading. I am able to build a new app with it though using the beta SDK.
Thank you for reporting this bug. We will make it our priority to review this report.



Thanks for pointing that out! I fixed the code example on the blog post. Sorry for any hassle.