[Cuis-dev] [ChangeSet] Fixes and enhancements to inspectors
Juan Vuletich
juan at jvuletich.org
Sun May 24 17:25:05 PDT 2020
Hi Hernán,
The attaches to this message are all the changesets for this thread,
renumbered to reflect latest pushed updates.
(inline)
On 5/24/2020 6:01 PM, Hernan Wilkinson via Cuis-dev wrote:
> Hi guys,
> nice work! thank you for making Cuis better every day.
> I took a quick look at the code and I have some questions:
> 1) Why Inspector implements messages like #object: anObject basicAt:
> index and the ones in that category?
To use the mirror primitives. This has two potential benefits (although
with regular objects it doesn't make any difference):
- Inspecting a proxy or any other subclass of ProtoObject that uses the
DNU mechanism doesn't trigger it
- Objects that might redefine those low level methods can no longer
"fool" the inspector.
For that very same reason we removed #object.
> 2) Object basicInspect does not use the basic inspector anymore... why
> is that? The idea is to get rid off the BasicInspector?
Yep. Just a regular inspector will do. We removed BasicInspector.
BasicInspector was moot.
> I found a problem using the autocomplete in the inspector's workspace
> panel because the message #object was removed from Inspector. I'm not
> sure what's the idea behind removing that message but adding it agin
> made the autocomplete work.
Leaking the object outside the Inspector could lead to uncontrolled
materialization of proxies. That's why we removed #object. In this case,
all what was needed was #objectClass. I just made the change. It is
attached.
> The Dictionary and Set inspector do not handle correctly the
> remove/remove key/rename key when they are empty, but I just verified
> that that error existed before.
Thanks for the report! Fix for that also attached.
> I hope this helps.
>
> Cheers!
> Hernan.
>
> On Sun, May 24, 2020 at 4:40 PM ken.dickey--- via Cuis-dev
> <cuis-dev at lists.cuis.st <mailto:cuis-dev at lists.cuis.st>> wrote:
>
> On 2020-05-24 14:44, Andres Valloud via Cuis-dev wrote:
> > Hi Ken, I can see the uncommenting of the code in fileSize...
> just to
> > make sure, are you implying that this change is related to the
> > inspector work? I do not immediately see how that would be.
>
> No idea really. I just updated, loaded the changesets and use of the
> FileList brought up the debugger.
>
> Guilt by association?
>
>
> > On 5/24/20 07:33, ken.dickey--- via Cuis-dev wrote:
> >> On 2020-05-24 12:32, Juan Vuletich via Cuis-dev wrote:
> >>> On 5/22/2020 8:08 PM, Juan Vuletich via Cuis-dev wrote:
> >>>> Hi Folks,
> >>>>
> >>>> Andrés Valloud and I found a couple of bugs and
> inconsistencies in
> >>>> the Inspector hierarchy. If you don't mind crashing your
> image you
> >>>> might try `(1 to: 2000) asFloat64Array`, or inspecting an
> >>>> OrderedCollection with an object that fails in #printOn:, and
> cycle
> >>>> the collection with the arrow keys.
> >>>>
> >>>> We did quite some refactor and cleanup. The result is attached.
> >>>> Please take a look.
> >>
> >> FileEntry>>fileSize came up nil in FileList. Lost cache update
> line
> >> (attached).
> >>
> >> FYI,
> >> -KenD
> >>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st <mailto:Cuis-dev at lists.cuis.st>
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
>
>
> --
> *Hernán Wilkinson
> Agile Software Development, Teaching & Coaching*
> *Phone: +54-011*-4893-2057
> *Twitter: @HernanWilkinson*
> *site: http://www.10Pines.com <http://www.10pines.com/>*
> Address: Alem 896, Floor 6, Buenos Aires, Argentina
Thanks,
--
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200524/ad27664d/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4178-FixSmalltalkCompleterInInspector-JuanVuletich-2020May24-20h20m-jmv.001.cs.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200524/ad27664d/attachment-0008.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4177-RemoveExtraneousExceptionHandler-AndresValloud-2020May24-20h19m-sqr.001.cs.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200524/ad27664d/attachment-0009.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4176-AdditionalInspectorCleanup-AndresValloud-2020May23-17h04m-sqr.001.cs.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200524/ad27664d/attachment-0010.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4175-AvoidUnwantedMaterialization-JuanVuletich-2020May23-20h14m-jmv.001.cs.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200524/ad27664d/attachment-0011.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4174-Inspector-MirrorPrimitives-AndresValloud-2020May22-17h15m-sqr.001.cs.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200524/ad27664d/attachment-0012.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4173-OrderedCollectionInspector-rename-AndresValloud-2020May22-19h53m-sqr.001.cs.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200524/ad27664d/attachment-0013.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4172-InspectorRefactorAndFixes-AndresValloud-2020May22-19h44m-sqr.001.cs.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200524/ad27664d/attachment-0014.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4179-InspectorFixes-JuanVuletich-2020May24-20h25m-jmv.001.cs.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200524/ad27664d/attachment-0015.ksh>
More information about the Cuis-dev
mailing list