SlickEdit Community

Archived Read Only Forums => SlickEdit 2016 v21 Beta Discussion => Topic started by: jporkkahtc on August 23, 2016, 06:37:12 pm

Title: Hang while editing fileman.e
Post by: jporkkahtc on August 23, 2016, 06:37:12 pm
So I was looking for how to run a macro over a bunch of files.
Which lead me to the filemanager - which I've never used before.


So I started looking at repeat_command (but it requires that your macro know how to select the buffer)...


Anyways, I found that Slick would hang when I jumped to fileman_replace in fileman.e from Macro->GotoSlickCDefinition.


It has done this twice - using the macro break key, I get this stack:

 Break key pressed.  Macro halted
stdcmds.ex 46618 _isdiffed(4)   p_window_id: 610   p_object: OI_EDITOR   p_name:
mouse.ex 3833 mou_click(,,0,0)   p_window_id: 610   p_object: OI_EDITOR   p_name:




I've not made any changes to fileman.e, I was just looking to see what it does.




So, I attached the SlickC debugger, reproed the hang again. I clicked pause in the debugger.
The stack in the debugger is:

     isalpha()                 sc.lang.modules.stdprocs
     isalnum()                 sc.lang.modules.stdprocs
     nextsym()                 sc.lang.modules.math
     unary_exp()               sc.lang.modules.math
     exp()                     sc.lang.modules.math
     eval_exp()                sc.lang.modules.math
     eval_exp()                sc.lang.modules.math
     EvaluateMouseExpression() sc.lang.modules.debugpkg
     debug_get_mouse_expr()    sc.lang.modules.debugpkg
     _mouse_move()             sc.lang.modules.mouse

I set a break at line976 of C:\Program Files\SlickEdit Pro 21.0.0 Beta3\macros\math.e -- never reached -- so that loop in exp() seems to never complete.


In eval, the loop doesn't make progress. The locals:
     sym      **Symbol not found in this scope**
     prec_tab  (21 items)
       
Title: Re: Hang while editing fileman.e
Post by: Clark on August 23, 2016, 07:12:08 pm
A regular Slick-C stack would have been more helpful than the debugger stack.

Looks like it's trying to provide popup-help when hovering the mouse over a number. Any idea what line/column your mouse was on?
Title: Re: Hang while editing fileman.e
Post by: Clark on August 23, 2016, 07:15:26 pm
Reproduced. Just need to hover over "rc"
Title: Re: Hang while editing fileman.e
Post by: Clark on August 23, 2016, 07:27:39 pm
Fixed for beta 4
Title: Re: Hang while editing fileman.e
Post by: jporkkahtc on August 23, 2016, 07:51:21 pm
Cool.


WRT stack: I gave both.




Question, why is the stack I get from breaking the macro (ctrl+alt+f2) totally different than what I get when I break in with the debugger?



Title: Re: Hang while editing fileman.e
Post by: Clark on August 23, 2016, 08:53:25 pm
the isdiffed stack must be the wrong stack.