1. #1
    Sencha Premium Member
    Join Date
    Apr 2011
    Posts
    30
    Vote Rating
    0
    Link_ is on a distinguished road

      0  

    Default Help with Sencha's Cmd compilator X Asp.net Mvc 3

    Hey Folks,

    I'm finding it very difficult to use this tool sencha cmd. I hope you have a colleague who has used the forum and could help me or give me another option.

    My application follows this structure in my. NET:
    D:\Folder1\Folder2\Folder3\Folder4\app\
    D:\Folder1\Folder2\Folder3\Folder4\app\controller
    D:\Folder1\Folder2\Folder3\Folder4\app\model
    D:\Folder1\Folder2\Folder3\Folder4\app\lib
    D:\Folder1\Folder2\Folder3\Folder4\app\view
    D:\Folder1\Folder2\Folder3\Folder4\app\app.js
    According to the documentation tool Sencha, should I create a build folder to receive the file compiled. Thus created in this way:
    D:\Folder1\Folder2\Folder3\Folder4\app\build
    Compiling and doing just the deploy on my application. NET in IIS, the folder tree looks like this:
    C:\inetpub\wwwroot\MyApp
    C:\inetpub\wwwroot\MyApp\app\
    C:\inetpub\wwwroot\MyApp\app\controller
    C:\inetpub\wwwroot\MyApp\app\model
    C:\inetpub\wwwroot\MyApp\app\lib
    C:\inetpub\wwwroot\MyApp\app\view
    C:\inetpub\wwwroot\MyApp\app\app.js
    After properly installing the tool Sencha and according to the documentation, I ran the following command below, but there's an error:
    C:\Sencha>sencha generate MyApp D:\Folder1\Folder2\Folder3\Folder4\app

    Sencha Cmd v3.0.0.250
    [ERR] Expected 2 parameters

    C:\Sencha>
    Well, that's it guys, any help will be appreciated, as this topic might help other colleagues.

    hugs

  2. #2
    Sencha - Senior Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    38,212
    Vote Rating
    1044
    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

    This command:

    Code:
    sencha generate MyApp D:\Folder1\Folder2\Folder3\Folder4\app
    should be (change in red):

    Code:
    sencha generate app MyApp D:\Folder1\Folder2\Folder3\Folder4\app
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Software Engineer
    ________________
    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.

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2011
    Posts
    30
    Vote Rating
    0
    Link_ is on a distinguished road

      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    This command:

    Code:
    sencha generate MyApp D:\Folder1\Folder2\Folder3\Folder4\app
    should be (change in red):

    Code:
    sencha generate app MyApp D:\Folder1\Folder2\Folder3\Folder4\app
    Mitchellsimoens Hello, thank you for answering my question.
    Remains the same errors mentioned above, ie not worked your tip.
    A version of that work is the extjs extjs 4.1.x. The tool Sencha CMD works with this version?


    hugs

  4. #4
    Sencha - Senior Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    38,212
    Vote Rating
    1044
    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

    To use Sencha Cmd you must have 4.1.1a, 4.1.2a or 4.1.3+
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Software Engineer
    ________________
    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.

  5. #5
    Sencha Premium Member
    Join Date
    Apr 2011
    Posts
    30
    Vote Rating
    0
    Link_ is on a distinguished road

      0  

    Default

    Ok, my version is 4.1.1a and even then the CMD did not work in compiling my application, informed that generated the error. Is there any other option?

    hugs

  6. #6
    Sencha User
    Join Date
    Mar 2015
    Posts
    1
    Vote Rating
    0
    akhilesh.barthwal is on a distinguished road

      0  

    Default

    Hey!!

    To generate the sencha cmd app you have 2 different ways:

    1. If you have downloaded the ExtJs (any version) and unziped to the path: D:/folder1/Extjs. Then execute below command:

    sencha -sdk D:/folder1/ExtJs generate app YourAppName path/to/the/target/folder

    2. If you haven't downloaded the ExtJs, don't worry.. Sencha does it all for you. Execute the below command for that.

    sencha generate app -ext path/to/your/target/folder

    *target folder is where you wish to create your app

    Hope this may help you somehow..

  7. #7
    Sencha Premium Member
    Join Date
    Apr 2011
    Posts
    30
    Vote Rating
    0
    Link_ is on a distinguished road

      0  

    Default

    Quote Originally Posted by akhilesh.barthwal View Post
    Hey!!

    To generate the sencha cmd app you have 2 different ways:

    1. If you have downloaded the ExtJs (any version) and unziped to the path: D:/folder1/Extjs. Then execute below command:

    sencha -sdk D:/folder1/ExtJs generate app YourAppName path/to/the/target/folder

    2. If you haven't downloaded the ExtJs, don't worry.. Sencha does it all for you. Execute the below command for that.

    sencha generate app -ext path/to/your/target/folder

    *target folder is where you wish to create your app

    Hope this may help you somehow..
    Hello, thank you for feedback.

    I have one more question, so that the server command "-sdk"? it is also used in Sencha CMD 5.x?