Ctrl-Shift-F showing deleted methods from old image, which Ctrl-. doesn't

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Ctrl-Shift-F showing deleted methods from old image, which Ctrl-. doesn't

Tim M
Have noticed an interesting situation.

I type in a method (its quite a unique one eg: exactly:like:answer...)
and the code completion correctly shows me some methods that match this
pattern.

If I type cttrl-shift-f and enter the same thing in "exac" it shows me
methods like Ctrl-. however it also seems to be showing methods that
don't exist in the image? Or at least are old methods that I wrote
weeks ago in another image (although they might exist in Sts?).

Anyone else noticed this?

Tim


Reply | Threaded
Open this post in threaded view
|

Re: Ctrl-Shift-F showing deleted methods from old image, which Ctrl-. doesn't

Blair McGlashan-3
"TimM" <[hidden email]> wrote in message
news:[hidden email]...

> Have noticed an interesting situation.
>
> I type in a method (its quite a unique one eg: exactly:like:answer...)
> and the code completion correctly shows me some methods that match this
> pattern.
>
> If I type cttrl-shift-f and enter the same thing in "exac" it shows me
> methods like Ctrl-. however it also seems to be showing methods that
> don't exist in the image? Or at least are old methods that I wrote
> weeks ago in another image (although they might exist in Sts?).

The SmalltalkSearchPresenter uses the interned symbols in this case. Now the
symbol table is maintained weakly (so symbols will drop out of it if no
longer referenced anywhere), but obviously includes all symbols not just
those that are method selectors. If those symbols are appearing in the
search field, then they must still be referenced somewhere (not necessarily
from code, but some collection somewhere).

The workspace auto-completion lists are based on the actual defined methods,
so the matching set will be smaller.

I think the Go Search should be enhanced to use the same mechanism as the
auto-completion (unless you prefix with a #), so I will record a defect for
this (#2035).

Thanks

Blair