D5: "There are no methods containing the text '#todo'

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

D5: "There are no methods containing the text '#todo'

Mikael Svane-2
Andy and Blair,

Thanks a lot for the new Dolphin 5.0 XP. I am very impressed from what I
have seen so far. For example, having the packages and the directories in
the CHB is useful, since it makes it very easy to save packages that have
been changed.

I have also discovered what must be a bug in the CHB.
Method>Browse>Containing text is not able to find Symbols. For example,
searching for #todo answers "There are no methods containing the text
'#todo'", but if I instead search only for 'todo' lots of instances are
shown.

Best regards,

Mikael Svane
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: "There are no methods containing the text '#todo'

Mikael Svane-2
Some more information. It seems that the problem is in
String>>matchPatternFrom:in:from:ignoreCase:. This method treats '#' as a
wildcard which means that the first character in the source is always
considered to be the same as the first one in the search string. Then the
second character of the source is matched with the second character of the
source, and the match fails.

Best regards,

Mikael Svane
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: "There are no methods containing the text '#todo'

Blair McGlashan
In reply to this post by Mikael Svane-2
"Mikael Svane" <[hidden email]> wrote in message
news:aav1ga$e6deh$[hidden email]...
> Andy and Blair,
>
> Thanks a lot for the new Dolphin 5.0 XP. I am very impressed from what I
> have seen so far. For example, having the packages and the directories in
> the CHB is useful, since it makes it very easy to save packages that have
> been changed.

Thank you.

>
> I have also discovered what must be a bug in the CHB.
> Method>Browse>Containing text is not able to find Symbols. For example,
> searching for #todo answers "There are no methods containing the text
> '#todo'", but if I instead search only for 'todo' lots of instances are
> shown.

This is not a bug. # is traditionally a wildcard character in Smalltalk
string matching. If you want to search for methods that reference a Symbol
then the Browse/References command (workspace context menu or
Browse/References To... on the system folder menu bar) is both faster and
more accurate.

Regards

Blair


Reply | Threaded
Open this post in threaded view
|

Re: "There are no methods containing the text '#todo'

Mikael Svane-2
>
> This is not a bug. # is traditionally a wildcard character in Smalltalk
> string matching. If you want to search for methods that reference a Symbol
> then the Browse/References command (workspace context menu or
> Browse/References To... on the system folder menu bar) is both faster and
> more accurate.
>

Thanks for the explanation. The behaviour in 5.0 is different from that in
4.01.3, which finds #todo and other Symbols, and therefore I thought that it
was a bug.

Best regards,

Mikael Svane
[hidden email]