Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    411
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default Problem upgrading ST app using Cmd build 181

    Problem upgrading ST app using Cmd build 181


    Hi,

    I just tried to upgrade my ST 2.0.1.b3 app to the newly release 2.1.0.RC1.

    Here is the output I am getting:

    Code:
    C:\Sencha\Projects\PPTouch>sencha app upgrade ../../ST.2.0.1.RC
    Sencha Cmd v3.0.0.181
    [INFO ]
    [INFO ]         init-properties:
    [INFO ]
    [INFO ]
    [INFO ]         init-sencha-command:
    [INFO ]
    [INFO ]
    [INFO ]         init:
    [INFO ]
    [INFO ]
    [INFO ]         -before-app-upgrade:
    [INFO ]
    [INFO ]
    [INFO ]         app-upgrade-impl:
    [INFO ]
    [INFO ]         building application
    [INFO ]              [move] Moving 1152 files to C:\Sencha\Projects\PPTouch\.\.s
    encha_backup\$'{'version.major'}'.$'{'version.minor'}'.$'{'version.patch'}'.$'{'
    version.build'}'\touch
    [INFO ]
    [INFO ]         Renamed C:\Sencha\Projects\PPTouch\touch to C:\Sencha\Projects\P
    PTouch\.\.sencha_backup\${version.major}.${version.minor}.${version.patch}.${ver
    sion.build} for backup
    [INFO ]              [copy] Copying 1 file to C:\Sencha\Projects\PPTouch\.\.senc
    ha_backup\$'{'version.major'}'.$'{'version.minor'}'.$'{'version.patch'}'.$'{'ver
    sion.build'}'
    [INFO ]
    [INFO ]         Updating application and workspace structure
    [INFO ]         Workspace does not have framework null, Copying framework to 'C:
    \Sencha\Projects\PPTouch'
    [ERROR]         Exception running app build : JavaException: com.sencha.exceptio
    ns.ExState: Failed to determine framework name.  Please ensure this command was
    issued from either a framework or application directory
    [ERROR]         javax.script.ScriptException: sun.org.mozilla.javascript.interna
    l.JavaScriptException: [object Error] (<Unknown source>#354) in <Unknown source>
     at line number 354
    I am definitely in my application directory, it's event copying the files to the backup folder. What's up here?

    Thanks

  2. #2
    Sencha - Ext JS Dev Team
    Join Date
    Jan 2012
    Posts
    41
    Vote Rating
    10
    kkrohe will become famous soon enough

      0  

    Default


    It seems to have failed to detect the name of the framework being used by the application. This is controlled by the app.framework property in the .sencha/app/sencha.cfg file, which should be 'app.framework=touch' in this case.

    Once the framework name is looked up, we attempt to resolve the path to that framework by looking in the .sencha/workspace/sencha.cfg file for a property named <app.framework>.dir, which should be something like 'touch.dir=${workspace.dir}/touch' .

    The reason for the "workspace does not have framework null' is because we failed during the first step to resolve which framework the app is using.

    Do you have values for these settings, and do they appear to line up with this pattern?

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Posts
    411
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default


    Here is my app\sencha.cfg:

    Code:
    app.name=PPTouch
    app.framework=touch
    app.classpath=${app.dir}/app.js,${app.dir}/app,${app.dir}/lib,${app.dir}/scripts
    and the workspace\sencha.cfg:

    Code:
    # This configuration property (if set) is included by default in all compile commands
    # executed according to this formulation:
    #
    #   sencha compile -classpath=...,${framework.classpath},${workspace.classpath},${app.classpath}
    #
    #workspace.classpath=
    workspace.build.dir=${workspace.dir}/build/${app.name}
    touch.dir=${workspace.dir}/touch
    So from what you have said, these seem to be correct?

    I notice from the console window output that the touch folder in my application root gets moved into the .sencha_backup folder into another folder named '${version.major}.${version.minor}.${version.patch}.${version.build}'

    So, could it be that the non presence of a 'touch' folder after it does this move be the cause of the problem here, seeing as the cfg file is telling the compiler to look for it? Or am I off track here?

    I tried running the upgrade command again and get:

    Code:
    C:\Sencha\Projects\PPTouch>sencha app upgrade -p ../../ST.2.1.0.RC
    Sencha Cmd v3.0.0.181
    [ERROR]         The following error occurred while executing this line:
    C:\Sencha\Projects\PPTouch\.sencha\workspace\plugin.xml:2: Cannot find C:\Sencha
    \Projects\PPTouch\.sencha\workspace\${framework.config.dir}\plugin.xml imported
    from C:\Sencha\Projects\PPTouch\.sencha\workspace\plugin.xml

  4. #4
    Sencha User
    Join Date
    Jun 2009
    Posts
    411
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default


    kkrohe...

    I am being an , was my own mistake with not entering the new sdk directory to use for the upgrade correctly. I was using incorrect syntax in the console window.

    App has now upgraded, sorry for wasting your time, but it was good to know about them cfg files!

    Thanks

Thread Participants: 1