Mantis - Squeak
Viewing Issue Advanced Details
7703 Compiler minor always 08-21-12 06:59 01-03-13 09:51
kwl  
 
normal  
resolved 4.3  
fixed  
none    
none  
0007703: During fileIn, Parser>>notify:at: has Error: subscript is out of bounds: 73
Filing in, from source code which has typo in the last position (inadvertedly typed a > behind last valid expression).

When Parser wants to report, it has a problem with arguments for Text>>copyReplaceFrom:to:with:.
The typo can be seen in the first ByteString in the attached SqueakDebug.log.

.image: Squeak4.3.image latest update: #11860
VM: Squeak3.10.2 of 11 February 2010 [latest update: #9314] Win32 built on Jul 27 2010 20:35:19 Compiler: 2.95.2 19991024 (release)
 SqueakDebug.log [^] (16,384 bytes) 08-21-12 06:59

Notes
(0014263)
FrankShearar   
12-18-12 12:23   
Is it possible for you to show the offending piece of code? Can you produce a minimal case that reproduces the issue?
(0014264)
kwl   
12-18-12 15:53   
FrankShearar asked: Is it possible for you to show the offending piece of code?

Sure, here comes the original (offending) source coded from the (attached) log file, it is decorated here for use by file-in with alt-G (in e.g. the File List tool):

!UndefinedObject methodsFor: 'FrankShearar'!
return: argv adaptToFloat: rcvr
 ^argv adaptToFloat: rcvr andSend: self>! !

FrankShearar asked: Can you produce a minimal case that reproduces the issue?

Sure, in the previous I just copied&pasted from the log file (the one attached to the original report), and then alt-G produced the same "Error: subscript is out of bounds: 73".
(0014265)
FrankShearar   
12-18-12 17:11   
I put the chunk in file (foo.st). In a Squeak 4.4 trunk image I filed in foo.st. I got a SyntaxError correctly highlighting the error.
(0014277)
nicolas cellier   
01-02-13 21:14   
fixed in 4.4 (various changes from Compiler-nice.222 to Compiler-nice.225)
(0014282)
kwl   
01-03-13 09:51   
Thanks for the good teamwork!