Closed Nerixyz closed 1 month ago
Confirmed. Thank you for opening the issue. I will publish vscode-ltex-plus 15.0.1 with ltex-ls-plus 17.01
15.0.1. was published in the VS Code marketplace a few minutes ago. I will check in to upcoming days what is wrong with LTeX+ LS 18.1.0
I guess I found the issue. LTeX+ LS 18.1 requires more memory and the default maximum memory is 512 megabytes, which is quite low. Most computers these days have 8 gigabytes memory or more, so setting the maximum to 2 gigabytes sounds reasonable for me.
Before I publish the next version with LTeX+ LS 18.1, I want to be sure that the memory limit is the actual reason. @Nerixyz Can you do a short test, please? Of course, everyone else who is reading this issue is invited to test and give a feedback.
Install version 15.0.0 again by clicking on "Install Specific Version"
Set the setting "ltex.java.maximumHeapSize" to 2048
Restart VS Code
Check if everything is working
The memory consumption of the Java process on my desktop computer and laptop is between 900 MB and 1300 MB, depending on the size of the text and the amount of files. With "ltex.java.maximumHeapSize" set to 2048, it's working for both my desktop computer with 64 GB of memory (Windows 10) and my laptop with 8 GB of memory (Windows 11).
@Nerixyz Can you do a short test, please?
I can confirm this works with more memory. It's sitting at about 900 MiB for me.
Most computers these days have 8 gigabytes memory or more, so setting the maximum to 2 gigabytes sounds reasonable for me.
On my Laptop with 8 GiB RAM, this is hitting the limits. I'm using clangd, which is memory hungry too (often at around 4 GiB), but I'd consider it an existential extension (i.e. something I can't live without). It's not really an issue with this extension, but more of an issue with LanguageTool, I'd guess.
I found the extension cannot doing spelling check now.
Describe the bug
Upon opening a project with a long markdown file, the language server sits at about 60% CPU (with 600 MiB RAM) - this wasn't the case in earlier versions (i.e. before 15.0).
Steps to reproduce
Expected behavior
The document is checked (this may take some time, but not several minutes and shouldn't consume 60% CPU).
Sample document
(see above)
LTeX+ configuration
Default config.
"LTeX+ Language Server" log file
"LTeX+ Language Client" log file
Version information List here the version information of the relevant software.