Author Topic: List and search local symbols macro  (Read 110779 times)

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: List and search local symbols macro
« Reply #60 on: November 23, 2014, 09:47:51 PM »
Hi,
this is a new version v4.0.9.3 compatible with SE >= v12.0.3 up to v22.

changes:
- compatible with SE v19
- omit default 'Auto-activate Preview TB' for now due to focus issue with v19 (see know issues)
- added MindprisM subword/smart abbreviation matching (e.g. 'ad' matches 'abcDef')
  (see 'SubWord match' option in 2nd level context menu')
- removed '=+-' from OLS_WORD_SEPARATORS to support (C++) operator symbols

known issues:
- with 'Auto-activate Preview TB' selected and Preview toolwindow is not already active the 'ols' dialog looses focus (same applies to interactive 'Activate Preview TB' and 'References' - see context menu)

Best regards, HS2

PS: I'll contact the SE team to clarify the focus issue.

Edit : v4.0.9.1 uploaded
Edit2: v4.0.9.1 re-uploaded with fixed default font
Edit3: v4.0.9.2 uploaded with 'SubWord match' feature completed (thanks MindprisM)
Edit4: v4.0.9.3 uploaded with fix for missing icons with SE v22 (thanks Dennis - see this hotfix)
« Last Edit: March 01, 2018, 01:11:42 PM by hs2 »

eee

  • Community Member
  • Posts: 36
  • Hero Points: 3
Re: List and search local symbols macro
« Reply #61 on: November 24, 2014, 08:26:31 AM »
Thanx

Unfortunately, I am having problems with the tag filter.
The defs window uses "functions only" and works fine.
The ols, when set to either "funcs only" or "use defs TB", show all tags.
Attached screenshot.

Eli

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: List and search local symbols macro
« Reply #62 on: November 24, 2014, 09:01:39 AM »
Oops - right  :-\ It was a bug in the SE v19 code path. I've uploaded a new, fixed v4.0.9.1.

Thanks, HS2
« Last Edit: November 24, 2014, 09:29:17 AM by hs2 »

eee

  • Community Member
  • Posts: 36
  • Hero Points: 3
Re: List and search local symbols macro
« Reply #63 on: November 24, 2014, 10:39:36 AM »
Perfect. Works.
I took the liberty to modify the fonts back to CFG_DIALOG and the OLS_EOS back to "&.".
If these have any but a visual effect, please let me know.

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: List and search local symbols macro
« Reply #64 on: November 24, 2014, 11:09:49 AM »
Argh .. my bad - again >:( Re-uploaded with fixed defaults.
Thanks, HS2

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: List and search local symbols macro
« Reply #65 on: November 25, 2014, 04:20:41 PM »
Thanks to MindprisM the 'SubWord match' feature is now completed (uploaded v4.0.9.2).
HS2

chgmxx

  • Community Member
  • Posts: 10
  • Hero Points: 0
Re: List and search local symbols macro
« Reply #66 on: November 28, 2014, 12:48:33 AM »
Hi,
this is a new version v4.0.9.2 compatible with SE >= v12.0.3 up to v19.

changes:
- compatible with SE v19
- omit default 'Auto-activate Preview TB' for now due to focus issue with v19 (see know issues)
- added MindprisM subword/smart abbreviation matching (e.g. 'ad' matches 'abcDef')
  (see 'SubWord match' option in 2nd level context menu')
- removed '=+-' from OLS_WORD_SEPARATORS to support (C++) operator symbols

known issues:
- with 'Auto-activate Preview TB' selected and Preview toolwindow is not already active the 'ols' dialog looses focus (same applies to interactive 'Activate Preview TB' and 'References' - see context menu)

Best regards, HS2

PS: I'll contact the SE team to clarify the focus issue.

Edit: v4.0.9.1 uploaded
Edit2: v4.0.9.1 re-uploaded with fixed default font
Edit3: v4.0.9.2 uploaded with 'SubWord match' feature completed (thanks MindprisM)
Hi,hs2
Thanks a lot for your powerful macro. I used it in windows7,and it seems work all right.
But when I run it is Linux(ubuntu14.04), the macro has exception.
Could you please take a look?

Thanks

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: List and search local symbols macro
« Reply #67 on: November 28, 2014, 02:27:52 PM »
chgmxx: Is it an exception like SIGSEGV (would be a problem of SE core code and I can't much except fwd.ing the issue to SE support) or just a Slick-C macro stack dump ?
However, could you please post/PM me more details about the problem incl. SE version you're using ?
Unfortunately I'm currently not using Linux so I hope I find sth. analyzing the error output.
HS2
« Last Edit: November 28, 2014, 02:30:25 PM by hs2 »

chgmxx

  • Community Member
  • Posts: 10
  • Hero Points: 0
Re: List and search local symbols macro
« Reply #68 on: December 01, 2014, 01:14:08 PM »
dear hs2, sorry for reply late:
the error as below:
 This property or method is not allowed on this object
dlgeditv.ex 6082 show(-app -xy open_local_symbol)   p_window_id: 215   p_object: OI_EDITOR   p_name:
open_local_symbol.ex 9397 ols()   p_window_id: 215   p_object: OI_EDITOR   p_name:

SlickEdit 2014 (v19.0.0.14 64-bit)

OS: Linux
OS Version: Ubuntu 14.04.1 LTS
Kernel Level: 3.13.0-40-generic
I using the latest script you uploaded.
Thanks
chgmxx: Is it an exception like SIGSEGV (would be a problem of SE core code and I can't much except fwd.ing the issue to SE support) or just a Slick-C macro stack dump ?
However, could you please post/PM me more details about the problem incl. SE version you're using ?
Unfortunately I'm currently not using Linux so I hope I find sth. analyzing the error output.
HS2
« Last Edit: December 01, 2014, 01:16:44 PM by chgmxx »

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: List and search local symbols macro
« Reply #69 on: December 01, 2014, 11:45:49 PM »
@chgmxx Ok - just a stack trace..

Strange, when I goto the error location I end up here:
macros\dlgeditv.e - line 1635:
Quote
   if (parent==VSWID_HIDDEN) {
Unfortunately I can't see what could cause an error there ???

Just to be sure:
So you just installed SEv19 on your Ubuntu powered machine, loaded the macro module and (always ?) when invoking the 'ols' command you get the stack trace ?

Is there anyone else running an Ubuntu box who could just try to load the macro module and invoke the 'ols' command ?
The macro module can be easily uninstalled by 'Macro>Unload Module' and select 'open_local_symbol.ex'.
Thanks in advance !

HS2


chgmxx

  • Community Member
  • Posts: 10
  • Hero Points: 0
Re: List and search local symbols macro
« Reply #70 on: December 02, 2014, 12:54:43 PM »
@hs2,thanks a lot for your help.
I tried to uninstall ols.e, and install again. everything goes well,
Thanks again.
@chgmxx Ok - just a stack trace..

Strange, when I goto the error location I end up here:
macros\dlgeditv.e - line 1635:
Quote
   if (parent==VSWID_HIDDEN) {
Unfortunately I can't see what could cause an error there ???

Just to be sure:
So you just installed SEv19 on your Ubuntu powered machine, loaded the macro module and (always ?) when invoking the 'ols' command you get the stack trace ?

Is there anyone else running an Ubuntu box who could just try to load the macro module and invoke the 'ols' command ?
The macro module can be easily uninstalled by 'Macro>Unload Module' and select 'open_local_symbol.ex'.
Thanks in advance !

HS2

vivitron

  • Senior Community Member
  • Posts: 162
  • Hero Points: 10
Re: List and search local symbols macro
« Reply #71 on: December 09, 2014, 01:06:28 AM »
@h2 - thanks again for this.  I did not upgrade to v19 until this was updated - that's how critical this is to my workflow.

It really should just replace list-tags

eee

  • Community Member
  • Posts: 36
  • Hero Points: 3
Re: List and search local symbols macro
« Reply #72 on: May 12, 2015, 09:17:33 AM »
How can ols window be docked?

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: List and search local symbols macro
« Reply #73 on: May 12, 2015, 09:30:40 AM »
Unfortunately they can't - it's not yet implemented..
Currently you only can deactivate 'More Options>Dismiss on goto tag' (use r-button 'ALT-M' for context menu) to keep it visible as floating window.
Sorry, HS2

JustAbitCool

  • Junior Community Member
  • Posts: 8
  • Hero Points: 0
Re: List and search local symbols macro
« Reply #74 on: January 25, 2018, 11:53:01 AM »
In SlickEdit 2017, v22.0.1.0, I found the icon of each local symbol is missing,as the picture shows.
I'm not sure if this is a problem with my configuration. I really like this ols macro. so @h2, if you have time, please help check it.