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.
25 Oct 2013 3:01 PM #7
To help you with the error you are getting I will need to know the exact command you executed and the current directory when you executed it. There is a bug template link in my signature that will help.
In the guide you mention, I assume you entered something like this:
sencha -sdk /path/to/SDK generate app MyApp /path/to/MyApp
sencha generate app MyApp /path/to/MyApp
sencha generate workspace .
Before any of these things exist, Cmd still needs to know the framework/SDK you want for an app - so current directory or "-sdk" switch provide that.
Even when you are in a workspace alone, there is no way to know *which* SDK you are wanting: Ext JS or Touch. In an app that is different of course since the app has to target one SDK. This comes in to play if you generate a workspace and place apps below there in the file system.
But for starters it would be best to focus on the initial failure to received at Step #1.
30 Oct 2013 6:18 AM #8
Wow thanks for your detailed response!
I initially found this thread because I was searching for the error message, trying to figure out what info was missing. Then I kinda put two and two together and figured out that I had to add the -sdk flag (or change dir to the ext folder) and that indeed fixed it. So I decided to just type up my experience as feedback for you guys.
About the naming consistency... That is sooo hard to get right! I know all about it, our software also has these small inconsistencies all over the place.
Probably the best thing is to just explicitly mention that framework and SDK are equivalent somewhere at the start of the docs for Sencha Cmd. The section that currently mentions this is a bit 'hidden' in the back
Thanks again for your reply!