Results 1 to 7 of 7

Thread: Application class and static functions won't allow add comment

    You found a bug! We've classified it as DSGNR-6268 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    63

    Default Application class and static functions won't allow add comment

    Architect Build tested:
    • Build: 1934
    Project Type:
    • ExtJS 5.0.x
    Description:

    When add comment to Application class & static function, that comment won't appear on code view & JS file.
    SA should allow add comments to Application class & static function, if not we can't add CustomConfig comments on Application class


    Steps to reproduce the problem:
    • Add comment to Application class or static function.
    • Comment won't appear in code view & generated JS file.


    Operating System:
    • Win7 Professional
    Last edited by kobayashi.masashi; 11 Nov 2014 at 10:13 PM. Reason: same bug occured in static function too.

  2. #2
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953

    Default

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

  3. #3

    Default

    What is the status of this bug? I have noticed the same bug in Architect version 3.5.1.348.
    3.5.1.348

  4. #4
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795

    Default

    Quote Originally Posted by Brian.Hemphill View Post
    What is the status of this bug? I have noticed the same bug in Architect version 3.5.1.348.
    3.5.1.348
    Hi

    Adding comment to the app class should work - only static functions are not working, Could you pleas confirm it ?

    Thank you

  5. #5

    Default

    How do you add comments to the app class? I don't see any way in Architect to add comments to the controller class.

  6. #6
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795

    Default

    Select any class, switch to the Code view and click on the // button.

    upload.png

    You will get:
    Code:
    /*    My Class comment
    */
    // @require @packageOverrides
    Ext.Loader.setConfig({
    
    
    });
    
    
    
    
    Ext.application({
        views: [
            'MyPanel'
        ],
        controllers: [
            'MyController'
        ],
        name: 'MyApp',
    
    
        launch: function() {
            Ext.create('MyApp.view.MyPanel', {renderTo: Ext.getBody()});
        }
    
    
    });

  7. #7

    Default

    I can confirm that class comments work. The only comments I can't get to display are static function comments.

    Below is a test class with a static function and a regular function. Both functions have comments added, but Architect only shows the comment for the regular function, not the static function. Looking a the metadata for the controller I can see that the comment for the static function is saved, just never displayed or included in the generated source code.

    Code:
    /*
        Class Comment
    */
    Ext.define('UAS.controller.Controller', {
        extend: 'Ext.app.Controller',
    
    
        statics: {
            staticFunction: function() {
    
    
            }
        },
    
    
        config: {
        },
    
    
        /* Regular Function Comment */
        regularFunction: function() {
    
    
        }
    
    
    });

Posting Permissions

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