PDA

View Full Version : [FIXED] sencha generate app Does Not Create 'model' and 'store' Directories



accguy
15 Oct 2012, 6:18 AM
My Env:
Microsoft Windows 7 Ultimate, 6.1.7601 Service Pack 1 Build 7601
ruby 1.9.3p194 (2012-04-20) [i386-mingw32]
Compass 0.12.2 (Alnilam)
Sencha Cmd v3.0.0.190
ext-4.1.1a



After generating my app, the 'model' and 'store' directories are missing / not created.

Here is the output from generate app:



c:\local>sencha -sdk c:\local\sencha-cmd\ext-js\ext-4.1.1a generate app SenchaSampleApp c:\local\SenchaSampleApp
Sencha Cmd v3.0.0.190
[INFO ]
[INFO ] init-properties:
[INFO ]
[INFO ]
[INFO ] init-sencha-command:
[INFO ]
[INFO ]
[INFO ] init:
[INFO ]
[INFO ]
[INFO ] -before-generate-workspace:
[INFO ]
[INFO ]
[INFO ] generate-workspace-impl:
[INFO ]
[INFO ]
[INFO ] -before-copy-framework-to-workspace:
[INFO ]
[INFO ]
[INFO ] copy-framework-to-workspace-impl:
[INFO ]
[INFO ] [copy] Copying 1923 files to c:\local\SenchaSampleApp\ext
[INFO ]
[INFO ] [copy] Copied 187 empty directories to 2 empty directories under c:\local\SenchaSampleApp\ext
[INFO ]
[INFO ] [copy] Copying 85 files to c:\local\SenchaSampleApp\ext\src\ux
[INFO ]
[INFO ]
[INFO ] -after-copy-framework-to-workspace:
[INFO ]
[INFO ]
[INFO ] copy-framework-to-workspace:
[INFO ]
[INFO ]
[INFO ] -after-generate-workspace:
[INFO ]
[INFO ]
[INFO ] generate-workspace:
[INFO ]
[INFO ]
[INFO ] init-properties:
[INFO ]
[INFO ]
[INFO ] init-sencha-command:
[INFO ]
[INFO ]
[INFO ] init:
[INFO ]
[INFO ]
[INFO ] -before-generate-app:
[INFO ]
[INFO ]
[INFO ] generate-app-impl:
[INFO ]
[INFO ]
[INFO ] update-app:
[INFO ]
[INFO ]
[INFO ] update-app:
[INFO ]
[INFO ]
[INFO ] init-properties:
[INFO ]
[INFO ]
[INFO ] init-sencha-command:
[INFO ]
[INFO ]
[INFO ] init:
[INFO ]
[INFO ]
[INFO ] -before-app-refresh:
[INFO ]
[INFO ]
[INFO ] app-refresh-impl:
[INFO ]
[INFO ] Processing classPath entry : c:\local\sencha-compile-temp-dir
[INFO ] Processing classPath entry : C:\local\SenchaSampleApp\ext\src
[INFO ] Processing classPath entry : C:\local\SenchaSampleApp\app
[WARN ] [ [1000] : Yui Compressor Warning <> Trailing comma is not legal in an ECMA-262 object initializer => ] ] :: ( C:\local\SenchaSampleApp\ext\src\ux\grid\filter\DateFilter.js => 133 : 25 )
[INFO ] Processing class inheritance graph
[INFO ] Processing instantiation refereces to classes and aliases
[WARN ] [ [1000] : Yui Compressor Warning <> Trailing comma is not legal in an ECMA-262 object initializer => ] ] :: ( C:\local\SenchaSampleApp\ext\src\ux\grid\filter\DateFilter.js => 133 : 25 )
[INFO ] Processing source dependencies
[INFO ] Concatenating output to file C:\local\SenchaSampleApp\bootstrap.js
[INFO ] Appending concatenated output to file C:\local\SenchaSampleApp\bootstrap.js
[INFO ] Appending concatenated output to file C:\local\SenchaSampleApp\bootstrap.js
[INFO ]
[INFO ] -after-app-refresh:
[INFO ]
[INFO ]
[INFO ] app-refresh:
[INFO ]
[INFO ]
[INFO ] -after-generate-app:
[INFO ]
[INFO ]
[INFO ] generate-app:
[INFO ]


And, here are the (I think) relevent directory listings:

(I use http://unxutils.sourceforge.net/, hence the ls command stuff)



c:\local\SenchaSampleApp>ls -al
total 128
drw-rw-rw- 6 dbotham 0 4096 2012-10-15 07:56 .
drw-rw-rw- 155 dbotham 0 81920 2012-10-15 07:56 ..
drw-rw-rw- 4 dbotham 0 0 2012-10-15 07:56 .sencha
drw-rw-rw- 4 dbotham 0 0 2012-10-15 07:56 app
-rw-rw-rw- 1 dbotham 0 30267 2012-10-15 07:56 bootstrap.js
-rw-rw-rw- 1 dbotham 0 1044 2012-10-15 07:56 build.xml
drw-rw-rw- 7 dbotham 0 4096 2012-10-15 07:56 ext
-rw-rw-rw- 1 dbotham 0 446 2012-10-15 07:56 index.html
drw-rw-rw- 5 dbotham 0 0 2012-10-15 07:56 resources

c:\local\SenchaSampleApp>cd app

c:\local\SenchaSampleApp\app>ll

c:\local\SenchaSampleApp\app>ls -al
total 8
drw-rw-rw- 4 dbotham 0 0 2012-10-15 07:56 .
drw-rw-rw- 6 dbotham 0 4096 2012-10-15 07:56 ..
-rw-rw-rw- 1 dbotham 0 136 2012-10-15 07:56 app.js
drw-rw-rw- 2 dbotham 0 0 2012-10-15 07:56 controller
drw-rw-rw- 2 dbotham 0 0 2012-10-15 07:56 view

c:\local\SenchaSampleApp\app>ls -alR
.:
total 8
drw-rw-rw- 4 dbotham 0 0 2012-10-15 07:56 .
drw-rw-rw- 6 dbotham 0 4096 2012-10-15 07:56 ..
-rw-rw-rw- 1 dbotham 0 136 2012-10-15 07:56 app.js
drw-rw-rw- 2 dbotham 0 0 2012-10-15 07:56 controller
drw-rw-rw- 2 dbotham 0 0 2012-10-15 07:56 view

./controller:
total 4
drw-rw-rw- 2 dbotham 0 0 2012-10-15 07:56 .
drw-rw-rw- 4 dbotham 0 0 2012-10-15 07:56 ..
-rw-rw-rw- 1 dbotham 0 84 2012-10-15 07:56 Main.js

./view:
total 8
drw-rw-rw- 2 dbotham 0 0 2012-10-15 07:56 .
drw-rw-rw- 4 dbotham 0 0 2012-10-15 07:56 ..
-rw-rw-rw- 1 dbotham 0 101 2012-10-15 07:56 Main.js
-rw-rw-rw- 1 dbotham 0 481 2012-10-15 07:56 Viewport.js


Any suggestings? Am I missing something?

Thanks again, in advance, for your help.

mitchellsimoens
17 Oct 2012, 6:47 AM
Ext JS 4 app should have it generated so I have opened a bug in our bug tracker.

The ST2 app does get them created.

paulh1971
14 Nov 2012, 9:25 AM
I just downloaded SDK 2.1 and installed Sencha cmd and the necessary items it requires. When I generate my app, all that is in the folder is 'cmd', 'microloader', 'resources', 'src', and four sencha-touch .js files. The index.html file, app, sdk folders, app.js, app.json and packager.json are not there.

What might I be doing wrong?

Thanks!