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

High CPU use and multiple request timeouts while editing in a directory with many tex files #1005

Open
gustafla opened this issue Jan 27, 2024 · 2 comments
Labels
needs more info Issue requires more information from poster

Comments

@gustafla
Copy link

I'm running texlab 5.12.2 (texlab-git AUR package) with helix 23.10.

My configuration is

[language-server.texlab]
config.texlab.build.onSave = true
config.texlab.build.args = ["-pdf", "%f"]

The problem starts when I'm editing a .tex file in a working directory with about 80 other unrelated .tex files. LSP requests just pile up, CPU fan is going wild and latency for builds becomes very high. Messages about requests timing out start to appear. I don't have much clue to what actually causes this.

@gustafla gustafla changed the title High CPU use and multiple request timeouts while editing. High CPU use and multiple request timeouts while editing Jan 27, 2024
@gustafla gustafla changed the title High CPU use and multiple request timeouts while editing High CPU use and multiple request timeouts while editing in a directory with many tex files Jan 27, 2024
@pfoerster
Copy link
Member

@gustafla The problem starts when I'm editing a .tex file in a working directory with about 80 other unrelated .tex files.

Probably, the 80 files in the same directory are the problem. Is every one of these files self-contained or do some of the files reference each other.

Messages about requests timing out start to appear.

Probably, publishDiagnostics is the culprit. It will spam because the server resends 80 notifications after every edit.

@pfoerster pfoerster added the needs more info Issue requires more information from poster label Feb 2, 2024
@maikol-solis
Copy link

Could it be related to #1028?

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

3 participants