Thank you for reporting this bug. We will make it our priority to review this report.
Hmm I have never used Sencha Touch, I didn't know that. The ExtJS-way of defining a model is a little different:
Originally Posted by Stju
So, is the output of sencha generate model command a bug? Shouldn't it be the one compatible with ExtJS SDK?
I'm trying to integrate the properties required by Sencha Cmd into my existing ExtJS project. So I have created an empty project using sencha generate app command, and investigated the autocreated cmd-related files.
So far everything looks normal and easy, but a line in the file app.json struck me as odd:
The value of the key "product" is supposed to be something else, I think.
* Build options
ExtJS SDK is located in C:\inetpub\wwwroot\extjs so I've created a batch file (sencha-cmd-build.bat) that contains the following line:
sencha -s "C:\inetpub\wwwroot\extjs" compile -classpath=app/app.js,app,extjs/src page -yui -in default.aspx -out build/default.aspx
For some reason, launching the application using the all-classes.js file created by Sencha Cmd does not work. Gives millions of errors (model not found, view not found, etc..) although all of them seems to be present in the compressed file.
- It is so much faster than SDK Tools 2.0.0 beta3. It even makes you think something is wrong
- While using SDK Tools, I used to exclude ext.js from my compressed and obfuscated app-all.js (don't know why) Sencha Cmd injects ext.js into the output file (all-classes.js) That made me think Sencha Cmd makes unnecessary source files get included in the compressed output file, but it's not. The difference appears to be just the ext.js file.
- I have never used the sass stuff, so for now I just removed the @import directives from app.scss
I'm giving up for now.
sencha compile -classpath=ext/src \ exclude -namespace Ext.chart and \ concat -out ext-all-no-charts-dev.js and \ -option debug:false \ concat -out ext-all-no-charts-debug.js and \ -yui \ concat -out ext-all-no-charts.js
Input Error: There is no script engine for file extension. "Js".
Where is 4.1.2a?
In support portal I have link to sencha complete download that has extjs-4.1.2-commercial from the 11th of Sep 2012 and nightly builds.
According to http://docs.sencha.com/ext-js/4-1/#!.../command_theme I need to run "sencha theme build default" to generate slice images. (Or presumably "sencha theme build mytheme" if I am customizing.)
Sencha Cmd v184.108.40.206
[ERROR] Expected 0 parametersWhich seems a little strange because if I remove a param and run "sencha theme build" by itself I get:
Sencha Cmd v220.127.116.11
[ERROR] the page property is required.
Also adding the following to your scss:
Causes the build to fail.
The compiler is looking for test.gif in resources/sass/theme/../images, which would resolve to resources/sass/images. This makes no sense as it would prevent theme specific images. To follow the directory structure you are using this should look for the image in:
I just followed the requirements here: http://docs.sencha.com/ext-js/4-1/#!/guide/command
and when I cd to the 4.1.1a SDK directory and try to run $ sencha, I get 'v2' not 'v3'
I assume that is because I had previously installed SenchaSDKTools-2.0.0-beta3-osx.
So, I uninstalled SenchaSDKTools-2.0.0-beta3-osx, re-installed Cmd (hoping it adds itself to my path like v2 did). The Cmd installer prompts me to install in /User/cfarrell/bin, which seems a little odd, but, I went with it.
Now, when I go to the 4.1.1a directory and try to run $ sencha, I get command not found.
Should I manually add ~/bin/Sencha/Cmd/18.104.22.168 to my PATH manually?
I found the Troubleshooting section of the Cmd Guide helpful. It confirmed that v3 is installed in the correct location and that I needed to manually set my PATH as well as an environment variable.
Is uninstallation of v2 a pre-requisite for installing v3?
Should build 141 have set the PATH and ENV var for me, or is manual config expected?
How do you get Ext.direct to work with sencha cmd compile?
The line Ext.direct.Manager.addProvider(Ext.php) - I'm not sure how to get it before the store/model/api definitions..