Results 1 to 2 of 2

Thread: "sencha app upgrade -noframework" - app.js error generation

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    288
    Vote Rating
    4
      0  

    Default "sencha app upgrade -noframework" - app.js error generation

    After upgrade the app the app.js file seems to be wrong.

    Code:
    $ sencha app build production
    Sencha Cmd v3.1.1.274
    [ERR] The app was last modified by an older version of Sencha Cmd (3.1.0.256), current is 3.1.1.274. Please run 'sencha app upgrade -noframework' to update.
    [ERR] Application Cmd version mismatch.
    hackd:madideas davide$ sencha app upgrade -noframework
    ....

    the upgrade process add to app.js a wrong code like:

    "<<<<<<< Generated"

    and

    "================"


    Code:
    /*
     * File: app.js
     *
     * This file was generated by Sencha Architect version 2.2.2.
     * http://www.sencha.com/products/architect/
     *
     * This file requires use of the Sencha Touch 2.1.x library, under independent license.
     * License of Sencha Architect does not include license for Sencha Touch 2.1.x. For more
     * details see http://www.sencha.com/license or contact license@sencha.com.
     *
     * This file will be auto-generated each and everytime you save your project.
     *
     * Do NOT hand edit this file.
     */
    
    
    //@require @packageOverrides
    Ext.Loader.setConfig({
    
    
    });
    
    
    Ext.application({
        viewport: {
            autoMaximize: true
        },
    
    
    <<<<<<< Generated
        requires: [
            'Ext.MessageBox'
        ],
    
    
        models:[
            'ContactFormModel'
        ],
    
    
        views: [
            'Main'
        ],
    
    
        stores: [
            'EmpresaStore'
        ],
    
    
        controllers: [
            'MainLangController'
        ],
    
    
        icon: {
            '57': 'resources/icons/Icon.png',
            '72': 'resources/icons/Icon~ipad.png',
            '114': 'resources/icons/Icon@2x.png',
            '144': 'resources/icons/Icon~ipad@2x.png'
        },
    
    
        isIconPrecomposed: true,
    
    
        startupImage: {
            '320x460': 'resources/startup/320x460.jpg',
            '640x920': 'resources/startup/640x920.png',
            '768x1004': 'resources/startup/768x1004.png',
            '748x1024': 'resources/startup/748x1024.png',
            '1536x2008': 'resources/startup/1536x2008.png',
            '1496x2048': 'resources/startup/1496x2048.png'
        },
    
    
    =======
        models: [
            'EmpresaModel'
        ],
        views: [
            'Main'
        ],
        controllers: [
            'MainLangController'
        ],
        name: 'App',
    
    
    >>>>>>> Custom
        launch: function() {
    
    
            Ext.create('App.view.Main', {fullscreen: true});
        }
    
    
    });
    After remove manually the wrong code the app works.

    Regards

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Vote Rating
    1297
      0  

    Default

    Many times app.js will have a merge conflict and Cmd kind of stomps all over it. We do have a feature request to handle this case better than creating invalid javascript.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •