Success! Looks like we've fixed this one. According to our records the fix was applied for SDKTOOLS-199 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Jun 2012
    Location
    Boston, MA
    Posts
    44
    Vote Rating
    3
    chrisfarrell is on a distinguished road

      0  

    Default Using 'upgrade' command overwrites files

    Using 'upgrade' command overwrites files


    After installing Cmd build 181, I ran the 'upgrade' command, like so:
    $ cd path/to/app
    $ sencha app upgrade -p path/to/ext

    All of my app files were regenerated from scratch! Same with the resources folder. Yikes.
    Fortunately, I use git, and also a .sencha_backup folder was generated - which had everything
    I needed in it.

  2. #2
    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


    Certainly if any source was overwritten that would be a bug. Which files in particular were overwritten?
    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!"

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    714
    Vote Rating
    42
    ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about

      0  

    Default


    Quote Originally Posted by dongryphon View Post
    Certainly if any source was overwritten that would be a bug. Which files in particular were overwritten?
    I noticed that with "packager.json". Now this has some pro and cons. If you add new features to the packager file then at least we kind of get notified about. But would be nice if you could make a backup of the file before...

  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


    I have opened a bug in our bug tracker. Thanks for the specifics.

  5. #5
    Sencha Premium Member
    Join Date
    Jun 2012
    Location
    Boston, MA
    Posts
    44
    Vote Rating
    3
    chrisfarrell is on a distinguished road

      0  

    Default all app/ and resources/ files

    all app/ and resources/ files


    I noticed this with ALL files in my app/ and resources/ directories.

    Everything was regenerated, as if a brand new app.

  6. #6
    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


    We use this to regenerate certain files, but there are apparently some files that have not been properly marked as "don't regenerate". We'll look at this right away.
    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!"

Thread Participants: 2

Tags for this Thread