[squeak-dev] debugging bug

Chris Muller asqueaker at gmail.com
Mon Aug 20 23:05:01 UTC 2018


I would never have guessed that fix.  It seems better, thanks.  I
think the ifNil: check is not quite working, it seems to "stay" on the
assignment for two steps, then skips over the #ifNil: check.

It does now highlight the cases its checking, which is very nice.

 - Chris


On Mon, Aug 20, 2018 at 1:26 AM, Bert Freudenberg <bert at freudenbergs.de> wrote:
> On Sat, 18 Aug 2018 at 19:08, Chris Muller <ma.chris.m at gmail.com> wrote:
>>
>> Of course!  Right after just posting those test results I encountered
>> a bug with debugging case statements.
>>
>> | str char | str := '1234' readStream.
>> char := str next.
>> char ifNil: [ Error signal ].
>> char caseOf: {
>>     [$4] -> ['four'].
>>     [$3] -> ['three' asUppercase].
>>     [$2] -> ['two'].
>>     [$1] -> ['one' asUppercase].
>> } otherwise: [ 'No' ]
>>
>> The issue is that it highlights "signal" of "Error signal".
>>
>> It's also interesting, but somewhat understandable, that it doesn't
>> highlight the blocks with no message sends in them.
>
>
> Fixed in
> Compiler-bf.390
> , I think.
>
> - Bert -
>
>
>
>
>


More information about the Squeak-dev mailing list