Results 1 to 6 of 6

Thread: Renamed classes now require sencha app refresh after every edit

  1. #1
    Sencha Premium Member froamer's Avatar
    Join Date
    Sep 2007
    Location
    Norfolk, UK
    Posts
    151
    Vote Rating
    1
      0  

    Default Renamed classes now require sencha app refresh after every edit

    Hi, so I renamed a view, view model and view controller. I also changed their folder:

    Client.view.calendar.Calendar => Client.view.availability.Availability
    Client.view.calendar.CalendarController => Client.view.availability.AvailabilityController
    Client.view.calendar.CalendarModel => Client.view.availability.AvailabilityModel

    I am running Sencha app watch (as a Visual Studio Code plugin)

    From a terminal I run...
    Code:
    sencha app refresh
    ...and everything works fine, until I edit some SCSS, then the browser's console reports missing classes for the old names that I changed..

    Code:
    [W] Overriding existing mapping: 'widget.availability' From 'Client.view.availability.Availability' to 'Client.view.calendar.Calendar'. Is this intentional?
    GET http://localhost:1841/app/view/calendar/AvailabilityController.js?_dc=1508834392502 net::ERR_ABORTED
    GET http://localhost:1841/app/view/calendar/AvailabilityModel.js?_dc=1508834392502 net::ERR_ABORTED
    GET http://localhost:1841/app/view/calendar/Availability.js?_dc=1508834392502 net::ERR_ABORTED
    [W] Overriding existing mapping: 'widget.availability' From 'Client.view.calendar.Calendar' to 'Client.view.availability.Availability'. Is this intentional?
    ...
    I've scanned my code for Client.view.calendar.Calendar and the only place it appears is in classic.json and classic.jsonp

    Anyone know how I can get rid of these phantom classes?
    Chris Copleston Managing Director | LinkedIn | Twitter | SenchaDevs
    4dprime.com web | mobile | desktop | server development

  2. #2
    Sencha Premium Member froamer's Avatar
    Join Date
    Sep 2007
    Location
    Norfolk, UK
    Posts
    151
    Vote Rating
    1
      0  

    Default

    Anyone else have this issue? Can anybody help?
    Chris Copleston Managing Director | LinkedIn | Twitter | SenchaDevs
    4dprime.com web | mobile | desktop | server development

  3. #3
    Sencha Premium User
    Join Date
    Jun 2008
    Posts
    132
    Vote Rating
    11
      0  

    Default

    I've had this exact behaviour, and the only way I know of to fix it is to do a "sencha app build -c"

  4. #4
    Sencha Premium Member froamer's Avatar
    Join Date
    Sep 2007
    Location
    Norfolk, UK
    Posts
    151
    Vote Rating
    1
      0  

    Default

    Many thanks @bhutten,

    I didn't know about the -c flag. I'll give it a try!
    Chris Copleston Managing Director | LinkedIn | Twitter | SenchaDevs
    4dprime.com web | mobile | desktop | server development

  5. #5
    Sencha User
    Join Date
    Sep 2015
    Location
    Antwerp
    Posts
    12
    Vote Rating
    0
      0  

    Default

    Maybe your files didnt exist. Maybe you moved them and Sencha still didnt pick them up.
    This is what happened to me when I had this error

  6. #6
    Sencha Premium Member froamer's Avatar
    Join Date
    Sep 2007
    Location
    Norfolk, UK
    Posts
    151
    Vote Rating
    1
      0  

    Default

    Yes, I deleted them but couldn't get Sencha CMD to pick up the change or build again.

    The solution for me was @bhutten's suggestion: "sencha app build -c"

    I hope it helps you too.
    Chris Copleston Managing Director | LinkedIn | Twitter | SenchaDevs
    4dprime.com web | mobile | desktop | server development

Similar Threads

  1. Ext.require for non-Ext classes
    By prashantjain68 in forum Ext: Q&A
    Replies: 2
    Last Post: 10 Dec 2013, 11:49 AM
  2. How to set additional require statements to classes
    By hschaefer123 in forum Sencha Architect 2.x: Help & Discussions
    Replies: 0
    Last Post: 12 Apr 2012, 1:48 AM
  3. Can I use Ext.require for my own classes
    By VaZia in forum Ext: Discussion
    Replies: 2
    Last Post: 6 May 2011, 8:22 AM
  4. Replies: 4
    Last Post: 14 Apr 2011, 3:34 PM

Posting Permissions

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