Performance issues with magic comments since 7.1.0 #124
Labels
1-bug 🐛
Issue type: Bug report (something isn't working as expected)
2-confirmed
Issue status: Confirmed, reproducible bug in LTeX
3-fixed
Issue resolution: Issue has been fixed on the develop branch
Milestone
Describe the bug
Since version 7.1.0 of LTeX I'm experiencing performance issues when using LTeX with default settings (i.e.
language=en-US
) and word2vec model foren
but using the magic command% LTeX: language=de-DE
.This brings the OpenJDK Platform binary (
java.exe
) in the Windows Task manager to high CPU usages (50% for some time even after VS Code is closed) and the input to VS Code lags significantly.Steps to reproduce
Steps to reproduce the behavior:
en-US
) and set a directory for the word2vec model% LTeX: language=de-DE
Quick fix...
leads to performance issuesExpected behavior
Smooth keyboard input and fast suggestion for Quick fixes.
Sample document
LTeX configuration
Please paste all configuration settings starting with
ltex.
from yoursettings.json
. You can help us by temporarily removing some irrelevant settings from yoursettings.json
and see if the bug still occurs."LTeX Language Server" log file
First, reproduce the bug. Then, go to
View
→Output
and selectLTeX Language Server
in the drop-down list. Paste this log here:"LTeX Language Client" log file
First, set the
ltex.trace.server
setting in yoursettings.json
to"verbose"
. Then, reload the VS Code window and reproduce the bug. Go toView
→Output
and selectLTeX Language Client
in the drop-down list. Paste this log here (note: it will contain your checked document):Version information
List here the version information of the relevant software.
Additional context/information
You can add any other context or information about the problem here.
Removing the directory for the word2vec model in the
settings.json
(=disabling word2vec for all languages) fixes the performance issue. Note, that my folderC:\LanguageTool\word2vec
only includes another folderen
, i.e. I only downloaded the English word2vec model from https://languagetool.org/download/word2vec/.The text was updated successfully, but these errors were encountered: