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

Diagnostics with chktex not showing exclusively on Windows since 5.0 release #835

Closed
krassowski opened this issue Jan 2, 2023 · 3 comments
Labels
needs more info Issue requires more information from poster

Comments

@krassowski
Copy link

Thank you for the recent 5.0 release 🎉

Downstream in jupyterlab-lsp we have a CI job which runs integration tests with chktex diagnostics. It works fine with 4.3.2 on Ubuntu/Mac/Windows and with 5.0.0 on Ubuntu/Mac but fails on Windows (related to jupyter-lsp/jupyterlab-lsp#894).

I looked at the changelog but did not see anything Windows-specific. Would you have any suggestions what to look at to fix/debug this?

@pfoerster
Copy link
Member

It works fine with 4.3.2 on Ubuntu/Mac/Windows and with 5.0.0 on Ubuntu/Mac but fails on Windows (related to jupyter-lsp/jupyterlab-lsp#894).

Does it always fail or only sometimes? When I tried debugging, I encountered a crash once in the parsing logic but I did not find out which line caused the error. Adding a log statement did not help to find the cause as it never crashed again. I could add a safe guard there to prevent this crash in the future but I am not sure if it is causing the issue.

I looked at the changelog but did not see anything Windows-specific.

The only notable thing that has changed is the way we pass the file to chktex. v4.3.2 uses a temp file, v5.0.0 uses stdin.

Would you have any suggestions what to look at to fix/debug this?

The stderr log of the server might be helpful to find out if a panic causes the issue.

@pfoerster pfoerster added the bug Something isn't working label Jan 2, 2023
@pfoerster
Copy link
Member

pfoerster commented Mar 12, 2023

@krassowski Is there an update on this issue?

Would you have any suggestions what to look at to fix/debug this?

When are you updating the configuration during the test? Before or after opening the example file? If you are setting the configuration after opening the file, then the server won't run ChkTeX as the default config does not enable ChkTeX.

EDIT: Another relevant thing: does the example.tex file actually exist on the disk? texlab passes the working directory of the file (in this case, it's the parent directory) to the ChkTeX and returns an error if it does not exist resulting in no diagnostics being reported.

@pfoerster pfoerster added needs more info Issue requires more information from poster and removed bug Something isn't working labels Mar 12, 2023
@krassowski
Copy link
Author

Thanks for checking! Yes it is now working all right with version 5.4.0 (jupyter-lsp/jupyterlab-lsp#894 (comment)). Looking at logs it was also working with 5.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants