22 Nov 2012 7:33 PM #1
Tried to generate app GS > "Failed to determine framework name"
I'm on Mac OS X Mountain Lion, I downloaded:
It's all installed in:
When I try to generate my first app usingCode:
sencha generate app GS ../GS
Failed to determine framework name. Please ensure this command was issued from either a framework or application directory
But the commandCode:
sencha generate app
Sencha Cmd v184.108.40.206 [ERR] sencha.generate.app requires these parameters: path (The path for the generated application)
Do you have any idea where this error comes from?
Thanks for your help,
23 Nov 2012 12:09 AM #2
You do not need SDK Tools ... I would remove them as Sencha Cmd replaces them.
Sounds like you are not running the command from the framework folder. For getting started, see these guides:
This particular issue is covered here:
24 Nov 2012 7:22 PM #3
It's work. Thanks for your message.
What I've done:
sencha generate app GS ../GS
7 Feb 2013 1:03 PM #4
Had same issue.
You don't need the Sencha-Touch-SDK as the Sencha-CMD replaces it.
Delete the SDK and install CMD as per the documentation.
For the 'sencha' command use the -sdk flag to tell it where ext-js or sencha-touch lives.
sencha -sdk /Applications/Sencha/sencha-touch-2 generate app GS ../GS
Hope this helps someone else.
7 Feb 2013 2:38 PM #5
25 Oct 2013 1:01 AM #6
The docs should be clearer on this
I am trying to follow the documentation for Sencha Cmd, but it is not very clear on this subject.
In the section on generating an app
it talks about 'SDKs':
"Important: The above command must be able to determine the appropriate SDK."
However, in the error message it talks about frameworks:
"Failed to determine framework name"
Also, there is a specific section about setting up a workspace, that talks about managing frameworks
"The location of Sencha Ext JS or Sencha Touch (i.e., the "SDK" or "framework") is stored as a configuration property of the workspace."
(I guess here it is made clear that SDK and framework are equivalent..)
It then goes on to explain how to set the framework location... This suggests to me that Sencha Cmd 'knows' from the config which framework I am using and since I have only one it seems weird that I have to add the -sdk flag anyway...
I guess once you know how it works the docs do make sense... But at that point you don't really need them anymore. Maybe you should start the docs by explaining the relationships between Framework/SDK, workspace and application.
Also this part of the error message is super confusing:
[ERR] Failed to determine framework name. Please ensure this command was issued from either a framework or application directory
It doesn't make any sense in my mind to run a generate app command from the application directory. I understand this message is probably generic. What I am saying is that it's probably worth it to make the first steps of setting up a new workspace and new app so obvious and dummy proof even people like me get it right away. Because it will be the first thing most people will be doing with Sencha Cmd, getting confusing error messages right away is a real turn down.