You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Rakudo/MoarVM and debugger built a couple days ago.
The text was updated successfully, but these errors were encountered:
raiph
changed the title
Crash if single step onto a line that might continue (no ; at the end) which is followed by a completely blank line
Crash when I single step onto a line of code that might continue (eg say 1 vs `say 1;' ) which is followed by a completely blank line
Apr 23, 2014
The bug was in the highlighted_lines sub which starts:
sub highlighted_lines(@lines, $start_line_pos, $end_line_pos) {
@lines.map: {
state $line = 0;
NEXT $line++;
my $safe_start_pos = [min] $start_line_pos, .chars - 1;
my $safe_end_pos = [min] $end_line_pos, .chars - 1;
.chars - 1 is -1 on zero length lines. So the $safe_*_pos variables ironically weren't safe.
Also, the NEXT had no effect in my tests.
The sub as it stands had highlighting oddities that seem to be due to the NEXT issue.
The sub also seemed unnecessarily complex, to the degree I found it difficult to reason about. I rewrote it to the following version which seems to more directly express what the sub has to do and which has been working in my testing:
raiph
changed the title
Crash when I single step onto a line of code that might continue (eg say 1 vs `say 1;' ) which is followed by a completely blank line
Crash when code to highlight includes a completely blank line
Apr 24, 2014
http://irclog.perlgeek.de/perl6/2014-04-23#i_8625892
Using Rakudo/MoarVM and debugger built a couple days ago.
The text was updated successfully, but these errors were encountered: