-
5 Feb 2013 4:49 AM #11
Try --yui=false or --yui false or --yui 0 or --yui=0.
Also, I think that posting this question in Sencha Cmd forum would be better - it is most likely scanned by Cmd developers.Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
7 Feb 2013 4:32 AM #12
All options are not correct or doesnt changed anything. Please move topic to Sencha Cmd forum
-
8 Feb 2013 7:23 AM #13
I had the same issues come up.
If you don't supply the -yui argument, YUI compression does not take place. If you haven't specified -yui and it's still coming up with YUI errors, then something is royally screwed with your project and I recommend using sencha app generate to create a new project and migrate your code into it (5 minutes work)
* If you've modified the ext directory name since downloading it then this command just won't work. After playing around for ages with this I resorted to downloading the latest source, unpacking it, cd-ing (probably a verb) into the ext folder and running the `sencha app generate` command. Worked first time.
You'll still need to compress your code at some point though so here's what to do to get that working.
PATCH 1:
Where you define the `float` property, wrap it in quotes and YUI will allow it.
Code:var o = { "float": value, key: value }
PATCH 2:
If you're still not happy with modding your code to fit the compressor then try adding the -uglify flag in place of -yui.
ACTUAL FIX:
Use an IDE with code-refactoring (Basically all of them) and fix the errors for real.
-
22 Feb 2013 5:06 AM #14
I've created new sencha application , replaced app dir with my app , and trying to run
from app dir. And still getting yui errors. Same when runningPHP Code:sencha compile concatenate -uglify out.js
Looks like there no possibility to set compiler for "app build" , but "compile concatenate" accepts -uglify argument - so why it still uses YUI ?PHP Code:sencha app build
I'm using latest Sencha CMD 3.0.2.288
-
22 Feb 2013 5:52 AM #15
Even if using
, where code is not compressed only concatenated, I'm gettingPHP Code:sencha app compile -e testing
PHP Code:[INF] -before-page:
[INF]
[INF] -page:
[INF] Compiling page page
[INF] Processing classPath entry : C:\Users\BU\bin\Sencha\Cmd\extjs-4.1.3\buapp\sencha-compile-temp-dir
[INF] Processing classPath entry : C:\Users\BU\bin\Sencha\Cmd\extjs-4.1.3\buapp\ext\src
[INF] Processing classPath entry : C:\Users\BU\bin\Sencha\Cmd\extjs-4.1.3\buapp\app
[WRN] C1000: Yui Compressor Warning (Trailing comma is not legal in an ECMA-262 object initializer => ],)
-- C:\Users\BU\bin\Sencha\Cmd\extjs-4.1.3\buapp\app\view\app\LoginWindow.js:763
[ERR] C2000: YUI Compressor Error (invalid property id => float: 'right') -- C:\Users
-
22 Feb 2013 7:48 AM #16
Hey Qarea...
Hey Qarea...
How long have you been working on this Qarea? It's been over a week now. If I were you, I'd do the RIGHT thing and fix all the syntax errors.
You'll need to compress the code before it goes live anyway, so you might as well just save yourself the stress and fix the errors.
Even if it takes a whole day, it's still quicker than the amount of time you've spent on this so far.
No-one is going to want to help you if you're not even willing to write compliant lookWhy did they have to go with CKEditor??
-
22 Feb 2013 11:56 AM #17
I didn't spent lot of time on this before, its stupid work to rename {style:{float:..}} properties, router.goto methods and etc, but I had to do it and finally built app-classes.js. And only to get that this is still not working.
Nevertheless YUI errors when specifying -uglify or -closure looks like a bug, so I hope it will be checked and fixed
-
26 Feb 2013 3:46 AM #18
Can anybody explain why running sencha compile .. from sencha app dir and from custom dir (with all same paths) for same set of files produces different output file ?
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote