vscode-ltex: LTeX checking seems to be stuck when certain text is in file with de-de as selected language

Describe the bug Sometimes, seems to be when certain text is pasted, LTeX seems to be checking indefinitely. I noticed this behavior just with de-de as the default language…

Steps to reproduce Currently when the following text is pasted in a TeX file, LTeX seems to be stuck:

  1. Set the language to de-de
  2. paste "EBenfalls Wird "
  3. It should be checking indefinitely

Expected behavior Report the correct mistakes

Sample document If the bug occurs for a specific document (e.g. LaTeX), please paste it here. If your document is very long or confidential, please create and attach a smaller example for which the bug still occurs so that we can reproduce it.

\documentclass{article}

\begin{document}
EBenfalls Wird 
\end{document}

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.additionalRules.motherTongue": "de-DE",

“LTeX Language Server” log file First, reproduce the bug. Then, go to ViewOutput and select LTeX Language Server in the drop-down list. Paste this log here:

[Info  - 9:32:41 PM] Starting ltex-ls...
Jan 09, 2022 9:32:43 PM org.bsplines.ltexls.server.LtexLanguageServer initialize
INFO: ltex-ls 15.2.0 - initializing...
Jan 09, 2022 9:32:43 PM org.bsplines.ltexls.tools.I18n setLocale
INFO: Setting locale to 'en'
Jan 09, 2022 9:32:43 PM org.bsplines.ltexls.settings.SettingsManager$Companion logDifferentSettings
FINE: Reinitializing LanguageTool due to different settings for language 'de-DE': setting 'settings', old 'null', new 'non-null'
Jan 09, 2022 9:32:45 PM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINER: Checking the following text in language 'de-DE' via LanguageTool: "\n\nEBenfalls Wird "
Jan 09, 2022 9:32:45 PM org.bsplines.ltexls.languagetool.LanguageToolJavaInterface logResultCache
FINER: matchesCache.size() = 0
Jan 09, 2022 9:32:45 PM org.bsplines.ltexls.languagetool.LanguageToolJavaInterface logResultCache
FINER: remoteMatchesCache.size() = 0
Jan 09, 2022 9:32:45 PM org.bsplines.ltexls.languagetool.LanguageToolJavaInterface logResultCache
FINER: sentenceCache.size() = 0
Jan 09, 2022 9:32:45 PM org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint notify
INFO: Unsupported notification method: $/setTrace
Jan 09, 2022 9:32:46 PM org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint notify
INFO: Unsupported notification method: $/setTrace
Jan 09, 2022 9:32:48 PM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINER: Checking done in 2985ms
Jan 09, 2022 9:32:48 PM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match

“LTeX Language Client” log file First, set the ltex.trace.server setting in your settings.json to "verbose". Then, reload the VS Code window and reproduce the bug. Go to ViewOutput and select LTeX Language Client in the drop-down list. Paste this log here (note: it will contain your checked document):

2022-01-09T20:32:40.797Z Info: Setting LTeX UI language to 'en-us'.
2022-01-09T20:32:40.797Z Info: Loading i18n messages...
2022-01-09T20:32:40.797Z Info: Loading default i18n messages...
2022-01-09T20:32:40.799Z Info: 
2022-01-09T20:32:40.799Z Info: ltex.ltex-ls.path not set.
2022-01-09T20:32:40.799Z Info: Searching for ltex-ls in '/home/josh/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib'...
2022-01-09T20:32:40.800Z Info: ltex-ls found in '/home/josh/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0'.
2022-01-09T20:32:40.800Z Info: 
2022-01-09T20:32:40.800Z Info: Using ltex-ls from '/home/josh/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0'.
2022-01-09T20:32:40.800Z Info: Using Java bundled with ltex-ls as ltex.java.path is not set.
2022-01-09T20:32:40.803Z Info: Testing ltex-ls...
2022-01-09T20:32:40.803Z Info:   Command: "/home/josh/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0/bin/ltex-ls"
2022-01-09T20:32:40.803Z Info:   Arguments: ["--version"]
2022-01-09T20:32:40.803Z Info:   env['JAVA_HOME']: undefined
2022-01-09T20:32:40.803Z Info:   env['JAVA_OPTS']: "-Xms256m -Xmx1024m"
2022-01-09T20:32:41.158Z Info: Test successful!
2022-01-09T20:32:41.160Z Info: 
2022-01-09T20:32:41.167Z Info: Starting ltex-ls...
2022-01-09T20:32:41.167Z Info:   Command: "/home/josh/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0/bin/ltex-ls"
2022-01-09T20:32:41.167Z Info:   Arguments: []
2022-01-09T20:32:41.167Z Info:   env['JAVA_HOME']: undefined
2022-01-09T20:32:41.167Z Info:   env['JAVA_OPTS']: "-Xms256m -Xmx1024m"
2022-01-09T20:32:41.167Z Info: 
[Trace - 9:32:41 PM] Sending request 'initialize - (0)'.
Params: {
    "processId": 25234,
    "clientInfo": {
        "name": "Visual Studio Code",
        "version": "1.63.2"
    },
    "locale": "en-us",
    "rootPath": "/home/josh/Latex",
    "rootUri": "file:///home/josh/Latex",
    "capabilities": {
        "workspace": {
            "applyEdit": true,
            "workspaceEdit": {
                "documentChanges": true,
                "resourceOperations": [
                    "create",
                    "rename",
                    "delete"
                ],
                "failureHandling": "textOnlyTransactional",
                "normalizesLineEndings": true,
                "changeAnnotationSupport": {
                    "groupsOnLabel": true
                }
            },
            "didChangeConfiguration": {
                "dynamicRegistration": true
            },
            "didChangeWatchedFiles": {
                "dynamicRegistration": true
            },
            "symbol": {
                "dynamicRegistration": true,
                "symbolKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25,
                        26
                    ]
                },
                "tagSupport": {
                    "valueSet": [
                        1
                    ]
                }
            },
            "codeLens": {
                "refreshSupport": true
            },
            "executeCommand": {
                "dynamicRegistration": true
            },
            "configuration": true,
            "workspaceFolders": true,
            "semanticTokens": {
                "refreshSupport": true
            },
            "fileOperations": {
                "dynamicRegistration": true,
                "didCreate": true,
                "didRename": true,
                "didDelete": true,
                "willCreate": true,
                "willRename": true,
                "willDelete": true
            }
        },
        "textDocument": {
            "publishDiagnostics": {
                "relatedInformation": true,
                "versionSupport": false,
                "tagSupport": {
                    "valueSet": [
                        1,
                        2
                    ]
                },
                "codeDescriptionSupport": true,
                "dataSupport": true
            },
            "synchronization": {
                "dynamicRegistration": true,
                "willSave": true,
                "willSaveWaitUntil": true,
                "didSave": true
            },
            "completion": {
                "dynamicRegistration": true,
                "contextSupport": true,
                "completionItem": {
                    "snippetSupport": true,
                    "commitCharactersSupport": true,
                    "documentationFormat": [
                        "markdown",
                        "plaintext"
                    ],
                    "deprecatedSupport": true,
                    "preselectSupport": true,
                    "tagSupport": {
                        "valueSet": [
                            1
                        ]
                    },
                    "insertReplaceSupport": true,
                    "resolveSupport": {
                        "properties": [
                            "documentation",
                            "detail",
                            "additionalTextEdits"
                        ]
                    },
                    "insertTextModeSupport": {
                        "valueSet": [
                            1,
                            2
                        ]
                    }
                },
                "completionItemKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25
                    ]
                }
            },
            "hover": {
                "dynamicRegistration": true,
                "contentFormat": [
                    "markdown",
                    "plaintext"
                ]
            },
            "signatureHelp": {
                "dynamicRegistration": true,
                "signatureInformation": {
                    "documentationFormat": [
                        "markdown",
                        "plaintext"
                    ],
                    "parameterInformation": {
                        "labelOffsetSupport": true
                    },
                    "activeParameterSupport": true
                },
                "contextSupport": true
            },
            "definition": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "references": {
                "dynamicRegistration": true
            },
            "documentHighlight": {
                "dynamicRegistration": true
            },
            "documentSymbol": {
                "dynamicRegistration": true,
                "symbolKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25,
                        26
                    ]
                },
                "hierarchicalDocumentSymbolSupport": true,
                "tagSupport": {
                    "valueSet": [
                        1
                    ]
                },
                "labelSupport": true
            },
            "codeAction": {
                "dynamicRegistration": true,
                "isPreferredSupport": true,
                "disabledSupport": true,
                "dataSupport": true,
                "resolveSupport": {
                    "properties": [
                        "edit"
                    ]
                },
                "codeActionLiteralSupport": {
                    "codeActionKind": {
                        "valueSet": [
                            "",
                            "quickfix",
                            "refactor",
                            "refactor.extract",
                            "refactor.inline",
                            "refactor.rewrite",
                            "source",
                            "source.organizeImports"
                        ]
                    }
                },
                "honorsChangeAnnotations": false
            },
            "codeLens": {
                "dynamicRegistration": true
            },
            "formatting": {
                "dynamicRegistration": true
            },
            "rangeFormatting": {
                "dynamicRegistration": true
            },
            "onTypeFormatting": {
                "dynamicRegistration": true
            },
            "rename": {
                "dynamicRegistration": true,
                "prepareSupport": true,
                "prepareSupportDefaultBehavior": 1,
                "honorsChangeAnnotations": true
            },
            "documentLink": {
                "dynamicRegistration": true,
                "tooltipSupport": true
            },
            "typeDefinition": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "implementation": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "colorProvider": {
                "dynamicRegistration": true
            },
            "foldingRange": {
                "dynamicRegistration": true,
                "rangeLimit": 5000,
                "lineFoldingOnly": true
            },
            "declaration": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "selectionRange": {
                "dynamicRegistration": true
            },
            "callHierarchy": {
                "dynamicRegistration": true
            },
            "semanticTokens": {
                "dynamicRegistration": true,
                "tokenTypes": [
                    "namespace",
                    "type",
                    "class",
                    "enum",
                    "interface",
                    "struct",
                    "typeParameter",
                    "parameter",
                    "variable",
                    "property",
                    "enumMember",
                    "event",
                    "function",
                    "method",
                    "macro",
                    "keyword",
                    "modifier",
                    "comment",
                    "string",
                    "number",
                    "regexp",
                    "operator"
                ],
                "tokenModifiers": [
                    "declaration",
                    "definition",
                    "readonly",
                    "static",
                    "deprecated",
                    "abstract",
                    "async",
                    "modification",
                    "documentation",
                    "defaultLibrary"
                ],
                "formats": [
                    "relative"
                ],
                "requests": {
                    "range": true,
                    "full": {
                        "delta": true
                    }
                },
                "multilineTokenSupport": false,
                "overlappingTokenSupport": false
            },
            "linkedEditingRange": {
                "dynamicRegistration": true
            }
        },
        "window": {
            "showMessage": {
                "messageActionItem": {
                    "additionalPropertiesSupport": true
                }
            },
            "showDocument": {
                "support": true
            },
            "workDoneProgress": true
        },
        "general": {
            "regularExpressions": {
                "engine": "ECMAScript",
                "version": "ES2020"
            },
            "markdown": {
                "parser": "marked",
                "version": "1.1.0"
            }
        }
    },
    "initializationOptions": {
        "locale": "en",
        "customCapabilities": {
            "workspaceSpecificConfiguration": true
        }
    },
    "trace": "verbose",
    "workspaceFolders": [
        {
            "uri": "file:///home/josh/Latex",
            "name": "Latex"
        }
    ]
}


[Trace - 9:32:43 PM] Received response 'initialize - (0)' in 2036ms.
Result: {
    "capabilities": {
        "textDocumentSync": 1,
        "completionProvider": {},
        "codeActionProvider": {
            "codeActionKinds": [
                "quickfix.ltex.acceptSuggestions"
            ]
        },
        "executeCommandProvider": {
            "commands": [
                "_ltex.checkDocument",
                "_ltex.getServerStatus"
            ]
        }
    }
}


[Trace - 9:32:43 PM] Sending notification 'initialized'.
Params: {}


[Trace - 9:32:43 PM] Sending notification 'workspace/didChangeConfiguration'.
Params: {
    "settings": {
        "ltex": {
            "enabled": [
                "context",
                "context.tex",
                "html",
                "latex",
                "markdown",
                "org",
                "restructuredtext",
                "rsweave"
            ],
            "language": "de-DE",
            "dictionary": {},
            "disabledRules": {},
            "enabledRules": {},
            "hiddenFalsePositives": {},
            "bibtex": {
                "fields": {}
            },
            "latex": {
                "commands": {},
                "environments": {}
            },
            "markdown": {
                "nodes": {}
            },
            "configurationTarget": {
                "dictionary": "workspaceFolderExternalFile",
                "disabledRules": "workspaceFolderExternalFile",
                "hiddenFalsePositives": "workspaceFolderExternalFile"
            },
            "additionalRules": {
                "enablePickyRules": true,
                "motherTongue": "de-DE",
                "languageModel": "",
                "neuralNetworkModel": "",
                "word2VecModel": ""
            },
            "languageToolHttpServerUri": "",
            "languageToolOrg": {
                "username": "",
                "apiKey": ""
            },
            "ltex-ls": {
                "path": "",
                "logLevel": "finer",
                "languageToolHttpServerUri": "",
                "languageToolOrgUsername": "",
                "languageToolOrgApiKey": ""
            },
            "java": {
                "path": "",
                "initialHeapSize": 256,
                "maximumHeapSize": 1024
            },
            "sentenceCacheSize": 6000,
            "completionEnabled": true,
            "diagnosticSeverity": "information",
            "checkFrequency": "edit",
            "clearDiagnosticsWhenClosingFile": true,
            "statusBarItem": true,
            "trace": {
                "server": "verbose"
            }
        }
    }
}


[Trace - 9:32:43 PM] Sending notification 'textDocument/didOpen'.
Params: {
    "textDocument": {
        "uri": "file:///home/josh/Latex/testmain.tex",
        "languageId": "latex",
        "version": 1,
        "text": "\\documentclass{article}\n\n\\begin{document}\nEBenfalls Wird \n\\end{document}"
    }
}


[Trace - 9:32:43 PM] Sending request 'textDocument/codeAction - (1)'.
Params: {
    "textDocument": {
        "uri": "file:///home/josh/Latex/testmain.tex"
    },
    "range": {
        "start": {
            "line": 4,
            "character": 14
        },
        "end": {
            "line": 4,
            "character": 14
        }
    },
    "context": {
        "diagnostics": []
    }
}


[Trace - 9:32:43 PM] Received request 'window/workDoneProgress/create - (1)'.
Params: {
    "token": "{\"uri\":\"file:///home/josh/Latex/testmain.tex\",\"operation\":\"checkDocument\",\"uuid\":\"8bbbb3df-29b3-5ccf-1edc-020693676938\"}"
}


[Trace - 9:32:43 PM] Sending response 'window/workDoneProgress/create - (1)'. Processing request took 1ms
No result returned.


[Trace - 9:32:43 PM] Received response 'textDocument/codeAction - (1)' in 5ms.
Result: []


[Trace - 9:32:43 PM] Received notification '$/progress'.
Params: {
    "token": "{\"uri\":\"file:///home/josh/Latex/testmain.tex\",\"operation\":\"checkDocument\",\"uuid\":\"8bbbb3df-29b3-5ccf-1edc-020693676938\"}",
    "value": {
        "kind": "begin",
        "title": "Checking document",
        "cancellable": false,
        "message": "file:///home/josh/Latex/testmain.tex"
    }
}


[Trace - 9:32:43 PM] Received request 'workspace/configuration - (2)'.
Params: {
    "items": [
        {
            "scopeUri": "file:///home/josh/Latex/testmain.tex",
            "section": "ltex"
        }
    ]
}


[Trace - 9:32:43 PM] Sending response 'workspace/configuration - (2)'. Processing request took 1ms
Result: [
    {
        "enabled": [
            "context",
            "context.tex",
            "html",
            "latex",
            "markdown",
            "org",
            "restructuredtext",
            "rsweave"
        ],
        "language": "de-DE",
        "dictionary": {},
        "disabledRules": {},
        "enabledRules": {},
        "hiddenFalsePositives": {},
        "bibtex": {
            "fields": {}
        },
        "latex": {
            "commands": {},
            "environments": {}
        },
        "markdown": {
            "nodes": {}
        },
        "configurationTarget": {
            "dictionary": "workspaceFolderExternalFile",
            "disabledRules": "workspaceFolderExternalFile",
            "hiddenFalsePositives": "workspaceFolderExternalFile"
        },
        "additionalRules": {
            "enablePickyRules": true,
            "motherTongue": "de-DE",
            "languageModel": "",
            "neuralNetworkModel": "",
            "word2VecModel": ""
        },
        "languageToolHttpServerUri": "",
        "languageToolOrg": {
            "username": "",
            "apiKey": ""
        },
        "ltex-ls": {
            "path": "",
            "logLevel": "finer",
            "languageToolHttpServerUri": "",
            "languageToolOrgUsername": "",
            "languageToolOrgApiKey": ""
        },
        "java": {
            "path": "",
            "initialHeapSize": 256,
            "maximumHeapSize": 1024
        },
        "sentenceCacheSize": 6000,
        "completionEnabled": true,
        "diagnosticSeverity": "information",
        "checkFrequency": "edit",
        "clearDiagnosticsWhenClosingFile": true,
        "statusBarItem": true,
        "trace": {
            "server": "verbose"
        }
    }
]


[Trace - 9:32:43 PM] Received request 'ltex/workspaceSpecificConfiguration - (3)'.
Params: {
    "items": [
        {
            "scopeUri": "file:///home/josh/Latex/testmain.tex",
            "section": "ltex"
        }
    ]
}


2022-01-09T20:32:43.250Z Info: Started watching external setting file '/home/josh/Latex/.vscode/ltex.dictionary.de-DE.txt'.
2022-01-09T20:32:43.257Z Info: Started watching external setting file '/home/josh/Latex/.vscode/ltex.disabledRules.de-DE.txt'.
2022-01-09T20:32:43.266Z Info: Started watching external setting file '/home/josh/Latex/.vscode/ltex.hiddenFalsePositives.de-DE.txt'.
[Trace - 9:32:43 PM] Sending response 'ltex/workspaceSpecificConfiguration - (3)'. Processing request took 22ms
Result: [
    {
        "dictionary": {
            "auto": [],
            "ar": [],
            "ast-ES": [],
            "be-BY": [],
            "br-FR": [],
            "ca-ES": [],
            "ca-ES-valencia": [],
            "da-DK": [],
            "de": [],
            "de-AT": [],
            "de-CH": [],
            "de-DE": [
                "Datenduplikation",
                "Discoveryservice",
                "Discoveryservices",
                "Hauptsächlicheaufgabe",
                "Loosekopplung",
                "Losekopplung",
                "Microservicearchitektur",
                "Monolithischearchitektur",
                "Monolithischenarchitektur",
                "pds",
                "profitetirt"
            ],
            "de-DE-x-simple-language": [],
            "el-GR": [],
            "en": [],
            "en-AU": [],
            "en-CA": [],
            "en-GB": [],
            "en-NZ": [],
            "en-US": [],
            "en-ZA": [],
            "eo": [],
            "es": [],
            "es-AR": [],
            "fa": [],
            "fr": [],
            "ga-IE": [],
            "gl-ES": [],
            "it": [],
            "ja-JP": [],
            "km-KH": [],
            "nl": [],
            "nl-BE": [],
            "pl-PL": [],
            "pt": [],
            "pt-AO": [],
            "pt-BR": [],
            "pt-MZ": [],
            "pt-PT": [],
            "ro-RO": [],
            "ru-RU": [],
            "sk-SK": [],
            "sl-SI": [],
            "sv": [],
            "ta-IN": [],
            "tl-PH": [],
            "uk-UA": [],
            "zh-CN": []
        },
        "disabledRules": {
            "auto": [],
            "ar": [],
            "ast-ES": [],
            "be-BY": [],
            "br-FR": [],
            "ca-ES": [],
            "ca-ES-valencia": [],
            "da-DK": [],
            "de": [],
            "de-AT": [],
            "de-CH": [],
            "de-DE": [
                "GROESSERALS",
                "PFEILE"
            ],
            "de-DE-x-simple-language": [],
            "el-GR": [],
            "en": [],
            "en-AU": [],
            "en-CA": [],
            "en-GB": [],
            "en-NZ": [],
            "en-US": [],
            "en-ZA": [],
            "eo": [],
            "es": [],
            "es-AR": [],
            "fa": [],
            "fr": [],
            "ga-IE": [],
            "gl-ES": [],
            "it": [],
            "ja-JP": [],
            "km-KH": [],
            "nl": [],
            "nl-BE": [],
            "pl-PL": [],
            "pt": [],
            "pt-AO": [],
            "pt-BR": [],
            "pt-MZ": [],
            "pt-PT": [],
            "ro-RO": [],
            "ru-RU": [],
            "sk-SK": [],
            "sl-SI": [],
            "sv": [],
            "ta-IN": [],
            "tl-PH": [],
            "uk-UA": [],
            "zh-CN": []
        },
        "enabledRules": {
            "auto": [],
            "ar": [],
            "ast-ES": [],
            "be-BY": [],
            "br-FR": [],
            "ca-ES": [],
            "ca-ES-valencia": [],
            "da-DK": [],
            "de": [],
            "de-AT": [],
            "de-CH": [],
            "de-DE": [],
            "de-DE-x-simple-language": [],
            "el-GR": [],
            "en": [],
            "en-AU": [],
            "en-CA": [],
            "en-GB": [],
            "en-NZ": [],
            "en-US": [],
            "en-ZA": [],
            "eo": [],
            "es": [],
            "es-AR": [],
            "fa": [],
            "fr": [],
            "ga-IE": [],
            "gl-ES": [],
            "it": [],
            "ja-JP": [],
            "km-KH": [],
            "nl": [],
            "nl-BE": [],
            "pl-PL": [],
            "pt": [],
            "pt-AO": [],
            "pt-BR": [],
            "pt-MZ": [],
            "pt-PT": [],
            "ro-RO": [],
            "ru-RU": [],
            "sk-SK": [],
            "sl-SI": [],
            "sv": [],
            "ta-IN": [],
            "tl-PH": [],
            "uk-UA": [],
            "zh-CN": []
        },
        "hiddenFalsePositives": {
            "auto": [],
            "ar": [],
            "ast-ES": [],
            "be-BY": [],
            "br-FR": [],
            "ca-ES": [],
            "ca-ES-valencia": [],
            "da-DK": [],
            "de": [],
            "de-AT": [],
            "de-CH": [],
            "de-DE": [
                "{\"rule\":\"COMMA_BEHIND_RELATIVE_CLAUSE\",\"sentence\":\"^\\\\QDocker ist eine Plattform die einen Container um eine Anwendung setzen kann, der dann unabhängig des Inhaltes verwendet werden kann \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q.\\\\E$\"}",
                "{\"rule\":\"COMMA_BEHIND_RELATIVE_CLAUSE\",\"sentence\":\"^\\\\QDocker ist eine Plattform, die einen Container um eine Anwendung setzen kann, der dann unabhängig des Inhaltes verwendet werden kann \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q.\\\\E$\"}"
            ],
            "de-DE-x-simple-language": [],
            "el-GR": [],
            "en": [],
            "en-AU": [],
            "en-CA": [],
            "en-GB": [],
            "en-NZ": [],
            "en-US": [],
            "en-ZA": [],
            "eo": [],
            "es": [],
            "es-AR": [],
            "fa": [],
            "fr": [],
            "ga-IE": [],
            "gl-ES": [],
            "it": [],
            "ja-JP": [],
            "km-KH": [],
            "nl": [],
            "nl-BE": [],
            "pl-PL": [],
            "pt": [],
            "pt-AO": [],
            "pt-BR": [],
            "pt-MZ": [],
            "pt-PT": [],
            "ro-RO": [],
            "ru-RU": [],
            "sk-SK": [],
            "sl-SI": [],
            "sv": [],
            "ta-IN": [],
            "tl-PH": [],
            "uk-UA": [],
            "zh-CN": []
        }
    }
]


[Trace - 9:32:43 PM] Sending request 'textDocument/codeAction - (2)'.
Params: {
    "textDocument": {
        "uri": "file:///home/josh/Latex/testmain.tex"
    },
    "range": {
        "start": {
            "line": 4,
            "character": 14
        },
        "end": {
            "line": 4,
            "character": 14
        }
    },
    "context": {
        "diagnostics": []
    }
}


[Trace - 9:32:43 PM] Received response 'textDocument/codeAction - (2)' in 1ms.
Result: []


[Trace - 9:32:45 PM] Sending notification '$/setTrace'.
Params: {
    "value": "verbose"
}


[Trace - 9:32:46 PM] Sending notification '$/setTrace'.
Params: {
    "value": "verbose"
}


Version information List here the version information of the relevant software.

  • Linux Ubuntu 21.10
  • VS Code: 1.63.2
  • vscode-ltex: 13.1.0

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 10
  • Comments: 16

Most upvoted comments

This bug is very weird, I had KHz somewhere in my text and it broke the extension. Here is a regex you can use: [A-Z]{2}[a-z] to search for these problematic words (make sure to enable “Match Case” when searching).

I can also confirm this behaviour on Linux Mint 20.2, and I can confirm that it is not Happening in Ltex 11.0.0

What I also noticed, that the cli version of LTeX that is bundled with the extension tih problem does not occur, it seems only the Language Server is affected.

I can provide futher information if needed.

@JoshuaMoe Are you useing a Linux system? I can not reproduce this bug on my Windows machine.

Yes I am, to be exact Ubuntu or Debian depends on my mood 😄