-
27 Sep 2012 9:56 AM #1
Sencha cmd v3 production build fails (timeout) if not using sencha-touch-debug.js
Sencha cmd v3 production build fails (timeout) if not using sencha-touch-debug.js
I can build my app using sencha app build production if in app.json I use sdk/sencha-touch-debug.js.
If instead I try sedk/sencha-touch.js, the build fails with the following error:
[INFO] Copied resources/loading[INFO] Resolving your application dependencies (file:///ctdev/index.html)[ERROR] Timeout waiting for the application to finish loading[ERROR] Failed loading your application from: 'file:///ctdev/index.html'. Try setting the absolute URL to your application for the 'url' item inside 'app.json'Any thoughts?
-
29 Sep 2012 8:38 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
Ext.Loader isn't enabled by default in none debug files therefore Sencha Cmd cannot resolve the required classes to include in the build.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
30 Sep 2012 4:31 AM #3
So is it possible to get Sencha Cmd to build the production target without using the debug version?
-
30 Sep 2012 7:33 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
Correct, it needs Ext.Loader enabled to resolve what classes need to be included in the build.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
30 Sep 2012 10:34 AM #5
-
30 Sep 2012 4:01 PM #6
There is no reason to swap out "sencha-touch-debug.js" for "sencha-touch.js" in your app.json because doing so may disable the loader among other things used in dev mode.
The build process will effectively convert all code (app and framework) from debug mode to production mode.
There are two ways for the compiler to determine dependencies for your application: the new way using the compiler's code analytics and the old way of running your app in a headless browser and capturing the loader history.
Are you using "v2deps" mode? This is not the default so you would have to request it. The error message certainly appears to imply that you are using that mode, so either the v2 tools are running or this mode is enabled.
Please include the exact command and result (including Cmd version banner) with "-debug" enabled.
Such as:
ThanksCode:$ pwd /ctdev $ sencha -debug app build production Sencha Cmd V3.0.0.181 ...
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!"
-
30 Sep 2012 5:14 PM #7
I downloaded what I thought was the most recent version of the sencha command from http://www.sencha.com/products/sdk-tools/download/ but as you can see it reports version 2.0.2, not V3.0.0.181 you have.Code:$ which sencha /Applications/SenchaSDKTools-2.0.0-beta3/sencha $ sencha Sencha Command v2.0.2 Copyright (c) 2012 Sencha Inc. ...
The -debug flag doesn't report anything extra on my version of sencha. However, here is the full build log:
Where does one get v3 of the sencha command?Code:$ sencha -debug app build -e production -d /tmp/ctlive[INFO] Deploying your application to /tmp/ctlive [INFO] Copied sdk/sencha-touch-debug.js [INFO] Copied app.js [INFO] Copied add2home.js [INFO] Copied resources/css/app.css [INFO] Copied resources/css/ctlive.css [INFO] Copied resources/css/add2home.css [INFO] Copied resources/images [INFO] Copied resources/loading [INFO] Resolving your application dependencies (file:////private/tmp/ctdev/index.html) [INFO] Found 232 dependencies. Concatenating all into '/tmp/ctlive/app.js' [INFO] Processed sdk/sencha-touch-debug.js [INFO] Minifying sdk/sencha-touch-debug.js [INFO] Processed app.js [INFO] Minifying app.js [INFO] Processed add2home.js [INFO] Minifying add2home.js [INFO] Minifying resources/css/app.css [INFO] Minifying resources/css/ctlive.css [INFO] Minifying resources/css/add2home.css [INFO] Minified resources/css/add2home.css [INFO] Minified resources/css/ctlive.css [INFO] Minified sdk/sencha-touch-debug.js [INFO] Minified add2home.js [INFO] Minified app.js [INFO] Generated delta for: 'app.js' from hash: 'cddbf16bac76ddd1282cf9ccccf10dbe09483bb3' to hash: '87e184960f6e4ba08a179787daa11140af07de23' [INFO] Minified resources/css/app.css [INFO] Generated app.json [INFO] Embedded microloader into index.html [INFO] Generating checksum for appCache item: index.html [INFO] Generated cache.manifest
Thank you very much for your help. Things are starting to make a little more sense now.
-
30 Sep 2012 6:08 PM #8
That makes more sense

The new version is in beta and can be found here:
http://www.sencha.com/forum/showthre...ha-Cmd-V3-Beta
When we reach GA we will update the main site pages.
So, if you are using the Sencha Touch 2.1 Beta 3, then Sencha Cmd V3 (currently 3.0.0.181) is what you need.
The SDK Tools V2 are needed for Sencha Touch 2.0 since the new Cmd is not backwards compatible (as of yet anyway).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!"
-
1 Oct 2012 2:46 AM #9
Okay, makes perfect sense now.
I put v3 in my subject thinking Beta 3 == v3.
I'm looking forward to GA. Thanks!
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote