1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    276
    Vote Rating
    11
    worthlutz is on a distinguished road

      0  

    Default sencha generate app - crashes with build error!

    sencha generate app - crashes with build error!


    REQUIRED INFORMATIONSencha Cmd version(s) tested:
    • Sencha Cmd v3.1.0.256
    Operating System:
    • Ubuntu 12.04
    Framework used:
    • Sencha/sdk/ext-4.2.0.663
    Description:
    • Describe the problem in greater detail here, summarizing the behavior.
    Steps to reproduce the problem:
    Code:
    cd /media/shared/Sencha/projects
    sencha -sdk ../sdk/ext-4.2.0.663/ generate app NewTest NewTest
    console output:
    Code:
    worth@worth-laptop:/media/shared/Sencha/projects$ sencha -sdk ../sdk/ext-4.2.0.663/ generate app NewTest NewTestSencha Cmd v3.1.0.256
    [INF] 
    [INF] init-plugin:
    [INF] 
    [INF] init-plugin:
    [INF] Invoking plugin (/media/shared/Sencha/sdk/ext-4.2.0.663/.sencha/workspace/plugin.xml) - supported targets: -before-generate-workspace
    [INF] 
    [INF] -before-generate-workspace:
    [INF] Invoking plugin (/media/shared/Sencha/sdk/ext-4.2.0.663/.sencha/workspace/plugin.xml) - supported targets: generate-workspace
    [INF] 
    [INF] cmd-root-plugin.init-properties:
    [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 /media/shared/Sencha/projects/NewTest from /opt/Sencha/Cmd/3.1.0.256/templates/workspace
    [INF]     [mkdir] Created dir: /media/shared/Sencha/projects/NewTest/packages
    [INF] 
    [INF] -before-copy-framework-to-workspace:
    [INF] 
    [INF] cmd-root-plugin.copy-framework-to-workspace-impl:
    [INF] [propertyfile] Updating property file: /media/shared/Sencha/projects/NewTest/.sencha/workspace/sencha.cfg
    [INF] 
    [INF] copy-framework-to-workspace-impl:
    [INF]      [copy] Copying 574 files to /media/shared/Sencha/projects/NewTest/ext
    [INF]      [copy] Copying 89 files to /media/shared/Sencha/projects/NewTest/ext/src/ux
    [INF]      [copy] Copying 4203 files to /media/shared/Sencha/projects/NewTest/packages
    [INF] [propertyfile] Updating property file: /media/shared/Sencha/projects/NewTest/.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] Invoking plugin (/media/shared/Sencha/sdk/ext-4.2.0.663/.sencha/workspace/plugin.xml) - supported targets: -after-generate-workspace
    [INF] 
    [INF] -after-generate-workspace:
    [INF] 
    [INF] init-plugin:
    [INF] 
    [INF] init-plugin:
    [INF] Invoking plugin (/media/shared/Sencha/sdk/ext-4.2.0.663/.sencha/workspace/plugin.xml) - supported targets: -before-generate-app
    [INF] 
    [INF] -before-generate-app:
    [INF] Invoking plugin (/media/shared/Sencha/sdk/ext-4.2.0.663/.sencha/workspace/plugin.xml) - supported targets: -before-generate-app
    [INF] 
    [INF] -before-generate-app:
    [INF] Invoking plugin (/media/shared/Sencha/sdk/ext-4.2.0.663/.sencha/workspace/plugin.xml) - supported targets: generate-app
    [INF] 
    [INF] cmd-root-plugin.init-properties:
    [INF] 
    [INF] init-properties:
    [INF] 
    [INF] init-sencha-command:
    [INF] 
    [INF] init:
    [INF] 
    [INF] -before-generate-app:
    [INF] 
    [INF] generate-app-impl:
    [INF] [x-load-json-properties] Optional properties file not present (skipping) - /media/shared/Sencha/projects/NewTest/app.json
    [INF] 
    [INF] generate-starter-app:
    [INF]     [mkdir] Created dir: /media/shared/Sencha/projects/NewTest/app/model
    [INF]     [mkdir] Created dir: /media/shared/Sencha/projects/NewTest/app/store
    [INF]     [mkdir] Created dir: /media/shared/Sencha/projects/NewTest/resources
    [INF]     [mkdir] Created dir: /media/shared/Sencha/projects/NewTest/overrides
    [INF]     [mkdir] Created dir: /media/shared/Sencha/projects/NewTest/sass/src
    [INF]     [mkdir] Created dir: /media/shared/Sencha/projects/NewTest/sass/var
    [INF]     [mkdir] Created dir: /media/shared/Sencha/projects/NewTest/sass/etc
    [INF]      [echo] Updating app/app.js mvc references
    [INF]      [echo] Detected models       : 
    [INF]      [echo] Detected views        : Main,Viewport
    [INF]      [echo] Detected controllers  : Main
    [INF]      [echo] Detected stores       : 
    [INF] [propertyfile] Updating property file: /media/shared/Sencha/projects/NewTest/.sencha/app/sencha.cfg
    [ERR] 
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.BasicException: Cannot find file: /opt/Sencha/Cmd/repo/.sencha/codegen.json
    [ERR] 
    [ERR] Total time: 4 seconds
    [ERR] com.sencha.exceptions.BasicException: Cannot find file: /opt/Sencha/Cmd/repo/.sencha/codegen.json
    Sencha Cmd is installed at: /opt/Sencha/Cmd/3.1.0.256

    There is NO directory /opt/Sencha/Cmd/repo??????????


    OK, Now I see it... You are writing to /opt/Sencha /Cmd/repo! but have no permission!

    I installed Cmd as root. This all worked with Cmd 3.0. What are you saving here? And why?

    I would expect information related to this application to be stored in my project directory and not with the Cmd code.

    It worked when I ran with "sudo" but this seems stupid.

    Must Cmd be installed in the home directory? of each user?

    What if there are multiple users running build, will this file get overwritten? I do not understand what is going on here and its taken me 3 hours to get to this point.

    Worth Lutz

  2. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    16
    Vote Rating
    0
    Ethorsen is on a distinguished road

      0  

    Default


    I'm having the same problem.

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    276
    Vote Rating
    11
    worthlutz is on a distinguished road

      0  

    Default


    This is now clearer as information was released today:

    http://www.sencha.com/forum/showthread.php?258992-Sencha-Cmd-3.1.0.239-and-ExtJS-4.2-theme-questions-using-SASS/page2

    R
    egarding this "repo" directory, as described here: http://docs.sencha.com/ext-js/4-2/#!...mmand_packages, how does this relate to built packages?

    Are these packages just sources for a project?

    Worth

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    39
    Vote Rating
    0
    nbester is on a distinguished road

      0  

    Default Contents of repo folder?

    Contents of repo folder?


    I'm also strugling with this...

    It seems as if the /repo/ folder was not created as part of the Cmd 3.1 installation (Linux 64 bit) and now the build scripts are looking for it. I have tried initializing a new local repo to get it created, but it does not work...

    Can anybody perhaps give me the content of this folder in a initial state? I am not looking to create a repo, just trying to get my build going again.

  5. #5
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    276
    Vote Rating
    11
    worthlutz is on a distinguished road

      0  

    Default


    The repo folder is created where cmd is installed. I had a problem because I installed cmd to /opt (on ubuntu) as root with sudo. This caused problems with the write privileges on that directory.

    I changed the directory to be owned by me and that solved the problem.

    Could your problem be related to this?

    Worth

  6. #6
    Sencha User
    Join Date
    Mar 2012
    Posts
    39
    Vote Rating
    0
    nbester is on a distinguished road

      0  

    Default


    I installed Cmd at /home/nbester/bin/Sencha/Cmd/... but there is no /repo/ folder here. Only the farious versions of Cmd.

    I have uninstalled it and tried to install it as normal user, but it does not allow me to. Doing the sudo based installation did not generate any errors, so I am at a loss on how to get the /repo folder created

  7. #7
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    276
    Vote Rating
    11
    worthlutz is on a distinguished road

      0  

    Default


    Have you run
    Code:
    sencha -sdk /path/to/estjs/sdk generate app MyAppName /path/to/MyAppDirName
    Maybe this is where the "repo" directory is created. I cannot remember how it got created.

    Maybe someone who knows will chime in and enlighten us.

    Just generate a test application and try to build it. See if that works and then test your application.

    Worth

  8. #8
    Sencha User
    Join Date
    Mar 2012
    Posts
    39
    Vote Rating
    0
    nbester is on a distinguished road

      0  

    Default


    I have it working now....

    It seems like you have to install Cmd with user privileges rather than as root to get things working. I went back and changed what I had to in order to allow installation as user and it worked...

  9. #9
    Sencha User
    Join Date
    May 2012
    Posts
    65
    Vote Rating
    0
    ehboym is on a distinguished road

      0  

    Default


    Can you give a hint on who you did that ?
    Ive waisted the last 2 day on that build issue and cant make it work.

    Thanks

  10. #10
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    276
    Vote Rating
    11
    worthlutz is on a distinguished road

      0  

    Default


    More details please.

    What OS?
    Where did you install Cmd?
    What permissions are on Cmd directory?
    ...

    Worth