[Cuis-dev] Resuming on BlockCannotReturn exception

Jaromir Matas mail at jaromir.net
Fri Dec 1 11:31:02 PST 2023


Hi Juan,

Many thanks!

 > edit Cuis-Smalltalk-Dev/UserPrefs.txt to your liking

perfect

 > You could do ./pullAllRepos.sh.

that didn't help but having been encouraged I tried 
./clonePackageRepos.sh and then all core packages loaded

 > Anyway, unless you really want to load 'CorePackages', I'd just skip 
that step.

What I really wanted was BaseImageTests to access the tests. Normally I 
don't do any Feature require - unless I need the tests. Is this actually 
the right/easiest way to get there?

I'm enclosing the updated changesets.

Two more unrelated questions:

1) I've noticed all underscore assignments in #runUntilErrorOrReturnFrom 
have been replaced with ':=' - have I missed something?

2) I'm a bit hesitant to ask but what is a "quick return"? I haven't 
come across this term until Facundo updated the 
#runUntilErrorOrReturnFrom: method.

I can see

         "Quick Push Const Methods"
         (256 nil) "primitivePushSelf"
         (257 nil) "primitivePushTrue"
         (258 nil) "primitivePushFalse"
         (259 nil) "primitivePushNil"
         (260 nil) "primitivePushMinusOne"
         (261 nil) "primitivePushZero"
         (262 nil) "primitivePushOne"
         (263 nil) "primitivePushTwo"

         "Quick Push Inst Var Methods"
         (264 519 nil) "primitiveLoadInstVar 0 - 255"

but it still doesn't ring any bell why "quick return" ;)

Thanks again,
best
Jaromir


On 01-Dec-23 7:17:08 PM, "Juan Vuletich" <juan at cuis.st> wrote:

>Hi Jaromir,
>
>On 12/1/2023 2:32 PM, Jaromir Matas wrote:
>>Hi Juan,
>>
>> > You're missing almost a year of updates.
>>
>>Well, I actually encountered two weird issues with the latest master, 
>>and so just reverted back to the older version to be able to run the 
>>tests:
>>
>>1) I can't download CorePackages via `Feature require: 'CorePackages'` 
>>- it starts working but after a little while it says `Could not find 
>>package file for [SUnitXMLreports].` and fails. See screenshot.:
>>
>>
>
>It looks like your Cuis-Smalltalk-Tools is not present or not updated. 
>You could do ./pullAllRepos.sh. Anyway, unless you really want to load 
>'CorePackages', I'd just skip that step.
>
>>2) When I change the size of GUI elements to 12 (or just anything) and 
>>save and close the image, it'll come back as the default 18 when I 
>>open the image again. I thought I just missed something but the first 
>>issue prevented me from running the tests.
>>
>>Is this something happening to me only? (I'm on Win 11 Pro, PC with 
>>Intel i3-1315U)
>>
>
>No. This is a known issue I need to find a better solution for. Please 
>edit Cuis-Smalltalk-Dev/UserPrefs.txt to your liking.
>
>>Once I get this running I'll update the changeset (the test comment, 
>>#suspendedContext comment, use the latest #runUntilErrorOrReturnFrom) 
>>.
>>
>> > In the comment of the test you provided, the argument to on:do: is a 
>>symbol. This is not supported in Cuis.
>>
>>Yes, I've noticed the idiom is not supported by Cuis, is it 
>>intentional or just not worth the effort? I wondered why the examples 
>>and the test were not working in Cuis and then realized it was the 
>>#resume idiom ;)
>>
>>Thanks for your help/advice regarding the CorePackages.
>>
>>Best,
>>Jaromir
>>
>>
>
>Thanks!
>--
>Juan Vuletich
>cuis.st
>github.com/jvuletich
>researchgate.net/profile/Juan-Vuletich
>independent.academia.edu/JuanVuletich
>patents.justia.com/inventor/juan-manuel-vuletich
>linkedin.com/in/juan-vuletich-75611b3
>twitter.com/JuanVuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20231201/f8115bde/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 41140 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20231201/f8115bde/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6093-CuisCore-JaromirMatas-2023Dec01-18h36m-jar.001.cs.st
Type: application/octet-stream
Size: 6599 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20231201/f8115bde/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: UnsavedChangesTo-BaseImageTests-jar.001.cs.st
Type: application/octet-stream
Size: 1398 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20231201/f8115bde/attachment-0003.obj>


More information about the Cuis-dev mailing list