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

Stuck in infinite checking loop when using "de-DE" as Language instead of "de" #856

Open
paulheg opened this issue Oct 5, 2023 · 1 comment
Labels
1-bug 🐛 Issue type: Bug report (something isn't working as expected) 2-unconfirmed Issue status: Bug that needs to be reproduced (all new bugs have this label)

Comments

@paulheg
Copy link

paulheg commented Oct 5, 2023

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
@paulheg paulheg added 1-bug 🐛 Issue type: Bug report (something isn't working as expected) 2-unconfirmed Issue status: Bug that needs to be reproduced (all new bugs have this label) labels Oct 5, 2023
@kevinbbbb
Copy link

kevinbbbb commented Feb 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-bug 🐛 Issue type: Bug report (something isn't working as expected) 2-unconfirmed Issue status: Bug that needs to be reproduced (all new bugs have this label)
Projects
None yet
Development

No branches or pull requests

2 participants