[squeak-dev] [5.2a] styled text in a class comment spawns endless subscript out-of-bounds

karl ramberg karlramberg at gmail.com
Wed Jul 4 12:35:59 UTC 2018


Hi,
See class comment i NewParagraph for a hint of what happens.
A empty lineSpan 71 to: 70 is added to the end of the paragraph, when you
double click below the text.
When the character scanner looks for characters outside of the string at
index 71 it cause a recursion.

Best,
Karl



On Wed, Jul 4, 2018 at 11:10 AM K K Subbu <kksubbu.ml at gmail.com> wrote:

> On Tuesday 03 July 2018 04:40 AM, Tim Johnson wrote:
> > 1. File-in the .cs as attached*.
> > 2. In a system browser, click on the class, then click on the [?] button
> > to view class comment.
> > 3. Notice the styled text in the comment.
> > 4. Click around the comment pane a bit.
> > 5. Eventually, see "Error: subscript is out of bounds: 71" appear over
> > and over until you interrupt.
> In step 4, it is sufficient to click once near the bottom of the pane
> when the cursor changes from I-bar to arrow and then wait. This will
> trigger the error, but the error window triggers itself recursively
> around 50 times before stopping and displaying the windows.
>
> I added an assert to catch it before recursion:
>
>     self assert: lastIndex < sourceString size.
>
> The assert window itself throws up another error, but that is a topic
> for another thread ;-).
>
> Regards .. Subbu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180704/56bc07ef/attachment.html>


More information about the Squeak-dev mailing list