[squeak-dev] Services, Universes, SqueakMap browser all seem broken in 4.5

tim Rowledge tim at rowledge.org
Thu Apr 10 19:15:47 UTC 2014

On 10-04-2014, at 11:34 AM, Chris Muller <ma.chris.m at gmail.com> wrote:

>> traceMessages, which looks like it used to add an interesting option for message browsing but seems not to actually get used right now. If you turn it on, then you get MessageTrace browsers in response to cmd-m/n and so on, but the code in MessageTrace>browseAllCallsOn: (etc) doesn't seem to be used. Even stuck breaks in there to see if I could catch it. That seems a pity; all that work to write MessageTrace and it can't be used?
> Dude, what are you talking about?  That method is called, you didn't
> try hard enough.
> traceMessages has worked since 4.1 or 4.2, at least.  I can hardly use
> Smalltalk at all without it.  If you think it doesn't work then you
> should just leave it on and see...   :)

I turn it on. I browse some selector’s implementations. A MessageTrace is built (I trapped that ok) but if I ask for implementors or senders of any method in the list I get a separate browser rather than the added methods in the same list. If I toggle break in MessageTrace>browseAllCallsOn: it never gets run. 

Open a plain image straight out of a download. The preference is already set. Open a system browser and pick a method. Click on the ‘implementors’ button - the browser that opens has a model that is a MessageTrace. That seems to demonstrate that the preference is actually ‘true’. Click on ‘senders’ in the method browser & choose one of the menu of selectors. I expected to see the senders added to the method browser.

Looking at the code I see that the button’s selector is #browseSendersOfMessages, which is implemented in StringHolder. Following that seems to lead to #browseAllCallsOn: in SystemNavigation and not in MessageTrace.

Maybe I’ve just misunderstood how to use the facility. If using the obvious buttons and/or menu options isn’t the right way, what is? It may be a wonderful tool, but if I can’t work out how to get one, what use can I make of it?

tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Fractured Idiom:- VISA LA FRANCE - Don't leave chateau without it

More information about the Squeak-dev mailing list