Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-7799

JavaScript outline window goes empty if code contains E4X statement

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Aptana Studio 3.3.2
    • Fix Version/s: None
    • Component/s: JS, Outline
    • Environment:

      Linux x86_64 (and others, confirmed on unspecified versions of Windows).

      Description

      If entering the following in a JavaScript file:

      (function(){
          
          var myFunc = function( child, xsi ) {
              var c = child.@xsi::type.toString(); // Commenting this line enables outline 
          }
          
       
          var myOtherFunc = function() {
              return 43;
          }
          
      })();
      

      Aptana Studio 3.2.2 (and probably other 3.x versions) will show no outline.

      If commenting the line with the E4X statement in, the outline will be shown.

      Aptana Studio 2.0.5 supports E4X and will display an outline, even with the offending line.

      For Aptana Studio 2.0.5 it seems to matter if the statement ends with ()) or )() - for 3.2.2 it does not seem to matter.

      It would be very nice if 3.x had a working outline for E4X. This is holding us back for upgrading.

      We are aware that E4X is going to be removed, but we estimate we will be working with it for at least another two years.

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              madsdyd Mads Bondo Dydensborg
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Integration