jgfoster / Jade

Jade is an Alternative Development Environment (IDE) for GemStone/S that runs on Microsoft Windows
MIT License
6 stars 2 forks source link

Object Inspector breadcrumbs #48

Open thelliez opened 4 years ago

thelliez commented 4 years ago

I had reported that a while ago, but I cannot find the thread here.

Drilling down in some objects (for example starting with an inspect window) seems to work fine, but using the green left arrow to come back to the previous object is inconsistent.

Sometimes it skips several levels, sometimes not; even when drilling down the same objects.

I just drilled down through three objects: jgfoster/Jade.bak#1 - inspected object 1 jgfoster/Jade.bak#2 - instance variable (array) of object 1 jgfoster/Jade.bak#3 - object 2 in the array (26 entries) jgfoster/Jade.bak#4 - instance variable of object2 to object 3

When I clicked the green arrow, I was sent back to object1. I am expecting that to go back to object 2!

Trying again, starting from the same object 1 down to object 3, now the arrow is greyed out! Curiously the right green arrow is available, taking me to the array (step jgfoster/Jade.bak#3 above). And then the left arrow takes me back to object 1!

If I click on the red cross (Remove Object), then I have no idea where I went. I am in an object 4.

brunobuzzi commented 4 years ago

@thelliez can you write a code to inspect like:

| obj1 obj2 obj3 |
obj1 := Object new dynamicInstVarAt: #test put: OrderedCollection new;yourself.
obj2 := Object new dynamicInstVarAt: #name put: 'obj2'; yourself.
(obj1 dynamicInstVarAt: #test) add: Object new; add: Object new; add: obj2.
obj1.

1) Inspect obj1 2) Inspect ... And so on.. I tried your steps with my domain objects and the inspector seems to be working ok. Also what version of Jade are you using ?