[squeak-dev] incorrect Shout rendering in ObjectExplorer

Chris Cunningham cunningham.cb at gmail.com
Mon May 4 21:54:04 UTC 2015


That is probably due to Shout not knowing what variables are
available/bound to the explorer pane.

To do that correctly, the available variables should change each time you
change the selection in the list pane.

In your example, globals should be a valid variable and colored as such.
But as soon as you select, say, globals, then the text that you have
written below should show globals as invalid again.

I suspect there may be some interesting code to play with in getting that
right.

-cbc

On Mon, May 4, 2015 at 2:12 PM, Chris Muller <asqueaker at gmail.com> wrote:

> On Mon, May 4, 2015 at 3:56 PM, Levente Uzonyi <leves at elte.hu> wrote:
> > In an Explorer you can't evaluate an expression in the context of an
> Object.
> > That's what an Inspector is for.
>
> Huh?  If I explore, say, Smalltalk, and select the "root" row of the
> explorer, then I can evaluate any expressoins I want in the context of
> the selected object, Smalltalk.
>
> Likewise, I can directly access the selected objects instVars.  For
> example, while the root is selected I can evaluate "globals class" and
> it tells me its an Environment.
>
> The problem, whether I'm in an Explorer or an Inspector, is the new
> Shout color rendering is rendering instVars in the color I've chosen
> for "invalid" (in the Shout style table).
>
> See picture.  I style my "invalid" code an ugly magenta, so it stands
> out.  But I don't want that when its not invalid, of course..
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150504/06e48796/attachment.htm


More information about the Squeak-dev mailing list