subscript out of bounds in protocol creation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

subscript out of bounds in protocol creation

jdelgado
Hi,

I realized that sometimes, when creating new protocols, it appears an
error "subscript out of bounds: 1". I have not been able -yet-
to reproduce it from a clean image, but it happens often (at least
to me). It seems to me that it has something to do with protocol
creation before any method has been written, but I am still investigating.

I used the latest image downloaded yesterday, and it still happens.

I browsed fogbuz looking for this error before reporting it, but I could not
find it. I did not search thorougly, though.

Just to let you know...

Bests, and thanks a lot for the work you are doing. It's amazing.

Jordi

Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

Clément Béra
I had the same problem. I had to reload my project from a fresh image to solve it. Very hard to reproduce.

In addition, after editing a few method you cannot anymore edit the class comment (you need to open another Nautilus to do it).


2014/1/31 Jordi Delgado <[hidden email]>
Hi,

I realized that sometimes, when creating new protocols, it appears an
error "subscript out of bounds: 1". I have not been able -yet-
to reproduce it from a clean image, but it happens often (at least
to me). It seems to me that it has something to do with protocol
creation before any method has been written, but I am still investigating.

I used the latest image downloaded yesterday, and it still happens.

I browsed fogbuz looking for this error before reporting it, but I could not
find it. I did not search thorougly, though.

Just to let you know...

Bests, and thanks a lot for the work you are doing. It's amazing.

Jordi


Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

Nicolai Hess
In reply to this post by jdelgado
2014-01-31 Jordi Delgado <[hidden email]>:
Hi,

I realized that sometimes, when creating new protocols, it appears an
error "subscript out of bounds: 1". I have not been able -yet-
to reproduce it from a clean image, but it happens often (at least
to me). It seems to me that it has something to do with protocol
creation before any method has been written, but I am still investigating.

I used the latest image downloaded yesterday, and it still happens.

I browsed fogbuz looking for this error before reporting it, but I could not
find it. I did not search thorougly, though.

Just to let you know...

Bests, and thanks a lot for the work you are doing. It's amazing.

Jordi



Hi,

yes there are two (or three?) reports for that kind of issue.
And maybe there are more than one bug responsible for this issue.
At least two bugs, I have found, are described in this report
12469
Sometimes an empty protocol is created

I didn't provide a solution for this, as I had problems createing a slice, that only incude
those changes.

Nicolai



Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

Nicolai Hess
In reply to this post by Clément Béra
2014-01-31 Clément Bera <[hidden email]>:
I had the same problem. I had to reload my project from a fresh image to solve it. Very hard to reproduce.

In addition, after editing a few method you cannot anymore edit the class comment (you need to open another Nautilus to do it).



That was me, sorry for this.
 It is fixed in 30725.

Nicolai

Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

jdelgado
In reply to this post by jdelgado
Yep you're right, it looks a lot to what is reported in 12316
<https://pharo.fogbugz.com/f/cases/12316/> and 12469
<https://pharo.fogbugz.com/f/cases/12469/>.

I will keep an eye on them. Thanks.

Bests,

Jordi


> 2014-01-31 Jordi Delgado <[hidden email]>:
>
>> Hi,
>>
>> I realized that sometimes, when creating new protocols, it appears an
>> error "subscript out of bounds: 1". I have not been able -yet-
>> to reproduce it from a clean image, but it happens often (at least
>> to me). It seems to me that it has something to do with protocol
>> creation before any method has been written, but I am still
>> investigating.
>>
>> I used the latest image downloaded yesterday, and it still happens.
>>
>> I browsed fogbuz looking for this error before reporting it, but I could
>> not
>> find it. I did not search thorougly, though.
>>
>> Just to let you know...
>>
>> Bests, and thanks a lot for the work you are doing. It's amazing.
>>
>> Jordi
>>
>>
>
> Hi,
>
> yes there are two (or three?) reports for that kind of issue.
> And maybe there are more than one bug responsible for this issue.
> At least two bugs, I have found, are described in this report
> 12469 <https://pharo.fogbugz.com/default.asp?12469>
> Sometimes an empty protocol is created
>
> I didn't provide a solution for this, as I had problems createing a slice,
> that only incude
> those changes.
>
> Nicolai
>



Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

Andreas Wacknitz
In reply to this post by jdelgado
Hi,

Am 31.01.2014 um 08:36 schrieb Jordi Delgado <[hidden email]>:

> Hi,
>
> I realized that sometimes, when creating new protocols, it appears an
> error "subscript out of bounds: 1". I have not been able -yet-
> to reproduce it from a clean image, but it happens often (at least
> to me). It seems to me that it has something to do with protocol
> creation before any method has been written, but I am still investigating.
>
I guess I can produce this easily :-)
Just hit „Add protocol…“ in the popup menu of the method protocol pane.
Enter a name like „private“ in the dialog. And then press enter without selecting anything in the listbox above.
And voilà…

Regards,
Andreas



Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

jdelgado
Hi,

With a fresh image, I do that with a class randomly selected
(obviously, with no class selected nothing happens) and the
protocol gets added without problems. Then, I choose another class,
again I pick a random one, and after doing exactly the same the
error appears. Why? No clue.

I said that the error is difficult to reproduce because sometimes
it appears, and sometimes not. And I am not able to ascertain the
circumstances under which it will pop up.

Bests,

Jordi




> Hi,
>
> Am 31.01.2014 um 08:36 schrieb Jordi Delgado <[hidden email]>:
>
> > Hi,
> >
> > I realized that sometimes, when creating new protocols, it appears an
> > error "subscript out of bounds: 1". I have not been able -yet-
> > to reproduce it from a clean image, but it happens often (at least
> > to me). It seems to me that it has something to do with protocol
> > creation before any method has been written, but I am still investigating.
> >
> I guess I can produce this easily :-)
> Just hit „Add protocol…“ in the popup menu of the method protocol pane.
> Enter a name like „private“ in the dialog. And then press enter without selecting anything in the listbox above.
> And voilà…
>
> Regards,
> Andreas
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

Andreas Wacknitz
Hi Jordi and all,

here is my detailed receipt with a freshly downloaded 30733.zip from Pharo files:

        1. Open Nautilus
        2. Select an arbitrary package
        3. Select an arbitrary class from that package
        4. Right-click in the methods panel and select „Add protocol…“ from the popup menu.
        5. Enter „private“ in the dialog without selecting any entry in the listbox on top.
        6. Hit „enter“ or press „OK“ with a left-click.

-> Bummer! A cascade of 3 "SubscriptOutOfBounce: 1“ pre-debuggers.

Regards,
Andreas



Am 01.02.2014 um 11:46 schrieb Jordi Delgado <[hidden email]>:

> Hi,
>
> With a fresh image, I do that with a class randomly selected
> (obviously, with no class selected nothing happens) and the
> protocol gets added without problems. Then, I choose another class,
> again I pick a random one, and after doing exactly the same the
> error appears. Why? No clue.
>
> I said that the error is difficult to reproduce because sometimes
> it appears, and sometimes not. And I am not able to ascertain the
> circumstances under which it will pop up.
>
> Bests,
>
> Jordi
>
>
>
>
>> Hi,
>>
>> Am 31.01.2014 um 08:36 schrieb Jordi Delgado <[hidden email]>:
>>
>>> Hi,
>>>
>>> I realized that sometimes, when creating new protocols, it appears an
>>> error "subscript out of bounds: 1". I have not been able -yet-
>>> to reproduce it from a clean image, but it happens often (at least
>>> to me). It seems to me that it has something to do with protocol
>>> creation before any method has been written, but I am still investigating.
>>>
>> I guess I can produce this easily :-)
>> Just hit „Add protocol…“ in the popup menu of the method protocol pane.
>> Enter a name like „private“ in the dialog. And then press enter without selecting anything in the listbox above.
>> And voilà…
>>
>> Regards,
>> Andreas
>>
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

Andreas Wacknitz

Am 01.02.2014 um 12:02 schrieb Andreas Wacknitz <[hidden email]>:

> Hi Jordi and all,
>
> here is my detailed receipt with a freshly downloaded 30733.zip from Pharo files:
>
> 1. Open Nautilus
> 2. Select an arbitrary package
> 3. Select an arbitrary class from that package
> 4. Right-click in the methods panel and select „Add protocol…“ from the popup menu.
Sorry, I was a little bit imprecise here: You need to right-click in the "method category“ (or method protocol, I don’t know the correct term) panel to add a new protocol…

> 5. Enter „private“ in the dialog without selecting any entry in the listbox on top.
> 6. Hit „enter“ or press „OK“ with a left-click.
>
> -> Bummer! A cascade of 3 "SubscriptOutOfBounce: 1“ pre-debuggers.
>
> Regards,
> Andreas
>
>
>
> Am 01.02.2014 um 11:46 schrieb Jordi Delgado <[hidden email]>:
>
>> Hi,
>>
>> With a fresh image, I do that with a class randomly selected
>> (obviously, with no class selected nothing happens) and the
>> protocol gets added without problems. Then, I choose another class,
>> again I pick a random one, and after doing exactly the same the
>> error appears. Why? No clue.
>>
>> I said that the error is difficult to reproduce because sometimes
>> it appears, and sometimes not. And I am not able to ascertain the
>> circumstances under which it will pop up.
>>
>> Bests,
>>
>> Jordi
>>
>>
>>
>>
>>> Hi,
>>>
>>> Am 31.01.2014 um 08:36 schrieb Jordi Delgado <[hidden email]>:
>>>
>>>> Hi,
>>>>
>>>> I realized that sometimes, when creating new protocols, it appears an
>>>> error "subscript out of bounds: 1". I have not been able -yet-
>>>> to reproduce it from a clean image, but it happens often (at least
>>>> to me). It seems to me that it has something to do with protocol
>>>> creation before any method has been written, but I am still investigating.
>>>>
>>> I guess I can produce this easily :-)
>>> Just hit „Add protocol…“ in the popup menu of the method protocol pane.
>>> Enter a name like „private“ in the dialog. And then press enter without selecting anything in the listbox above.
>>> And voilà…
>>>
>>> Regards,
>>> Andreas
>>>
>>>
>>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

jdelgado
In reply to this post by Andreas Wacknitz
That's what I mean, I did *exactly* that, and the chosen class was
KMKeymapBuilder (from Keymapping-Pragmas package). The private
protocol was added with no problem. So...? No idea.

Bests,

Jordi

PS: Also with a freshly 30733 image downloaded




> Hi Jordi and all,
>
> here is my detailed receipt with a freshly downloaded 30733.zip from Pharo files:
>
> 1. Open Nautilus
> 2. Select an arbitrary package
> 3. Select an arbitrary class from that package
> 4. Right-click in the methods panel and select „Add protocol…“ from the popup menu.
> 5. Enter „private“ in the dialog without selecting any entry in the listbox on top.
> 6. Hit „enter“ or press „OK“ with a left-click.
>
> -> Bummer! A cascade of 3 "SubscriptOutOfBounce: 1“ pre-debuggers.
>
> Regards,
> Andreas
>
>
>
> Am 01.02.2014 um 11:46 schrieb Jordi Delgado <[hidden email]>:
>
> > Hi,
> >
> > With a fresh image, I do that with a class randomly selected
> > (obviously, with no class selected nothing happens) and the
> > protocol gets added without problems. Then, I choose another class,
> > again I pick a random one, and after doing exactly the same the
> > error appears. Why? No clue.
> >
> > I said that the error is difficult to reproduce because sometimes
> > it appears, and sometimes not. And I am not able to ascertain the
> > circumstances under which it will pop up.
> >
> > Bests,
> >
> > Jordi
> >
> >
> >
> >
> >> Hi,
> >>
> >> Am 31.01.2014 um 08:36 schrieb Jordi Delgado <[hidden email]>:
> >>
> >>> Hi,
> >>>
> >>> I realized that sometimes, when creating new protocols, it appears an
> >>> error "subscript out of bounds: 1". I have not been able -yet-
> >>> to reproduce it from a clean image, but it happens often (at least
> >>> to me). It seems to me that it has something to do with protocol
> >>> creation before any method has been written, but I am still investigating.
> >>>
> >> I guess I can produce this easily :-)
> >> Just hit „Add protocol…“ in the popup menu of the method protocol pane.
> >> Enter a name like „private“ in the dialog. And then press enter without selecting anything in the listbox above.
> >> And voilà…
> >>
> >> Regards,
> >> Andreas
> >>
> >>
> >>
> >
>
>

Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

Andreas Wacknitz

Am 01.02.2014 um 16:41 schrieb Jordi Delgado <[hidden email]>:

> That's what I mean, I did *exactly* that, and the chosen class was
> KMKeymapBuilder (from Keymapping-Pragmas package). The private
> protocol was added with no problem. So...? No idea.
>
> Bests,
>
> Jordi
>
> PS: Also with a freshly 30733 image downloaded
>
>
OK, I tried it with KMKeymapBuilder and got the errors.
So we need to check for the operating system and VM.
On my machine (OSX 10.9.1) System Reporter says for VM General:

Virtual Machine
---------------
/Applications/Pharo.app/Contents/MacOS/Pharo
NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
https://github.com/pharo-project/pharo-vm.git Commit: 71adca113a9aff2876288927e5c1c86bf7ac13e2 Date: 2013-12-07 05:00:47 -0800 By: Philippe Back <[hidden email]> Jenkins build #14777

Mac Cocoa Cog 5.8b12 21-Sep-10 >1B0534FA-246C-47C5-AB29-7A76C81CCDCB<
VMMaker versionString https://github.com/pharo-project/pharo-vm.git Commit: 71adca113a9aff2876288927e5c1c86bf7ac13e2 Date: 2013-12-07 05:00:47 -0800 By: Philippe Back <[hidden email]> Jenkins build #14777
NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013


What are you using?

Regards,
Andreas


>
>
>> Hi Jordi and all,
>>
>> here is my detailed receipt with a freshly downloaded 30733.zip from Pharo files:
>>
>> 1. Open Nautilus
>> 2. Select an arbitrary package
>> 3. Select an arbitrary class from that package
>> 4. Right-click in the methods panel and select „Add protocol…“ from the popup menu.
>> 5. Enter „private“ in the dialog without selecting any entry in the listbox on top.
>> 6. Hit „enter“ or press „OK“ with a left-click.
>>
>> -> Bummer! A cascade of 3 "SubscriptOutOfBounce: 1“ pre-debuggers.
>>
>> Regards,
>> Andreas
>>
>>
>>
>> Am 01.02.2014 um 11:46 schrieb Jordi Delgado <[hidden email]>:
>>
>>> Hi,
>>>
>>> With a fresh image, I do that with a class randomly selected
>>> (obviously, with no class selected nothing happens) and the
>>> protocol gets added without problems. Then, I choose another class,
>>> again I pick a random one, and after doing exactly the same the
>>> error appears. Why? No clue.
>>>
>>> I said that the error is difficult to reproduce because sometimes
>>> it appears, and sometimes not. And I am not able to ascertain the
>>> circumstances under which it will pop up.
>>>
>>> Bests,
>>>
>>> Jordi
>>>
>>>
>>>
>>>
>>>> Hi,
>>>>
>>>> Am 31.01.2014 um 08:36 schrieb Jordi Delgado <[hidden email]>:
>>>>
>>>>> Hi,
>>>>>
>>>>> I realized that sometimes, when creating new protocols, it appears an
>>>>> error "subscript out of bounds: 1". I have not been able -yet-
>>>>> to reproduce it from a clean image, but it happens often (at least
>>>>> to me). It seems to me that it has something to do with protocol
>>>>> creation before any method has been written, but I am still investigating.
>>>>>
>>>> I guess I can produce this easily :-)
>>>> Just hit „Add protocol…“ in the popup menu of the method protocol pane.
>>>> Enter a name like „private“ in the dialog. And then press enter without selecting anything in the listbox above.
>>>> And voilà…
>>>>
>>>> Regards,
>>>> Andreas
>>>>
>>>>
>>>>
>>>
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

pharo4Stef@free.fr
In reply to this post by Andreas Wacknitz
tx

this is nice to have a reproducible case. Like take we will fix it :)

On 01 Feb 2014, at 12:02, Andreas Wacknitz <[hidden email]> wrote:

> Hi Jordi and all,
>
> here is my detailed receipt with a freshly downloaded 30733.zip from Pharo files:
>
> 1. Open Nautilus
> 2. Select an arbitrary package
> 3. Select an arbitrary class from that package
> 4. Right-click in the methods panel and select „Add protocol…“ from the popup menu.
> 5. Enter „private“ in the dialog without selecting any entry in the listbox on top.
> 6. Hit „enter“ or press „OK“ with a left-click.
>
> -> Bummer! A cascade of 3 "SubscriptOutOfBounce: 1“ pre-debuggers.
>
> Regards,
> Andreas
>
>
>
> Am 01.02.2014 um 11:46 schrieb Jordi Delgado <[hidden email]>:
>
>> Hi,
>>
>> With a fresh image, I do that with a class randomly selected
>> (obviously, with no class selected nothing happens) and the
>> protocol gets added without problems. Then, I choose another class,
>> again I pick a random one, and after doing exactly the same the
>> error appears. Why? No clue.
>>
>> I said that the error is difficult to reproduce because sometimes
>> it appears, and sometimes not. And I am not able to ascertain the
>> circumstances under which it will pop up.
>>
>> Bests,
>>
>> Jordi
>>
>>
>>
>>
>>> Hi,
>>>
>>> Am 31.01.2014 um 08:36 schrieb Jordi Delgado <[hidden email]>:
>>>
>>>> Hi,
>>>>
>>>> I realized that sometimes, when creating new protocols, it appears an
>>>> error "subscript out of bounds: 1". I have not been able -yet-
>>>> to reproduce it from a clean image, but it happens often (at least
>>>> to me). It seems to me that it has something to do with protocol
>>>> creation before any method has been written, but I am still investigating.
>>>>
>>> I guess I can produce this easily :-)
>>> Just hit „Add protocol…“ in the popup menu of the method protocol pane.
>>> Enter a name like „private“ in the dialog. And then press enter without selecting anything in the listbox above.
>>> And voilà…
>>>
>>> Regards,
>>> Andreas
>>>
>>>
>>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

Andreas Wacknitz
Hi again,

Alas it’s not that easy. I made more experiments after Jordi reported that he wasn’t able to reproduce the problem with
my steps.
On my Mac I had installed the latest stable (December 12th, 2013)  PharoVM. On my Windows PC I have installed the latest stable (December 7th, 2013) PharoVM. Whereas on Mac I could reproduce the problem easily (every time I tried), it’s not happening on Windows at the moment.
But I can remember having the same problem on my Windows PC.
Furthermore, when using the newest PharoVM on Mac (build 304 from files.pharo.org) I don’t have the problem at the moment!
So the VM seems to be involved…

Regards,
Andreas
 
Am 01.02.2014 um 23:29 schrieb Pharo4Stef <[hidden email]>:

> tx
>
> this is nice to have a reproducible case. Like take we will fix it :)
>
> On 01 Feb 2014, at 12:02, Andreas Wacknitz <[hidden email]> wrote:
>
>> Hi Jordi and all,
>>
>> here is my detailed receipt with a freshly downloaded 30733.zip from Pharo files:
>>
>> 1. Open Nautilus
>> 2. Select an arbitrary package
>> 3. Select an arbitrary class from that package
>> 4. Right-click in the methods panel and select „Add protocol…“ from the popup menu.
>> 5. Enter „private“ in the dialog without selecting any entry in the listbox on top.
>> 6. Hit „enter“ or press „OK“ with a left-click.
>>
>> -> Bummer! A cascade of 3 "SubscriptOutOfBounce: 1“ pre-debuggers.
>>
>> Regards,
>> Andreas
>>
>>
>>
>> Am 01.02.2014 um 11:46 schrieb Jordi Delgado <[hidden email]>:
>>
>>> Hi,
>>>
>>> With a fresh image, I do that with a class randomly selected
>>> (obviously, with no class selected nothing happens) and the
>>> protocol gets added without problems. Then, I choose another class,
>>> again I pick a random one, and after doing exactly the same the
>>> error appears. Why? No clue.
>>>
>>> I said that the error is difficult to reproduce because sometimes
>>> it appears, and sometimes not. And I am not able to ascertain the
>>> circumstances under which it will pop up.
>>>
>>> Bests,
>>>
>>> Jordi
>>>
>>>
>>>
>>>
>>>> Hi,
>>>>
>>>> Am 31.01.2014 um 08:36 schrieb Jordi Delgado <[hidden email]>:
>>>>
>>>>> Hi,
>>>>>
>>>>> I realized that sometimes, when creating new protocols, it appears an
>>>>> error "subscript out of bounds: 1". I have not been able -yet-
>>>>> to reproduce it from a clean image, but it happens often (at least
>>>>> to me). It seems to me that it has something to do with protocol
>>>>> creation before any method has been written, but I am still investigating.
>>>>>
>>>> I guess I can produce this easily :-)
>>>> Just hit „Add protocol…“ in the popup menu of the method protocol pane.
>>>> Enter a name like „private“ in the dialog. And then press enter without selecting anything in the listbox above.
>>>> And voilà…
>>>>
>>>> Regards,
>>>> Andreas
>>>>
>>>>
>>>>
>>>
>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

jdelgado
In reply to this post by Andreas Wacknitz
Hi,

I downloaded the most recent image with the most recent VM.
I'm using a macbook air with Mountain Lion 10.8.5, image 30733 and System Reporter says:

Virtual Machine
---------------
/Users/jdelgado/Smalltalk/Pharo-latest/Pharo.app/Contents/MacOS/Pharo
NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 26 2013
NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 26 2013
https://github.com/pharo-project/pharo-vm.git Commit: e698e14f38003258fa49506b14307d83863a5ac1 Date: 2013-12-16 06:32:59 -0800 By: Esteban Lorenzano <[hidden email]> Jenkins build #14780

Mac Cocoa Cog 5.8b12 21-Sep-10 >1B0534FA-246C-47C5-AB29-7A76C81CCDCB<
VMMaker versionString https://github.com/pharo-project/pharo-vm.git Commit: e698e14f38003258fa49506b14307d83863a5ac1 Date: 2013-12-16 06:32:59 -0800 By: Esteban Lorenzano <[hidden email]> Jenkins build #14780
NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 26 2013
NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 26 2013

However: This time the error does not appear, no matter what I do. Maybe it's solved (?)

Bests,

Jordi





>
> Am 01.02.2014 um 16:41 schrieb Jordi Delgado <[hidden email]>:
>
> > That's what I mean, I did *exactly* that, and the chosen class was
> > KMKeymapBuilder (from Keymapping-Pragmas package). The private
> > protocol was added with no problem. So...? No idea.
> >
> > Bests,
> >
> > Jordi
> >
> > PS: Also with a freshly 30733 image downloaded
> >
> >
> OK, I tried it with KMKeymapBuilder and got the errors.
> So we need to check for the operating system and VM.
> On my machine (OSX 10.9.1) System Reporter says for VM General:
>
> Virtual Machine
> ---------------
> /Applications/Pharo.app/Contents/MacOS/Pharo
> NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
> NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
> https://github.com/pharo-project/pharo-vm.git Commit: 71adca113a9aff2876288927e5c1c86bf7ac13e2 Date: 2013-12-07 05:00:47 -0800 By: Philippe Back <[hidden email]> Jenkins build #14777
>
> Mac Cocoa Cog 5.8b12 21-Sep-10 >1B0534FA-246C-47C5-AB29-7A76C81CCDCB<
> VMMaker versionString https://github.com/pharo-project/pharo-vm.git Commit: 71adca113a9aff2876288927e5c1c86bf7ac13e2 Date: 2013-12-07 05:00:47 -0800 By: Philippe Back <[hidden email]> Jenkins build #14777
> NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
> NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
>
>
> What are you using?
>
> Regards,
> Andreas
>
>
> >
> >
> >> Hi Jordi and all,
> >>
> >> here is my detailed receipt with a freshly downloaded 30733.zip from Pharo files:
> >>
> >> 1. Open Nautilus
> >> 2. Select an arbitrary package
> >> 3. Select an arbitrary class from that package
> >> 4. Right-click in the methods panel and select „Add protocol…“ from the popup menu.
> >> 5. Enter „private“ in the dialog without selecting any entry in the listbox on top.
> >> 6. Hit „enter“ or press „OK“ with a left-click.
> >>
> >> -> Bummer! A cascade of 3 "SubscriptOutOfBounce: 1“ pre-debuggers.
> >>
> >> Regards,
> >> Andreas
> >>
> >>
> >>
> >> Am 01.02.2014 um 11:46 schrieb Jordi Delgado <[hidden email]>:
> >>
> >>> Hi,
> >>>
> >>> With a fresh image, I do that with a class randomly selected
> >>> (obviously, with no class selected nothing happens) and the
> >>> protocol gets added without problems. Then, I choose another class,
> >>> again I pick a random one, and after doing exactly the same the
> >>> error appears. Why? No clue.
> >>>
> >>> I said that the error is difficult to reproduce because sometimes
> >>> it appears, and sometimes not. And I am not able to ascertain the
> >>> circumstances under which it will pop up.
> >>>
> >>> Bests,
> >>>
> >>> Jordi
> >>>
> >>>
> >>>
> >>>
> >>>> Hi,
> >>>>
> >>>> Am 31.01.2014 um 08:36 schrieb Jordi Delgado <[hidden email]>:
> >>>>
> >>>>> Hi,
> >>>>>
> >>>>> I realized that sometimes, when creating new protocols, it appears an
> >>>>> error "subscript out of bounds: 1". I have not been able -yet-
> >>>>> to reproduce it from a clean image, but it happens often (at least
> >>>>> to me). It seems to me that it has something to do with protocol
> >>>>> creation before any method has been written, but I am still investigating.
> >>>>>
> >>>> I guess I can produce this easily :-)
> >>>> Just hit „Add protocol…“ in the popup menu of the method protocol pane.
> >>>> Enter a name like „private“ in the dialog. And then press enter without selecting anything in the listbox above.
> >>>> And voilà…
> >>>>
> >>>> Regards,
> >>>> Andreas
> >>>>
> >>>>
> >>>>
> >>>
> >>
> >>
> >
>
>

Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

Nicolai Hess
2014-02-02 Jordi Delgado <[hidden email]>:
Hi,

I downloaded the most recent image with the most recent VM.
I'm using a macbook air with Mountain Lion 10.8.5, image 30733 and System Reporter says:

Virtual Machine
---------------
/Users/jdelgado/Smalltalk/Pharo-latest/Pharo.app/Contents/MacOS/Pharo
NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 26 2013
NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 26 2013
https://github.com/pharo-project/pharo-vm.git Commit: e698e14f38003258fa49506b14307d83863a5ac1 Date: 2013-12-16 06:32:59 -0800 By: Esteban Lorenzano <[hidden email]> Jenkins build #14780

Mac Cocoa Cog 5.8b12 21-Sep-10 >1B0534FA-246C-47C5-AB29-7A76C81CCDCB<
VMMaker versionString https://github.com/pharo-project/pharo-vm.git Commit: e698e14f38003258fa49506b14307d83863a5ac1 Date: 2013-12-16 06:32:59 -0800 By: Esteban Lorenzano <[hidden email]> Jenkins build #14780
NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 26 2013
NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 26 2013

However: This time the error does not appear, no matter what I do. Maybe it's solved (?)

Bests,

Jordi





>
> Am 01.02.2014 um 16:41 schrieb Jordi Delgado <[hidden email]>:
>
> > That's what I mean, I did *exactly* that, and the chosen class was
> > KMKeymapBuilder (from Keymapping-Pragmas package). The private
> > protocol was added with no problem. So...? No idea.
> >
> > Bests,
> >
> > Jordi
> >
> > PS: Also with a freshly 30733 image downloaded
> >
> >
> OK, I tried it with KMKeymapBuilder and got the errors.
> So we need to check for the operating system and VM.
> On my machine (OSX 10.9.1) System Reporter says for VM General:
>
> Virtual Machine
> ---------------
> /Applications/Pharo.app/Contents/MacOS/Pharo
> NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
> NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
> https://github.com/pharo-project/pharo-vm.git Commit: 71adca113a9aff2876288927e5c1c86bf7ac13e2 Date: 2013-12-07 05:00:47 -0800 By: Philippe Back <[hidden email]> Jenkins build #14777
>
> Mac Cocoa Cog 5.8b12 21-Sep-10 >1B0534FA-246C-47C5-AB29-7A76C81CCDCB<
> VMMaker versionString https://github.com/pharo-project/pharo-vm.git Commit: 71adca113a9aff2876288927e5c1c86bf7ac13e2 Date: 2013-12-07 05:00:47 -0800 By: Philippe Back <[hidden email]> Jenkins build #14777
> NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
> NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
>
>
> What are you using?
>
> Regards,
> Andreas
>
>
> >
> >
> >> Hi Jordi and all,
> >>
> >> here is my detailed receipt with a freshly downloaded 30733.zip from Pharo files:
> >>
> >>    1. Open Nautilus
> >>    2. Select an arbitrary package
> >>    3. Select an arbitrary class from that package
> >>    4. Right-click in the methods panel and select „Add protocol…“ from the popup menu.
> >>    5. Enter „private“ in the dialog without selecting any entry in the listbox on top.
> >>    6. Hit „enter“ or press „OK“ with a left-click.
> >>
> >> -> Bummer! A cascade of 3 "SubscriptOutOfBounce: 1“ pre-debuggers.
> >>
> >> Regards,
> >> Andreas
> >>
> >>
> >>
> >> Am 01.02.2014 um 11:46 schrieb Jordi Delgado <[hidden email]>:
> >>
> >>> Hi,
> >>>
> >>> With a fresh image, I do that with a class randomly selected
> >>> (obviously, with no class selected nothing happens) and the
> >>> protocol gets added without problems. Then, I choose another class,
> >>> again I pick a random one, and after doing exactly the same the
> >>> error appears. Why? No clue.
> >>>
> >>> I said that the error is difficult to reproduce because sometimes
> >>> it appears, and sometimes not. And I am not able to ascertain the
> >>> circumstances under which it will pop up.
> >>>
> >>> Bests,
> >>>
> >>> Jordi
> >>>
> >>>
> >>>
> >>>
> >>>> Hi,
> >>>>
> >>>> Am 31.01.2014 um 08:36 schrieb Jordi Delgado <[hidden email]>:
> >>>>
> >>>>> Hi,
> >>>>>
> >>>>> I realized that sometimes, when creating new protocols, it appears an
> >>>>> error "subscript out of bounds: 1". I have not been able -yet-
> >>>>> to reproduce it from a clean image, but it happens often (at least
> >>>>> to me). It seems to me that it has something to do with protocol
> >>>>> creation before any method has been written, but I am still investigating.
> >>>>>
> >>>> I guess I can produce this easily :-)
> >>>> Just hit „Add protocol…“ in the popup menu of the method protocol pane.
> >>>> Enter a name like „private“ in the dialog. And then press enter without selecting anything in the listbox above.
> >>>> And voilà…
> >>>>
> >>>> Regards,
> >>>> Andreas
> >>>>
> >>>>
> >>>>
> >>>
> >>
> >>
> >
>
>



Not fixed in 30733, but now in 30735.
Reply | Threaded
Open this post in threaded view
|

Re: subscript out of bounds in protocol creation

jdelgado
Great! Thanks a lot!

Bests,

Jordi


> 2014-02-02 Jordi Delgado <[hidden email]>:
>
> > Hi,
> >
> > I downloaded the most recent image with the most recent VM.
> > I'm using a macbook air with Mountain Lion 10.8.5, image 30733 and System
> > Reporter says:
> >
> > Virtual Machine
> > ---------------
> > /Users/jdelgado/Smalltalk/Pharo-latest/Pharo.app/Contents/MacOS/Pharo
> > NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid:
> > acc98e51-2fba-4841-a965-2975997bba66 Dec 26 2013
> > NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid:
> > acc98e51-2fba-4841-a965-2975997bba66 Dec 26 2013
> > https://github.com/pharo-project/pharo-vm.git Commit:
> > e698e14f38003258fa49506b14307d83863a5ac1 Date: 2013-12-16 06:32:59 -0800
> > By: Esteban Lorenzano <[hidden email]> Jenkins build #14780
> >
> > Mac Cocoa Cog 5.8b12 21-Sep-10 >1B0534FA-246C-47C5-AB29-7A76C81CCDCB<
> > VMMaker versionString https://github.com/pharo-project/pharo-vm.gitCommit: e698e14f38003258fa49506b14307d83863a5ac1 Date: 2013-12-16 06:32:59
> > -0800 By: Esteban Lorenzano <[hidden email]> Jenkins build #14780
> > NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid:
> > acc98e51-2fba-4841-a965-2975997bba66 Dec 26 2013
> > NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid:
> > acc98e51-2fba-4841-a965-2975997bba66 Dec 26 2013
> >
> > However: This time the error does not appear, no matter what I do. Maybe
> > it's solved (?)
> >
> > Bests,
> >
> > Jordi
> >
> >
> >
> >
> >
> > >
> > > Am 01.02.2014 um 16:41 schrieb Jordi Delgado <[hidden email]>:
> > >
> > > > That's what I mean, I did *exactly* that, and the chosen class was
> > > > KMKeymapBuilder (from Keymapping-Pragmas package). The private
> > > > protocol was added with no problem. So...? No idea.
> > > >
> > > > Bests,
> > > >
> > > > Jordi
> > > >
> > > > PS: Also with a freshly 30733 image downloaded
> > > >
> > > >
> > > OK, I tried it with KMKeymapBuilder and got the errors.
> > > So we need to check for the operating system and VM.
> > > On my machine (OSX 10.9.1) System Reporter says for VM General:
> > >
> > > Virtual Machine
> > > ---------------
> > > /Applications/Pharo.app/Contents/MacOS/Pharo
> > > NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid:
> > acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
> > > NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid:
> > acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
> > > https://github.com/pharo-project/pharo-vm.git Commit:
> > 71adca113a9aff2876288927e5c1c86bf7ac13e2 Date: 2013-12-07 05:00:47 -0800
> > By: Philippe Back <[hidden email]> Jenkins build #14777
> > >
> > > Mac Cocoa Cog 5.8b12 21-Sep-10 >1B0534FA-246C-47C5-AB29-7A76C81CCDCB<
> > > VMMaker versionString https://github.com/pharo-project/pharo-vm.gitCommit: 71adca113a9aff2876288927e5c1c86bf7ac13e2 Date: 2013-12-07 05:00:47
> > -0800 By: Philippe Back <[hidden email]> Jenkins build #14777
> > > NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid:
> > acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
> > > NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid:
> > acc98e51-2fba-4841-a965-2975997bba66 Dec 12 2013
> > >
> > >
> > > What are you using?
> > >
> > > Regards,
> > > Andreas
> > >
> > >
> > > >
> > > >
> > > >> Hi Jordi and all,
> > > >>
> > > >> here is my detailed receipt with a freshly downloaded 30733.zip from
> > Pharo files:
> > > >>
> > > >>    1. Open Nautilus
> > > >>    2. Select an arbitrary package
> > > >>    3. Select an arbitrary class from that package
> > > >>    4. Right-click in the methods panel and select "Add protocol..."
> > from the popup menu.
> > > >>    5. Enter "private" in the dialog without selecting any entry in
> > the listbox on top.
> > > >>    6. Hit "enter" or press "OK" with a left-click.
> > > >>
> > > >> -> Bummer! A cascade of 3 "SubscriptOutOfBounce: 1" pre-debuggers.
> > > >>
> > > >> Regards,
> > > >> Andreas
> > > >>
> > > >>
> > > >>
> > > >> Am 01.02.2014 um 11:46 schrieb Jordi Delgado <[hidden email]>:
> > > >>
> > > >>> Hi,
> > > >>>
> > > >>> With a fresh image, I do that with a class randomly selected
> > > >>> (obviously, with no class selected nothing happens) and the
> > > >>> protocol gets added without problems. Then, I choose another class,
> > > >>> again I pick a random one, and after doing exactly the same the
> > > >>> error appears. Why? No clue.
> > > >>>
> > > >>> I said that the error is difficult to reproduce because sometimes
> > > >>> it appears, and sometimes not. And I am not able to ascertain the
> > > >>> circumstances under which it will pop up.
> > > >>>
> > > >>> Bests,
> > > >>>
> > > >>> Jordi
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>> Hi,
> > > >>>>
> > > >>>> Am 31.01.2014 um 08:36 schrieb Jordi Delgado <[hidden email]
> > >:
> > > >>>>
> > > >>>>> Hi,
> > > >>>>>
> > > >>>>> I realized that sometimes, when creating new protocols, it appears
> > an
> > > >>>>> error "subscript out of bounds: 1". I have not been able -yet-
> > > >>>>> to reproduce it from a clean image, but it happens often (at least
> > > >>>>> to me). It seems to me that it has something to do with protocol
> > > >>>>> creation before any method has been written, but I am still
> > investigating.
> > > >>>>>
> > > >>>> I guess I can produce this easily :-)
> > > >>>> Just hit "Add protocol..." in the popup menu of the method protocol
> > pane.
> > > >>>> Enter a name like "private" in the dialog. And then press enter
> > without selecting anything in the listbox above.
> > > >>>> And voilà...
> > > >>>>
> > > >>>> Regards,
> > > >>>> Andreas
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>
> > > >>
> > > >>
> > > >
> > >
> > >
> >
> >
>
> Not fixed in 30733, but now in 30735.