1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    1
    Vote Rating
    0
    Ganesh Malliga is on a distinguished road

      0  

    Default framework.dir

    framework.dir


    unable to locate 'framework.dir' property from sencha.cfg when create new app in sencha touch tool kit

  2. #2
    Sencha User
    Join Date
    Mar 2013
    Posts
    3
    Vote Rating
    0
    AaronBuckler is on a distinguished road

      0  

    Default


    Hi,
    get the same issue on my Mac with sencha V3.1.0.256.
    Aaron

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,547
    Vote Rating
    872
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    What version of ST2 are you using? You need to use Cmd 3.1.1.170+ with ST 2.2.0 RC
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #4
    Sencha User
    Join Date
    Mar 2013
    Posts
    3
    Vote Rating
    0
    AaronBuckler is on a distinguished road

      0  

    Default


    Hi,
    I am using Cmd V3.1.0.256 with ST 2.1.1. Are they compatible ?
    Aarkon

  5. #5
    Sencha User
    Join Date
    Mar 2013
    Posts
    3
    Vote Rating
    0
    AaronBuckler is on a distinguished road

      0  

    Default


    Works with previous version Cmd-3.1.0.239.
    Thank you for testing before release...

  6. #6
    Sencha User
    Join Date
    Dec 2011
    Posts
    24
    Vote Rating
    0
    NKrishnawat is on a distinguished road

      0  

    Default I am using 3.1.1.274 but still getting error.

    I am using 3.1.1.274 but still getting error.


    I am using 3.1.1.274 but still getting error:

    Code:
    C:\Program Files\SenchaCmd3.1\Sencha\Cmd\3.1.1.274>C:\Progra~1\SenchaCmd3.1\Sencha\Cmd\3.1.1.274\sencha.exe generate app appOne c:
    \a
    Sencha Cmd v3.1.1.274
    [INF]
    [INF] init-plugin:
    [INF]
    [INF] init-plugin:
    [INF]
    [INF] -before-generate-workspace:
    [INF]
    [INF] init-properties:
    [INF]
    [INF] init-sencha-command:
    [INF]
    [INF] init:
    [INF]
    [INF] -before-generate-workspace:
    [INF]
    [INF] generate-workspace-impl:
    [INF]      [echo] generating into c:\a from C:\Program Files\SenchaCmd3.1\Sencha\Cmd\3.1.1.274/templates/workspace
    [INF]     [mkdir] Created dir: c:\a\packages
    [INF]
    [INF] -before-copy-framework-to-workspace:
    [INF]
    [INF] copy-framework-to-workspace-impl:
    [INF] [propertyfile] Updating property file: c:\a\.sencha\workspace\sencha.cfg
    [INF]
    [INF] -after-copy-framework-to-workspace:
    [INF]
    [INF] copy-framework-to-workspace:
    [INF]
    [INF] -after-generate-workspace:
    [INF]
    [INF] generate-workspace:
    [INF]
    [INF] -after-generate-workspace:
    [ERR] Unable to locate 'framework.dir' property from sencha.cfg
    [ERR] Please ensure this command was executed from a valid framework directory
    [ERR] Non-framework directory

  7. #7
    Sencha Premium Member bpjohnson's Avatar
    Join Date
    Jun 2007
    Location
    Atlanta, GA
    Posts
    47
    Vote Rating
    6
    bpjohnson is on a distinguished road

      2  

    Default


    Quote Originally Posted by NKrishnawat View Post
    I am using 3.1.1.274 but still getting error:

    Code:
    C:\Program Files\SenchaCmd3.1\Sencha\Cmd\3.1.1.274>C:\Progra~1\SenchaCmd3.1\Sencha\Cmd\3.1.1.274\sencha.exe generate app appOne c:
    You want to run this command from inside a copy of extjs or sencha touch, not from inside the Sencha Cmd directory.

    Or you can specify which framework to use using the -sdk switch.

  8. #8
    Sencha User
    Join Date
    Dec 2012
    Posts
    3
    Vote Rating
    0
    wayne_m is on a distinguished road

      0  

    Default framework.dir

    framework.dir


    I am on Linux, just installed Cmd and tried creating my first app ...


    ./sencha generate app MyApp /var/www/html/
    Sencha Cmd v3.1.2.342
    [INF]
    [INF] init-plugin:
    [INF]
    [INF] -before-generate-workspace:
    [INF]
    [INF] init-properties:
    [INF]
    [INF] init-sencha-command:
    [INF]
    [INF] init:
    [INF]
    [INF] generate-workspace-impl:
    [INF] [echo] generating into /var/www/html from /home/wayne/bin/Sencha/Cmd/3.1.2.342/templates/workspace
    [INF] [mkdir] Created dir: /var/www/html/packages
    [INF]
    [INF] copy-framework-to-workspace-impl:
    [INF] [propertyfile] Updating property file: /var/www/html/.sencha/workspace/sencha.cfg
    [INF]
    [INF] copy-framework-to-workspace:
    [INF]
    [INF] generate-workspace:
    [INF]
    [INF] -after-generate-workspace:
    [ERR] Unable to locate 'framework.dir' property from sencha.cfg
    [ERR] Please ensure this command was executed from a valid framework directory
    [ERR] Non-framework directory

    --I noticed that the "packages" directory created through this command was empty.

    I accepted the default settings when I installed both "Cmd" and the "touchSDK" packages. Does anyone know what is the reason for the three "[ERR]" messages or tell me where to look so I can fix it ... ?

  9. #9
    Sencha User gnanasuriyan_a's Avatar
    Join Date
    May 2012
    Location
    Bangalore
    Posts
    4
    Vote Rating
    2
    gnanasuriyan_a is on a distinguished road

      2  

    Default We need to use following command

    We need to use following command


    sencha -sdk "sdk path" generate app "app name" "app path"

    Example
    I have created new Ext JS application by using below command. I hope this similar command will work for sencha touch also.
    sencha -sdk D:\NodeJS\ext-4.2.1\ext-4.2.1.883 generate app MyApp D:\NodeJS.

    For more info - "http://docs.sencha.com/touch/2.1.1/#/guide/command"
    Hope this help..
    Last edited by gnanasuriyan_a; 26 Aug 2013 at 11:58 AM. Reason: More information

  10. #10
    Sencha User
    Join Date
    Dec 2012
    Posts
    3
    Vote Rating
    0
    wayne_m is on a distinguished road

      0  

    Default framework.dir

    framework.dir


    No, it did not work.

    I tried it in my web root folder ...
    [wayne@localhost 3.1.2.342]$ ./sencha -sdk /opt/SenchaSDKTools-2.0.0-beta3/ generate app MyApp /var/www/html/
    Sencha Cmd v3.1.2.342
    [ERR] The target folder is already configured as a workspace: /var/www/html
    [ERR] Cannot generate app to existing workspace root.
    ...it failed

    I tried it in a regular folder...
    [wayne@localhost 3.1.2.342]$ ./sencha -sdk /opt/SenchaSDKTools-2.0.0-beta3/ generate app MyApp /home/wayne/androidApps/
    Sencha Cmd v3.1.2.342
    [INF]
    [INF] init-plugin:
    [INF]
    [INF] -before-generate-workspace:
    [INF]
    [INF] init-properties:
    [INF]
    [INF] init-sencha-command:
    [INF]
    [INF] init:
    [INF]
    [INF] generate-workspace-impl:
    [INF] [echo] generating into /home/wayne/androidApps from /home/wayne/bin/Sencha/Cmd/3.1.2.342/templates/workspace
    [INF] [mkdir] Created dir: /home/wayne/androidApps/packages
    [INF]
    [INF] copy-framework-to-workspace-impl:
    [INF] [propertyfile] Updating property file: /home/wayne/androidApps/.sencha/workspace/sencha.cfg
    [INF]
    [INF] copy-framework-to-workspace:
    [INF]
    [INF] generate-workspace:
    [INF]
    [INF] -after-generate-workspace:
    [ERR] Unable to locate 'framework.dir' property from sencha.cfg
    [ERR] Please ensure this command was executed from a valid framework directory
    [ERR] Non-framework directory
    ...it failed

    I tried it in what I thought might be a "framework directory" ...

    [wayne@localhost 3.1.2.342]$ ./sencha -sdk /opt/SenchaSDKTools-2.0.0-beta3/ generate app MyApp /home/wayne/Downloads/utilities/touch-2.2.1/
    Sencha Cmd v3.1.2.342
    [INF]
    [INF] init-plugin:
    [INF]
    [INF] -before-generate-workspace:
    [INF]
    [INF] init-properties:
    [INF]
    [INF] init-sencha-command:
    [INF]
    [INF] init:
    [INF]
    [INF] generate-workspace-impl:
    [INF] [echo] generating into /home/wayne/Downloads/utilities/touch-2.2.1 from /home/wayne/bin/Sencha/Cmd/3.1.2.342/templates/workspace
    [INF] [mkdir] Created dir: /home/wayne/Downloads/utilities/touch-2.2.1/packages
    [INF]
    [INF] copy-framework-to-workspace-impl:
    [INF] [propertyfile] Updating property file: /home/wayne/Downloads/utilities/touch-2.2.1/.sencha/workspace/sencha.cfg
    [INF]
    [INF] copy-framework-to-workspace:
    [INF]
    [INF] generate-workspace:
    [INF]
    [INF] -after-generate-workspace:
    [ERR] Unable to locate 'framework.dir' property from sencha.cfg
    [ERR] Please ensure this command was executed from a valid framework directory
    [ERR] Non-framework directory
    ...it failed

    I tried it in another folder that might be a "framework directory" ...
    [wayne@localhost 3.1.2.342]$ ./sencha -sdk /opt/SenchaSDKTools-2.0.0-beta3/ generate app MyApp /opt/SenchaSDKTools-2.0.0-beta3/
    Sencha Cmd v3.1.2.342
    [INF]
    [INF] init-plugin:
    [INF]
    [INF] -before-generate-workspace:
    [INF]
    [INF] init-properties:
    [INF]
    [INF] init-sencha-command:
    [INF]
    [INF] init:
    [INF]
    [INF] generate-workspace-impl:
    [INF] [echo] generating into /opt/SenchaSDKTools-2.0.0-beta3 from /home/wayne/bin/Sencha/Cmd/3.1.2.342/templates/workspace
    [INF] [mkdir] Created dir: /opt/SenchaSDKTools-2.0.0-beta3/packages
    [INF]
    [INF] copy-framework-to-workspace-impl:
    [INF] [propertyfile] Updating property file: /opt/SenchaSDKTools-2.0.0-beta3/.sencha/workspace/sencha.cfg
    [INF]
    [INF] copy-framework-to-workspace:
    [INF]
    [INF] generate-workspace:
    [INF]
    [INF] -after-generate-workspace:
    [ERR] Unable to locate 'framework.dir' property from sencha.cfg
    [ERR] Please ensure this command was executed from a valid framework directory
    [ERR] Non-framework directory
    ....it failed

    I tried it from the unzipped directory created from the "ext-4.2.1-gpl.zip" file downloaded from Sencha ...
    [wayne@localhost 3.1.2.342]$ ./sencha -sdk /opt/SenchaSDKTools-2.0.0-beta3/ generate app MyApp /home/wayne/Downloads/utilities/ext-4.2.1.883/
    Sencha Cmd v3.1.2.342
    [INF] Workspace does not have framework null at /opt/SenchaSDKTools-2.0.0-beta3 ... copying
    [ERR] Failed to determine framework name. Please ensure this command was issued from either a framework or application directory
    ...it failed


    It appears to be asking for a "framework directory". Does anyone know which folder that might be ... ??