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

Logs not parsed for warnings? #426

Closed
coxackie opened this issue May 20, 2021 · 5 comments
Closed

Logs not parsed for warnings? #426

coxackie opened this issue May 20, 2021 · 5 comments

Comments

@coxackie
Copy link

I opened latex-lsp/texlab-vscode#426, but on second thoughts I am not sure whether it is an issue with the extension or the server. Maybe someone can take a look at other implementations (like neovim lsp). In short:
Using 3.0.0 versions with settings

    "texlab.build.args": [
        "-lualatex",
        "-interaction=nonstopmode",
        "-synctex=1",
        "%f"
    ],
    "texlab.forwardSearch.executable": "zathura",
    "texlab.forwardSearch.args": [
        "--synctex-forward",
        "%l:1:%f",
        "%p"
    ],
    "texlab.chktex.onOpenAndSave": false,

Note that I am using lualatex. Here is a minimal tex file:

\documentclass{article}

\begin{document}

\begin{equation}\label{eq:one}
  a=b
\end{equation}
Equation (\ref{eq:ones}) gives that $a=b$.
    
\end{document}

Notice the mistake in using eq:ones instead of eq:one. When I build, everything seems OK, and there are no warnings. If I go to the log file, there is a clear

LaTeX Warning: Reference `eq:ones' on page 1 undefined on input line 9.

[1

{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./Test.aux)

LaTeX Warning: There were undefined references.

)

It appears that the parser is missing this from the log file.

@quid256
Copy link

quid256 commented May 21, 2021

I'm seeing the same issue while using neovim, so it seems that it's not extension-specific?

Also, I tried to hook into the publishDiagnostics messages coming from texlab and it appears that they continue sending warning diagnostics to my editor even after those warnings are no longer valid, as well as having the behavior that you mention (i.e. not sending warnings when a new warning is introduced)

I also tried using both tectonic and pdflatex, and it doesn't seem that either one works.

@wrvsrx
Copy link

wrvsrx commented May 22, 2021

It seems that this happens after updating texlab to 3.0.0.

@quid256
Copy link

quid256 commented May 22, 2021

I tried compiling from source, and it seems that the changes in a7ea0d5 resolved the issue for me.

Would be great if there could maybe be a bugfix release of some kind so that the stable version of texlab wouldn't have this issue?

@pfoerster
Copy link
Member

texlab 3.0.1 has been released now. Can you try it out to see if the problem was fixed?

@wrvsrx
Copy link

wrvsrx commented May 22, 2021

texlab 3.0.1 has been released now. Can you try it out to see if the problem was fixed?

Yes, Thank you!

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

No branches or pull requests

4 participants