Stuck in infinite checking loop when using "de-DE" as Language instead of "de"
paulheg opened this issue · 3 comments
Describe the bug
Stuck in infinite checking loop when using "de-DE" instead of "de".
Steps to reproduce
Freshly install Ltex.
Set the ltex.language
setting to de-DE
.
Check a latex document -> infinite loop.
When switching to de
, and restarting ltex, everything works correctly.
Expected behavior
Checking done in
LTeX configuration
Please paste all configuration settings starting with ltex.
from your settings.json
. You can help us by temporarily removing some irrelevant settings from your settings.json
and see if the bug still occurs.
"ltex.language": "de-DE",
"LTeX Language Server" log file
[Info - 16:27:12] Starte ltex-ls ...
Okt. 05, 2023 4:27:15 NACHM. org.bsplines.ltexls.server.LtexLanguageServer initialize
INFORMATION: ltex-ls 15.2.0 - initializing...
Okt. 05, 2023 4:27:15 NACHM. org.bsplines.ltexls.tools.I18n setLocale
INFORMATION: Setting locale to 'de'
Okt. 05, 2023 4:27:15 NACHM. org.bsplines.ltexls.settings.SettingsManager$Companion logDifferentSettings
FEIN: Reinitializing LanguageTool due to different settings for language 'de': setting 'settings', old 'null', new 'non-null'
Okt. 05, 2023 4:27:16 NACHM. org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FEIN: Checking the following text in language 'de' via LanguageTool: "[censored for privacy reasons]"... (truncated to 100 characters)
Okt. 05, 2023 4:27:18 NACHM. org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FEIN: Obtained 6 rule matches
Okt. 05, 2023 4:27:18 NACHM. org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FEIN: Checking the following text in language 'de' via LanguageTool: " Apache Parquet \u2014 parquet.apache.org"
Okt. 05, 2023 4:27:18 NACHM. org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FEIN: Obtained 0 rule matches
Okt. 05, 2023 4:27:18 NACHM. org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FEIN: Checking the following text in language 'de' via LanguageTool: " Dummy0"
Okt. 05, 2023 4:27:18 NACHM. org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FEIN: Obtained 0 rule matches
Okt. 05, 2023 4:27:26 NACHM. org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FEIN: Checking the following text in language 'de' via LanguageTool: "[censored for privacy reasons]"... (truncated to 100 characters)
Okt. 05, 2023 4:27:26 NACHM. org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FEIN: Obtained 6 rule matches
Okt. 05, 2023 4:27:32 NACHM. org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FEIN: Checking the following text in language 'de' via LanguageTool: "[censored for privacy reasons]"... (truncated to 100 characters)
Okt. 05, 2023 4:27:32 NACHM. org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FEIN: Obtained 5 rule matches
Okt. 05, 2023 4:33:40 NACHM. org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint notify
INFORMATION: Unsupported notification method: $/setTrace
Okt. 05, 2023 4:33:40 NACHM. org.bsplines.ltexls.settings.SettingsManager$Companion logDifferentSettings
FEIN: Reinitializing LanguageTool due to different settings for language 'de-DE': setting 'settings', old 'null', new 'non-null'
Okt. 05, 2023 4:33:40 NACHM. org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FEIN: Checking the following text in language 'de-DE' via LanguageTool: " Apache Parquet \u2014 parquet.apache.org"
Okt. 05, 2023 4:33:41 NACHM. org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FEIN: Obtained 1 rule match
Okt. 05, 2023 4:33:41 NACHM. org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FEIN: Checking the following text in language 'de-DE' via LanguageTool: " Dummy0"
Okt. 05, 2023 4:33:41 NACHM. org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FEIN: Obtained 0 rule matches
Okt. 05, 2023 4:33:41 NACHM. org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FEIN: Checking the following text in language 'de-DE' via LanguageTool: "[censored for privacy reasons]"... (truncated to 100 characters)
Okt. 05, 2023 4:33:41 NACHM. org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FEIN: Obtained 17 rule matches
Okt. 05, 2023 4:33:44 NACHM. org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
WARNUNG: Unmatched cancel notification for request id 17
Okt. 05, 2023 4:33:45 NACHM. org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
WARNUNG: Unmatched cancel notification for request id 18
"LTeX Language Client" log file
2023-10-05T14:27:12.686Z Info: Setting LTeX UI language to 'de'.
2023-10-05T14:27:12.686Z Info: Loading i18n messages...
2023-10-05T14:27:12.687Z Info: Loading default i18n messages...
2023-10-05T14:27:12.688Z Info:
2023-10-05T14:27:12.688Z Info: ltex.ltex-ls.path not set.
2023-10-05T14:27:12.688Z Info: Searching for ltex-ls in '/home/paul/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib'...
2023-10-05T14:27:12.689Z Info: ltex-ls found in '/home/paul/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0'.
2023-10-05T14:27:12.689Z Info:
2023-10-05T14:27:12.689Z Info: Using ltex-ls from '/home/paul/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0'.
2023-10-05T14:27:12.689Z Info: Using Java bundled with ltex-ls as ltex.java.path is not set.
2023-10-05T14:27:12.690Z Info: Testing ltex-ls...
2023-10-05T14:27:12.690Z Info: Command: "/home/paul/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0/bin/ltex-ls"
2023-10-05T14:27:12.690Z Info: Arguments: ["--version"]
2023-10-05T14:27:12.690Z Info: env['JAVA_HOME']: undefined
2023-10-05T14:27:12.690Z Info: env['JAVA_OPTS']: "-Xms64m -Xmx512m"
2023-10-05T14:27:12.991Z Info: Test successful!
2023-10-05T14:27:12.991Z Info:
2023-10-05T14:27:12.992Z Info: Starte ltex-ls ...
2023-10-05T14:27:12.992Z Info: Command: "/home/paul/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0/bin/ltex-ls"
2023-10-05T14:27:12.992Z Info: Arguments: []
2023-10-05T14:27:12.992Z Info: env['JAVA_HOME']: undefined
2023-10-05T14:27:12.992Z Info: env['JAVA_OPTS']: "-Xms64m -Xmx512m"
2023-10-05T14:27:12.992Z Info:
Version information
List here the version information of the relevant software.
- Operating system: Linux (which distribution/version), macOS xx.xx, or Windows xx
- VS Code: 1.83.0
- vscode-ltex: 13.1.0
Can confirm, I had the same issue and could resolve it with your suggestion. Interestingly, the infinite checking loop seemed to influence the behaviour of at least one other extension, namely James-Yu/LaTeX-Workshop. LaTeX Workshop stopped providing suggestions via IntelliSense when the infinite checking loop was running.
I am currently running VS Code on Ubuntu 22.04, tho two weeks ago on Windows 11 I had no issues with de-DE
as setting for ltex.language
.
This issue is also present on macOS when using de-DE
as language and has the same log outputs.
Versions are: VS Code 1.91.0, ltex-ls 15.2.0, ltex-13.1.0