I just had a look at the method in P10.�� And one line of code is added to the emptyList method.�� I copied it to p9 and it no longer throws the exception.�� I will continue to look to see if there are further differences I need to ���back-port��� ( or perhaps I just need to download the latest version of Spec2.
Regards
R
From: Robert Briggs via Pharo-users <pharo-users@lists.pharo.org>
Reply to: Any question about pharo is welcome <pharo-users@lists.pharo.org>
Date: Saturday, 5 March 2022 at 13:17
To: Any question about pharo is welcome <pharo-users@lists.pharo.org>
Cc: Robert Briggs <rbriggs2009@me.com>
Subject: [Pharo-users] Re: SpDropListPresenter emptyList
Ah. OK. Thanks. Unfortunately I am working on a P9 image. I will have to go through the chore of transferring my work to P10 I guess.
Regards
R
From: Russ Whaley <whaley.russ@gmail.com>
Reply to: Any question about pharo is welcome <pharo-users@lists.pharo.org>
Date: Saturday, 5 March 2022 at 12:49
To: Any question about pharo is welcome <pharo-users@lists.pharo.org>
Subject: [Pharo-users] Re: SpDropListPresenter emptyList
I had this same issue and reported in v9. It appears to be fixed in v10 and from what I understand there will be no ���back-port���.
Russ
On Sat, Mar 5, 2022 at 7:24 AM Robert Briggs via Pharo-users <pharo-users@lists.pharo.org> wrote:
I think this might be a bug.
When I send emptyList to a non-empty SpDropListPresenter it reports ���SubscriptOutOfBounds: 1���.
I seems to be due to emptyList setting the list model to a new empty OrderedCollection and a later method trying to access the first item in the collection.
Attached screen shot shows the debugger window.
If it is a bug please report it and if possible advise a workaround.
If not a bug please advise the correct way to clear or change the contents of a drop list.
Many thanks
Robert
--
Russ Whaley
whaley.russ@gmail.com