F:\apache-tomcat-6.0.10\webapps\sencha-touch-2.0.0>sencha generate app testst3 ../testst3
Sencha Cmd v3.0.0.190
[ERROR] Failed to determine framework name. Please ensure this command was issued from either a framework or application directory.
Printable View
F:\apache-tomcat-6.0.10\webapps\sencha-touch-2.0.0>sencha generate app testst3 ../testst3
Sencha Cmd v3.0.0.190
[ERROR] Failed to determine framework name. Please ensure this command was issued from either a framework or application directory.
Quote from Don:
Scott.Quote:
For building Sencha Touch apps with Sencha Cmd V3, you will need Sencha Touch 2.1 Beta 3
Also to build Sencha Touch 2.0.x apps you need SDK Tools v2
Admin no one has replied to this thread. Those two previous comments are irrelevant. I have the same error and running the latest stuff as of this posted date. Sencha Touch 2.1.0 commercial, SDK Tools V2.0.0, Sencha Command v3.0.0.250. All of this to no avail. Please address this issue as I am a windows user who is stranded at the first step and unable to create/generate an app from the sencha command.
Creating app from the Architect works but I don't have the Model-View-Controller architercture in the project though. Not cool at all...:(
The most likely cause of this message is combination of the current directory and the command you are executing. If you can provide the exact steps you are taking (full command lines) and the output from Cmd that would help.
For example:
Code:/path/to/something>sencha -debug generate app MyApp apps/myapp
I also want to mention that looking at those generated apps from the video presentations they do not have '.XDS' files. I believe this is equivalent to a solution file that enables Sencha Architect to load projects. Please correct me if I am wrong.<br><br><br>My cmd prompt ouput below<br>
<br>
<br>
Code:<br>Microsoft Windows [Version 6.1.7601]<br>
Copyright (c) 2009 Microsoft Corporation. All rights reserved.<br>
<br>
C:\Users\lebel>cd \<br>
<br>
C:\>cd C:\JavaScript-Libraries\Sencha\sencha-touch<br>
<br>
C:\JavaScript-Libraries\Sencha\sencha-touch>sencha<br>
Sencha Cmd v3.0.0.250<br>
<br>
<br>
Options<br>
* --debug, -d - Sets log level to higher verbosity<br>
* --plain, -p - enables plain logging output (no highlighting)<br>
* --quiet, -q - Sets log level to warnings and errors only<br>
* --sdk-path, -s - sets the path to the target framework<br>
<br>
Categories<br>
* app - Perform various application build processes<br>
* compile - Compile sources to produce concatenated output and metadata<br>
* fs - A set of useful utility actions to work with files.<br>
* generate - Generates models, controllers, etc. or an entire application<br>
* manifest - Extract class metadata<br>
* package - Packages a Sencha Touch application for native app stores<br>
* theme - Builds a set of theme images from a given html page<br>
<br>
Commands<br>
* ant - Invoke Ant with helpful properties back to Sencha Command<br>
* build - Builds a project from a JSB3 file.<br>
* config - Loads a config file or sets a configuration property<br>
* help - Displays help for commands<br>
* js - Executes arbitrary JavaScript file(s)<br>
* which - Displays the path to the current version of Sencha Cmd<br>
<br>
C:\JavaScript-Libraries\Sencha\sencha-touch>sencha -d generate app MyApp ..\appo<br>
<br>
Sencha Cmd v3.0.0.250<br>
[DBG] found sencha.cfg at C:\JavaScript-Libraries\Sencha\cmd\cmd Files<br>
\bin\Sencha\Cmd\3.0.0.250<br>
[DBG] found cmd at C:\JavaScript-Libraries\Sencha\cmd<br>
[DBG] Checking for framework config overrides<br>
[DBG] creating workspace at '..\appo'<br>
[ERR] Failed to determine framework name. Please ensure this command<br>
was issued from either a framework or application directory<br>
<br>
com.sencha.exceptions.ExState: Failed to determine framework name. Please ensur<br>
e this command was issued from either a framework or application directory<br>
at com.sencha.command.BaseConfigCommands.mustGetFrameworkName(BaseConfig<br>
Commands.java:143)<br>
at com.sencha.command.generator.GeneratorCommands$WorkspaceCommand.execu<br>
te(GeneratorCommands.java:60)<br>
at com.sencha.command.generator.GeneratorCommands$AppCommand.execute(Gen<br>
eratorCommands.java:175)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br>
at java.lang.reflect.Method.invoke(Unknown Source)<br>
at com.sencha.cli.Command.dispatch(Command.java:78)<br>
at com.sencha.cli.Commands.dispatch(Commands.java:49)<br>
at com.sencha.cli.Commands.dispatch(Commands.java:49)<br>
at com.sencha.command.Sencha.main(Sencha.java:71)<br>
<br>
<br>
C:\JavaScript-Libraries\Sencha\sencha-touch>
You need to specify the sdk(lib dir), for extjs 4.1 try:
Code:sencha -sdk ../ext-4.1.1a/ generate app extjs .
Make sure you are in the sencha sdk directory when running the generate command