Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature suggestion: display actual line number #11

Open
stefan2904 opened this issue Apr 22, 2020 · 2 comments
Open

Feature suggestion: display actual line number #11

stefan2904 opened this issue Apr 22, 2020 · 2 comments

Comments

@stefan2904
Copy link

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
Copy link
Author

stefan2904 commented Apr 22, 2020

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

@misc0110
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants