LiveTikZ icon indicating copy to clipboard operation
LiveTikZ copied to clipboard

Feature suggestion: display actual line number

Open stefan2904 opened this issue 4 years ago • 2 comments

To debug errors, it would be handy to display in which line the error occurred. Since the editor is merging a figure with its template, the line numbers displayed in the editor are off.

Example: In a template the marker <> is at line 40, but the error is in line 2 of the edited file, so LaTeX displays an error in l.41.

image Selection_869e0f image

Not sure how easy it is to fake the line number in KatePart, though.

Bonus: Its probably also possible to parse the log and highlight the line in question. :-)

stefan2904 avatar Apr 22 '20 18:04 stefan2904

Maybe there is a better way to solve this. How are you doing it? Kopfrechnen? :-)

stefan2904 avatar Apr 22 '20 19:04 stefan2904

To be honest, I've never looked at the line number in the log output, I wasn't even aware that it includes a line number. I looked at the KatePart API, it does not seem to provide a feature to change the line numbers, only to show/hide them... So the option with parsing the log and highlighting the line seems more realistic (there is an API to mark lines).

I would be happy to merge a pull request if you want to implement that, not sure when I find time to look into that.

misc0110 avatar Apr 23 '20 12:04 misc0110