-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
TeXiFy not able to determine correct file/lineno from error log #3847
Comments
I updated but still get the same error. Does your log show the following line?
Or similar? It seems plausible that I am getting that log line as an artifact of my particular tex installation, in particular, because of whatever way the fonts were generated. I'm guessing it throws off the "file stack" in the part of the code that keeps track of which file each error message refers to. |
You're right, I can reproduce the problem if I just input your log. Thanks for the example! |
Meanwhile, is there any short-term fix that I can use to work around this problem with the current version? Maybe some customizable regular expression parameter to TeXiFy that I could change? |
No, unfortunately the problem is not as easily fixed as with a regex change. The problem is related to how we implemented live parsing of the log: line by line but with a buffer of two lines, which is problematic if the error spans 3 lines, or if we need 3 lines to determine what belongs to a file path (a line could be broken up by the default line length). |
Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version
PyCharm 2024.1.4 (Professional Edition)
Build #PY-241.18034.82, built on June 24, 2024
Operating System
MacOS
TeXiFy IDEA version
0.9.7
What I did (steps to reproduce)
compiled a latex file that had an undefined command,
clicked on the error message in the "Log Messages" subsection of the console output.
Minimal example to reproduce the problem
Expected behavior
Pycharm should move the cursor to the line with the error.
Actual behavior
Pycharm doesn't move the cursor to the line with the error.
I'm assuming that the problem is with the parsing of the log. I'm guessing the line
[1{/usr/local/texlive/2024/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
is somehow causing TeXiFy to lose track of the file that the error message is in. More specifically, when the log contains the following lines preceding the error, it doesn't work:
When the log contains these lines (which happens for me if all text fits on a page), it does work:
(if applicable) The full stacktrace of the exception thrown
The text was updated successfully, but these errors were encountered: