-
Notifications
You must be signed in to change notification settings - Fork 539
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
Bugs in detection of "Problems" from pdftex output #730
Comments
An additional edge case:
However, if it was formatted like the following, then it would show up:
|
A minimal example would really help to analyze what is wrong with the parser and to test new regex. I do not think we can work on the problem without being able to reproduce it. |
Ok, I've attached a .tex and .bib file that should demonstrate the issues. Some further insight I gained while producing the example:
I hope that helps! Please let me know if you need further information. Compilation command: pdflatex, bibtex, pdflatex, pdflatex
Example showing the warnings under an invalid file: minimal working example: |
Thanks for the example. I will look into it. |
Sorry for an off-topic plugin. I have been busy working on my IRL job application and ddls in the past few months. May have to take an AFK for few weeks. Will turn back to the extension right after that! @jlelong |
Related to James-Yu#730.
Consider log lines finishing in '-' as truncated lines. So, wrap them up. This is related James-Yu#730 (Issue 3).
The first line after a box warning is just garbage. So, we drop it as it may contain '(' or ')', which interfere with the computation of the Latex files stack. It is related to James-Yu#730 (Issue 2).
The main problem in parsing
Currently, LaTeX-Workshop tries to recover the unwrapped output. In cas there are future problems related to this, here is a summary of what i changed:
|
Description
The "Problems" tab in VSCode displays errors/warnings/info from the console output of pdfTex. I've discovered some situations where this is not correctly determined, which I assume is down to bugs in the regex expressions in /src/components/parser.ts (but I could be wrong!)
The first issue is to do with LaTeX Package Warnings. These seem to be printed to the console with a double space between Package and Warning (as in: "Package Warning") and do not show up at all in the "problems" tab. I believe this is a recent regression as they used to show up (but I'm not sure when it happened because I've been lax in updating my VSCode and Extensions).
If an underfull/overfull warning ends with a "-", then it seems to ignore all other warnings/errors/info until the next page. I provide an example of some of the console output that causes this below.
Log messages
LaTeX Workshop Output
Developer Tools Console
Nothing of importanceHow to reproduce
I haven't produced a minimal working example to reproduce this and I'd rather not copy paste the contents of my LaTeX file as I don't want to share the content right now.
However, if this is not enough information for you to reproduce I can put the time in to produce a minimal working example.
Expected behavior
The two warnings that follow the underfull notice should show up in the problems tab
Actual behavior
The two warnings that follow the undefull notice do not show up in the problems tab.
Additional Information
I'm using pdfTex Version 3.14159265-2.6-1.40.19 (MikTeX 2.9.6630 64-bit) on Windows 10.
I'm using LaTeX Workshop v5.6.0
I'm using Visual Studio Code 1.23.1
The text was updated successfully, but these errors were encountered: