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 using
I've got the error:
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 command
seems to respond :
sencha generate app
Sencha Cmd v126.96.36.199 [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,
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.