Archived Beta Discussions > SlickEdit 2015 v20 Beta Discussion

javascript ::: def widnow column width fails to autowidth function name!


below is the SE about info.

Step to reproduce: 
1- create a name.js
2- add the following

--- Code: ---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() {

--- End code ---

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

--- Code: ---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

--- End code ---

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?

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

It looks like something is clipping the text

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).


[0] Message Index

Go to full version