Success! Looks like we've fixed this one. According to our records the fix was applied for DSGNR-1575 in a recent build.
  1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    80
    Vote Rating
    0
    g13013 is on a distinguished road

      0  

    Default (BUG) Basic Function inside the Application (Build 311)

    (BUG) Basic Function inside the Application (Build 311)


    Hi guys,

    In the last build of desinger their is a bug with basic functions defined under the main application definition :

    -> New project
    -> Add a basic function to the Application
    -> Add somme lines of code

    After saving the first time the code generated in the application is preceeded by a new line, and each time we try to save, the designer adds a line on every custom function but won't save changes to the disc until we remove all files except the project file (of course when open to not loose changes). here are the project and the code generated in designer.js file.

    Code:
    Ext.application({
        name: 'MyApp',
    
        launch: function() {
            // Some action !
            console.log('launch -Application');
        },
    
        someFunction: function(param1, param2) {
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
            console.log();
        }
    
    });
    Attachment 32603
    Attached Files

  2. #2
    Sencha User
    Join Date
    Apr 2008
    Posts
    80
    Vote Rating
    0
    g13013 is on a distinguished road

      0  

    Default


    does it interest someone ?

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,400
    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


    Yes, it does interest us.

    Please explain the problem a little more. I understand that you get a new line in the custom function each time you save.

    I don't understand the problem about having to remove all files though...
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  4. #4
    Sencha User
    Join Date
    Apr 2008
    Posts
    80
    Vote Rating
    0
    g13013 is on a distinguished road

      0  

    Default


    Hi,

    When adding a function to the main Application, as soon as we add code lines and try to save, the designer won't save anything, it notice us that the files were saved but they are not, and continue to mark the project as unsaved with (*), insteed it generates new lines on every custom function.

    sometimes when i remove all generated files including the metadata folder it saves the files.

    everything is in the project file that I submitted with this post.

  5. #5
    Sencha User
    Join Date
    Apr 2008
    Posts
    80
    Vote Rating
    0
    g13013 is on a distinguished road

      0  

    Default


    It's fixed in the last version.

Thread Participants: 1