1. #1
    Sencha Premium Member Martin1982's Avatar
    Join Date
    Aug 2011
    Location
    The Netherlands
    Posts
    109
    Vote Rating
    0
    Martin1982 is on a distinguished road

      0  

    Default Upgrading ST2 app fails

    Upgrading ST2 app fails


    I'm trying to upgrade my Sencha Touch 2 app from 2.0.1 to 2.1.0 RC3 with the following command (from the 2.1.0 RC3 dir):
    PHP Code:
    sencha app upgrade /path/to/my/app
    Unfortunately the new Sencha Cmd isn't giving me an error that helps me forward:
    PHP Code:
    Sencha Cmd v3.0.0.141
    [INFO ]        init-properties:
    [
    INFO ]        init-antcontrib:
    [
    INFO ]        init-sencha-command:
    [
    INFO ]        init:
    [
    INFO ]        -before-app-upgrade:
    [
    INFO ]        app-upgrade-impl:
    [
    ERROR]        file /Users/martindekeijzer/bin/Sencha/Cmd/3.0.0.141/plugins/touch/current/${framework.config.dir}/app-upgrade.js not found
    Am I doing somethings wrong here? And is it possible to implement a more informative error for this?
    Allround web developer, conference organiser and speaker.

  2. #2
    Sencha - Ext JS Dev Team
    Join Date
    Jan 2012
    Posts
    34
    Vote Rating
    6
    kkrohe is on a distinguished road

      0  

    Default


    We did have to change the usage of the app upgrade command from v2. In v3, 'app upgrade' needs to be executed from the application directory, and pointed to the downloaded and extracted sdk package.

    Try the following:

    PHP Code:
    sencha app upgrade /path/to/new/framework 

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    14
    Vote Rating
    0
    jbeduya is on a distinguished road

      0  

    Default


    Just a NOTE:

    After the upgrade, I encountered the following errors in the development environment.

    Code:
    Uncaught Error: [Ext.Loader] Failed loading './event/Dispatcher.js', please verify that the file exists sencha-touch.js:8319
    Uncaught Error: [Ext.Loader] Failed loading './event/publisher/Dom.js', please verify that the file exists
    I fixed it by adding the following lines of code on top of app.js

    Code:
    //<debug>
    Ext.Loader.setPath({
        'Ext': 'touch/src',
        'default': 'app'
    });
    //</debug>
    BTW, i'm upgrading to the ST 2.1RC1
    Last edited by jbeduya; 5 Oct 2012 at 2:57 AM. Reason: additional information

  4. #4
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,295
    Vote Rating
    121
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    What version of Sencha Cmd are you running now? Those errors look like ones that have been fixed...
    Don Griffin
    Ext JS Development Team Lead

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"