SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: timur on June 22, 2011, 04:36:13 PM

Title: 'find symbol' (f) command sometimes just stops working
Post by: timur on June 22, 2011, 04:36:13 PM
I'm using v16 on Linux, and recently I've discovered a new bug that's hard to reproduce and debug.

Every now then, without warning, the 'find symbol' command just stops working.  For example, right now I go to the command line, and start typing:

Quote
f get_sys

at this point, there's a short list displayed that shows:

get_sys_info(func)
get_sys_info(proto)
get_sys_reg_addr(define)
get_syscfg_reg(func)

If I select the first one and press enter, nothing at all happens.  No cursor movement, no dialog boxes, no message.  Nada.  The command prompt closes and I'm back in the editing window, nowhere near the get_sys_info() function.  This only happens with some symbols, though.

If I go back to the command line and press up-arrow (to recall the command), and press enter again -- the same thing.  If I close and re-open the project, it's still broken.  If I close and re-open Slickedit itself, it's still not working.  If I close the project, delete the .vtg file, and reopen the project, it still doesn't work.

If I manually open the file that contains function get_sys_info(), and I put the cursor on that function and press ctrl-., I get a dialog box asking me to select the symbol from a list.

So Slickedit knows about the symbol, it just refuses to let me jump to it via the 'f' command. 

Now, if I do this:

Quote
f debug

that works just fine.  So why does Slickedit not like some symbols?

Title: Re: 'find symbol' (f) command sometimes just stops working
Post by: timur on June 22, 2011, 04:40:36 PM
I've done a little more experimentation.  I think it's the "(func)" after the symbol name that's confusing it.  If I manually type in

Quote
f get_sys_info

and press enter, then I get a dialog box asking me to pick an instance of this symbol.  But if I do:

Quote
f get_sys_info(func)

it's broken.
Title: Re: 'find symbol' (f) command sometimes just stops working
Post by: timur on June 23, 2011, 06:14:07 PM
I think I found the culprit: "Use strict case-sensitivity rules".  When I enable this option, the 'f' command rejects "f get_sys_info(func)".  When I turn that off, it works.

I turned the feature on because the C language is case-sensitive.
Title: Re: 'find symbol' (f) command sometimes just stops working
Post by: Matthew on June 28, 2011, 04:00:46 PM
Thanks for the detailed information. We're currently investigating this.
Title: Re: 'find symbol' (f) command sometimes just stops working
Post by: Dennis on June 28, 2011, 07:50:51 PM
Thanks for the tip.

The next revision of the cumulative hot fix will have a fix for this.
Title: Re: 'find symbol' (f) command sometimes just stops working
Post by: SlickEdit Support on June 29, 2011, 03:20:26 PM
The hotfix has been updated, and this fix should be included.