Status: Accepted
Owner:
[hidden email]
Labels: Type-Bug Milestone-1.4
New issue 5366 by
[hidden email]: highlightError create a text with
too long runs...
http://code.google.com/p/pharo/issues/detail?id=5366The symptom is
Object compile: 'foo self. ['
Error SubscriptOutOfBounds: 48
This was issue 4650 of which root cause as fixed, causing yet another
(recent) bug to be uncovered.
This is due to SyntaxError>>highlightError which adds attributes past the
end of String.
contents addAttribute: TextColor red from: location to: location + self
sourceErrorString size.
should be from: location to: location + self sourceErrorString size - 1.
Then Text>>addAttribute:from:to: is not robust and creates a run longer
than the string.
Then CharacterScanner & co are not robust and try to access the string up
to the end of run.
Phew...
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker