[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57121] [GUI] debug pointer position off by on
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #57121] [GUI] debug pointer position off by one line |
Date: |
Sun, 27 Oct 2019 19:56:15 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Update of bug #57121 (project octave):
Status: Need Info => Confirmed
_______________________________________________________
Follow-up Comment #5:
Also confirmed. The simplest test is
dbstop pkg 459
ans = 460
The code from pkg.m is
else
459 -> looks_like_pkg_name = regexp (file, '^[\w-]+$');
if (looks_like_pkg_name)
error (["pkg: file not found: %s.\n" ...
"This looks like an Octave Forge package name." ...
" Did you mean:\n" ...
" pkg install -forge %s"], ...
file, file);
else
error ("pkg: file not found: %s", file);
endif
endif
I added a new line 460 with
disp ('Hello World');
but this has no effect.
I also found that setting a breakpoint at line 458 (else) or line 459 (regexp)
both result in line 460 as the selected line.
Finally, reversing the lines so it reads
else
459 -> disp ('Hello World');
looks_like_pkg_name = regexp (file, '^[\w-]+$');
also has the same issue.
It would seem that there is something wrong with the line number counting of
the interpreter immediately following an else keyword.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57121>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57121] [GUI] debug pointer position off by one line, Philip Nienhuis, 2019/10/27
- [Octave-bug-tracker] [bug #57121] [GUI] debug pointer position off by one line, Torsten Lilge, 2019/10/27
- [Octave-bug-tracker] [bug #57121] [GUI] debug pointer position off by one line, Rik, 2019/10/27
- [Octave-bug-tracker] [bug #57121] [GUI] debug pointer position off by one line, Philip Nienhuis, 2019/10/27
- [Octave-bug-tracker] [bug #57121] [GUI] debug pointer position off by one line, Torsten Lilge, 2019/10/27
- [Octave-bug-tracker] [bug #57121] [GUI] debug pointer position off by one line,
Rik <=
- [Octave-bug-tracker] [bug #57121] lexer counts lines incorrectly for block comments that immediately follow line comments, John W. Eaton, 2019/10/28
- [Octave-bug-tracker] [bug #57121] lexer counts lines incorrectly for block comments that immediately follow line comments, John W. Eaton, 2019/10/28
- [Octave-bug-tracker] [bug #57121] lexer counts lines incorrectly for block comments that immediately follow line comments, Philip Nienhuis, 2019/10/28
- [Octave-bug-tracker] [bug #57121] lexer counts lines incorrectly for block comments that immediately follow line comments, Rik, 2019/10/28