On Tue, 28 Jan 2020 at 11:46, nkp <nkp...@gmail.com> wrote: > When the Gcode contains subroutines, > chaotic highlighting of the active line is observed. > (I"m using hal_sourceview.py ) > The reason is clear - lcnc highlights the line number from the "main" code
Is this in your own GUI, or one of the distributed ones? I am not clear if hal_sourceview automatically highlights the line, or if the enclosing GUI needs to tell it to. https://github.com/LinuxCNC/linuxcnc/blob/master/lib/python/gladevcp/hal_sourceview.py#L134 seems to be the only place that hal_sourceview finds a highlight line for itself. And I think that is only called during file loading? The issue is that something somewhere needs to check the level of subroutine nesting before deciding to update the highlighted line. But I am not sure how available that information is. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users