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
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
[image: Graphical user interface, text, application Description automatically generated]
-- Russ Whaley whaley.russ@gmail.com
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
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
Yes, me too- and be careful, thereâs no going back - lots of deprecated methods in v10. Plus, for me, Iâm on MacOS Mojave. v10 wouldnât run - they fixed it so v10 runs - but now v9 wonât run for me, so⦠Iâm migrating to v10! On Sat, Mar 5, 2022 at 8:17 AM Robert Briggs via Pharo-users < pharo-users@lists.pharo.org> wrote:
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
[image: Graphical user interface, text, application Description automatically generated]
--
Russ Whaley whaley.russ@gmail.com
-- Russ Whaley whaley.russ@gmail.com
participants (2)
-
Robert Briggs -
Russ Whaley