@nosent goto line bug

65 views
Skip to first unread message

vitalije

unread,
Feb 15, 2015, 1:41:44 PM2/15/15
to leo-e...@googlegroups.com
For quite a long time I have noticed that command goto global line (Alt+G) doesn't work properly on @nosent files. It seems that it counts non-existing sentinel lines so it positions cursor few lines before the requested. The exact difference between required line number and found one depends on size of file and number of nodes, and also grows with required line number.

You can exhibit this by looking in attached Leo file. For example Alt+g 45 should position cursor on the declaration line of function temp7(a), but it positions cursor on line 39.

HTH Vitalije
nosent-goto-line-bug.leo

Edward K. Ream

unread,
Feb 15, 2015, 1:49:10 PM2/15/15
to leo-e...@googlegroups.com
On Sunday, February 15, 2015 at 12:41:44 PM UTC-6, vitalije wrote:
For quite a long time I have noticed that command goto global line (Alt+G) doesn't work properly on @nosent files. It seems that it counts non-existing sentinel lines so it positions cursor few lines before the requested. The exact difference between required line number and found one depends on size of file and number of nodes, and also grows with required line number.

You can exhibit this by looking in attached Leo file. For example Alt+g 45 should position cursor on the declaration line of function temp7(a), but it positions cursor on line 39.

Thanks for this report.  All these bugs reported against @nosent are a sign that it is being tested more thoroughly.  I'll look into this asap.

Edward

vitalije

unread,
Feb 16, 2015, 2:08:45 PM2/16/15
to leo-e...@googlegroups.com

Edward K. Ream

unread,
Feb 16, 2015, 2:09:14 PM2/16/15
to leo-editor
On Mon, Feb 16, 2015 at 1:08 PM, vitalije <vita...@gmail.com> wrote:

​Thanks.

Edward

Edward K. Ream

unread,
Feb 23, 2015, 6:34:45 AM2/23/15
to leo-e...@googlegroups.com


On Monday, February 16, 2015 at 1:08:45 PM UTC-6, vitalije wrote:

Fixed at rev 3ee6afd.  Let me know if you find any further problems.

EKR

vitalije

unread,
Feb 24, 2015, 4:21:10 AM2/24/15
to leo-e...@googlegroups.com

Fixed at rev 3ee6afd.  Let me know if you find any further problems.


I must admit it seemed to me that this bug was fixed, but here is another example that demonstrate error in goto-global-line.

In attached Leo file I just put one organizer node and goto-global-line can not find any requested line in file.

Vitalije
nosent-goto-line-bug.leo

vitalije

unread,
Feb 26, 2015, 4:28:16 AM2/26/15
to leo-e...@googlegroups.com
Again, I have read in another thread: "Leo 5.1 will be soon released".
Just to bring Edward's attention to this thread and the fact that this bug has not been fully fixed yet.
Vitalije.

Edward K. Ream

unread,
Feb 26, 2015, 8:19:10 AM2/26/15
to leo-editor
On Thu, Feb 26, 2015 at 3:28 AM, vitalije <vita...@gmail.com> wrote:
Again, I have read in another thread: "Leo 5.1 will be soon released".
Just to bring Edward's attention to this thread and the fact that this bug has not been fully fixed yet.

​Don't panic :-)  b1 won't go out the door until this bug is fixed.

EKR
Reply all
Reply to author
Forward
0 new messages