Error in sage-5.0 + R: sage notebook does not show R parsing errors if length(input)>=1024 characters

7 views
Skip to first unread message

Maciek Sykulski

unread,
May 20, 2012, 9:38:49 AM5/20/12
to sage-edu, maci...@mimuw.edu.pl
Hi All,
I've compiled from source sage-5.0 on Gentoo on the following
machine:
Linux 3.2.6 #3 SMP Thu Feb 16 17:40:05 CET 2012 x86_64 Intel(R)
Xeon(R) CPU X5690 @ 3.47GHz GenuineIntel GNU/Linux

Everything seems to work fine except for this:
When an input cell with some R code contains a syntax error and the
input is longer than 1023 characters, the cell evaluates without
printing any message at all.

This is exemplified below (evalute in R enironment):
----------------
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#234567890123456789012
]
----------------
The above code when evaluated, as it should, prints :
Error: unexpected ']' in "]"

However, the below code with one more letter inside comments evaluates
and nothing is printed at all:
----------------
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
#2345678901234567890123
]
----------------

Does anyone have a clue where in the source code this bug hides?
It's a serious bug, it makes developing R code rather difficult.

Thanks,
MS

David Joyner

unread,
May 20, 2012, 10:51:45 AM5/20/12
to sage...@googlegroups.com
This was cross-posted to sage-devel.
Please post replies there.
> --
> You received this message because you are subscribed to the Google Groups "sage-edu" group.
> To post to this group, send email to sage...@googlegroups.com.
> To unsubscribe from this group, send email to sage-edu+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
>
Reply all
Reply to author
Forward
0 new messages