SlickEdit Community

Archived Read Only Forums => SlickEdit 2015 v20 Beta Discussion => Topic started by: ehab on September 22, 2015, 05:22:32 pm

Title: javascript ::: def widnow column width fails to autowidth function name!
Post by: ehab on September 22, 2015, 05:22:32 pm
below is the SE about info.

Step to reproduce: 
1- create a name.js
2- add the following
Code: [Select]
function MessageHandler(aConnHandlerRef, aSessionId, aMessage) {
    var msgOrigStr = aMessage;   //  SHOULD THIS ALSO BE SHOWN
    var translateFilterObjToMatchObj =
        function(aFilterObj) {
            return matchObj;
        }
    this.parseAndSendMessage =
        function() {
}
    this.parseAndBroadCastMessage =
        function() {
    }
}

expected : functions names in def window are visible.
outcome : attached image.

Code: [Select]
SlickEdit Pro 2015 (v20.0.0.3 64-bit)
Build Date: September 21, 2015
Emulation: Visual Studio
OS: Linux
OS Version: Fedora release 22 (Twenty Two)
Kernel Level: 4.1.6-201.fc22.x86_64
Build Version: #1 SMP Fri Sep 4 17:49:24 UTC 2015
Processor Architecture: x86_64

X Server Vendor: Fedora Project
Memory: 14% Load, 2079MB/14706MB Virtual
Shell Information: /home/ehab/slickedit20/bin/secsh -i
Screen Size: 1280 x 1024
Project Type: Python
Language: .js (JavaScript)
Encoding: Automatic
Title: Re: javascript ::: def widnow column width fails to autowidth function name!
Post by: Clark on September 24, 2015, 01:55:19 pm
I think I'm confused.  My Defs windows output isn't the same as yours. My Defs windows shows "translateFilterObjToMatchObj(aFilterObj)" for the first nested function. Is that the problem? Is your Defs window showing the wrong name for the first nested function?
Title: Re: javascript ::: def widnow column width fails to autowidth function name!
Post by: ehab on September 24, 2015, 06:32:16 pm
i have updated the image. i can reproduce this all the time, you may need to switch between windows and project/def/class etc .. hope the image helps
Title: Re: javascript ::: def widnow column width fails to autowidth function name!
Post by: Clark on September 24, 2015, 08:27:42 pm
It looks like something is clipping the text
Title: Re: javascript ::: def widnow column width fails to autowidth function name!
Post by: Clark on September 26, 2015, 06:30:45 pm
No luck reproducing this so far.

The "var msgOrigStr" variable isn't supposed to be displayed because it's treated as a local variable. If you write something like "this.mymembervar=4", then it gets displayed since it's considered a member variable of the class (and needs to be displayed when listing members of this class).