[Pharo-users] Re: Problem with Dictionary and Associations

2021-02-11 Thread peter
David Glad to have helped, but it was really Sven who diagnosed why the file was messed up. Peter From: David Pennington Sent: 11 February 2021 19:38 To: Any question about pharo is welcome Subject: [Pharo-users] Re: Problem with Dictionary and Associations Hi there Peter I

[Pharo-users] Re: Problem with Dictionary and Associations

2021-02-11 Thread David Pennington
Hi there Peter I have been writing Smalltalk since 1990 first with Digitalk and then IBM/Instantiations VAST. However, I am a newbie with Pharo having only used it for the last 3 weeks so I am pleased to have got my first Seaside app working successfully - it’s a home banking management app tha

[Pharo-users] Re: Problem with Dictionary and Associations

2021-02-11 Thread Sven Van Caekenberghe
Ah, I overlooked that as well ;-) This could happen by STON input as follows { ... } : null with everything after the closing } being junk from a previous file that you overwrote with shorter contents. Try deleting or truncating your (existing) file first, for example using #ensureDelete. >

[Pharo-users] Re: Problem with Dictionary and Associations

2021-02-11 Thread peter
David I think you are misreading the debugger display. The bit you are missing is the last few characters in the evaluation display, after the closing parenthesis. They should not be there if it is displaying a dictionary. Evidently the variable 'aDict' is in fact an association whose key is the

[Pharo-users] Re: Problem with Dictionary and Associations

2021-02-11 Thread David Pennington
Thank you for that but it doesn’t resolve my problem. Why does the stack move to an Association when doing the access to the dictionary? It is the Association indexing that fails as it won’t allow #entryAmount as a key. If I inspect the following code (STON fromString: result ) in the line ^ sel

[Pharo-users] Re: Problem with Dictionary and Associations

2021-02-11 Thread Sven Van Caekenberghe
I can parse the file data you provided: STON fromString: '{#entryName:''Housekeeping'',#entryDate:Date[''2021-02-25Z''],#transactionID:''2021022501'',#entryAmount:-400/1s8,#entryCategory:''Housekeeping'',#entryDescription:''Housekeeping'',#match:nil}ousekeeping'',#match:nil}' "a Dictionary(#en

[Pharo-users] Re: Problem with Dictionary and Associations

2021-02-11 Thread David Pennington
Yes but I can’t see any resolution on GitHub > On 11 Feb 2021, at 15:36, hogoww wrote: > > Are you on Pharo 8? > I think I encountered this bug not so long ago. > From your screenshot, it look like it > https://github.com/pharo-project/pharo/issues/8411 >

[Pharo-users] Re: Problem with Dictionary and Associations

2021-02-11 Thread hogoww
Are you on Pharo 8? I think I encountered this bug not so long ago. From your screenshot, it look like it https://github.com/pharo-project/pharo/issues/8411? Pierre On 11/02/2021 16:33, David Pennington wrote: I attach a couple of screen shots and a file containing the item that I am trying