Success! Looks like we've fixed this one. According to our records the fix was applied for DSGNR-2184 in a recent build.
  1. #1
    Sencha User VDP's Avatar
    Join Date
    Feb 2012
    Location
    Boom, Belgium
    Posts
    87
    Vote Rating
    10
    VDP will become famous soon enough

      0  

    Default Corrupted metadata / error due to renaming

    Corrupted metadata / error due to renaming


    Architect Build tested:
    • Build: 442
    Project Type:
    • Ext JS 4.x
    Description:
    • I saved and I get a crashing error.
    Steps to reproduce the problem:
    • Don't know. If I knew I could resolve the issue.
    The result that was expected:
    • If I did something wrong I expect a significant error. At least a file/line numer, method or component, stack-trace or something.
    The result that occurs instead:
    • TypeError: 'null' is not an object
    Screenshot, Project, or Video:
    Possible fix:
    • prevent this kind of errors, and if this error occurs, show more info. We are developers we can read a stacktrace, change source code and even metadata if absolutely needed.
    Operating System:
    • Win7
    Attached Images

  2. #2
    Sencha User VDP's Avatar
    Join Date
    Feb 2012
    Location
    Boom, Belgium
    Posts
    87
    Vote Rating
    10
    VDP will become famous soon enough

      0  

    Default


    I have located the issue by removing everything one by one till I could save.

    I had renamed a userClassName. I used that same classname as targetType in a controllerAction. The targetType name wasn't re-factored with the renaming of the class and caused the error. By picking the renamed class name the error was resolved!

    I suggest fixing this but also provide better error messages. Thanx in advance!

  3. #3
    Touch Premium Member msinn's Avatar
    Join Date
    Jul 2009
    Location
    in front of my pc
    Posts
    280
    Vote Rating
    5
    msinn is on a distinguished road

      0  

    Default


    I also experienced this and ++ for detailed error messages.
    First I would like to thank you for your time and knowledge

    Win 7 Ext JS 4.1.3 IE(6-9), FF17

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,445
    Vote Rating
    129
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Better error messages are coming in the next minor release.

    If you are able to provide precise steps to reproduce the issue, it will help us expedite fixing the problem.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  5. #5
    Sencha User VDP's Avatar
    Join Date
    Feb 2012
    Location
    Boom, Belgium
    Posts
    87
    Vote Rating
    10
    VDP will become famous soon enough

      0  

    Default


    steps:

    1) create new project
    2) drag a container (or any component) on your views
    3) create controller and controller action
    4) fill in a legit config and select as targetType 'MyContainer'
    5) rename 'MyContainer' to something else (like YourContainer)
    6) try to save -> error; try to deploy -> no error but no files where copied.

    how it should be:

    rename the component -> the targetType should be renamed aswel or throw a clear error saying the component doensn't exist anymore and you should pick another targetType.


    Screenshot:
    Attached Images

  6. #6
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,445
    Vote Rating
    129
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Thanks for the thorough steps to reproduce.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  7. #7
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,445
    Vote Rating
    129
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      1  

    Default


    This is fixed in today's release.
    http://www.sencha.com/blog/sencha-architect-2-1
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 2

Tags for this Thread