Author Topic: javascript ::: def widnow column width fails to autowidth function name!  (Read 5005 times)

ehab

  • Senior Community Member
  • Posts: 285
  • Hero Points: 15
  • coding with SE is like playing music
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
« Last Edit: September 24, 2015, 06:30:21 PM by ehab »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6882
  • Hero Points: 530
Re: javascript ::: def widnow column width fails to autowidth function name!
« Reply #1 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?

ehab

  • Senior Community Member
  • Posts: 285
  • Hero Points: 15
  • coding with SE is like playing music
Re: javascript ::: def widnow column width fails to autowidth function name!
« Reply #2 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

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6882
  • Hero Points: 530
Re: javascript ::: def widnow column width fails to autowidth function name!
« Reply #3 on: September 24, 2015, 08:27:42 PM »
It looks like something is clipping the text

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6882
  • Hero Points: 530
Re: javascript ::: def widnow column width fails to autowidth function name!
« Reply #4 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).