Closed kellertuer closed 4 months ago
I have made a test and I confirm that when latex-workshop.linting.chktex.enabled
is unchecked, chktex
is not called. When chktex
is called, you should find in your logs something like
[17:14:02.555][Linter] ChkTeX lints root %WS1%/empty.tex .
[17:14:02.556][Linter][ChkTeX] Linter for ChkTeX command The command is chktex:["-wall","-e16","-n1","-n6","-n12","-n19","-n21","-n22","-n24","-n25","-n30","-n37","-n44","-n46","-q","-n45","-n36","-n2","-n3","-l","%WS1%/.chktexrc","-f%f:%l:%c:%d:%k:%n:%m\n","%WS1%/empty.tex"].
I am pretty sure the warning comes from your configuration of chktex
. Do you have a .chktexrc
file somewhere?
Hm. No nothing. and It also only started showing up (but something like every other second!) since the update. I never set up anything besides enabling it in the extension. so there is not .chktexrc
file or such.
I have just installed TexLive 2024 and I confirm that the default chktex configuration has an issue. See https://savannah.nongnu.org/bugs/index.php?65033 No new version has been released so far. The latest release seems to go back to 2022.
Yet, unchecking latex-workshop.linting.chktex.enabled
does disable chktex
.
Thanks for the follow up. For me it did not disable the call it seems, I really tried several times. But I can check back; my impression was that the chutex was still called, maybe not for this one document open but for some other reasons and still caused the error.
Ah, I just saw I also have the LaTeX extension running (disabled that, not sure why I had that) – that still called chktex. So deactivating works and the error is gone, but it would of course be nice to have linting back at some time ;)
Even with the current warning message of chktex
about the invalid regex, LaTeX-Workshop is able to parse its output and displays the correct linting messagesat least on my configuration. Can you try again now that you have disabled the LaTeX extension ?
Ah nice, indeed, that works again. Now it would just be nice to exclude a few (46 – use ( ) instead if $ $ for example). But that is maybe something for an own configfile. Will check
See https://github.com/James-Yu/LaTeX-Workshop/wiki/Linters#chktex To tweak the warnings displayed by chktex https://github.com/James-Yu/LaTeX-Workshop/wiki/Linters#latex-workshoplintingchktexexecargs
Nice, thanks, will do :)
Pre-checks*
Environment*
The Issue*
I updated my TeXLive to 2024 today and since then on every save
chktex
errors withwhich I am not sure where it is from, but I thought I would just deactivate it for a while. So I Unchecked
But the error still appears on every save.
Reproduction Steps
Expected Behavior
chktex
would not run if not enabledLogs
LaTeX Workshop Output*
Developer Tools Console