Skip to content

no diagnostics for german #20

Description

@arantxax

Describe the bug
I just downloaded ltex+ as ltex-ls to use as command-line/offline/stand-alone grammar checker. The first run should take long enough, but it seems that the server initialization is taking too long or has too many threads working on. For english text works fine.

Steps to reproduce

  1. Download ZIP file: ltex-ls-plus-18.2.0-windows-x64
  2. Extract it in your desktop.
  3. Create a "test" directory in your desktop.
  4. Create a simple test.tex file in the "test" directory.
  5. Copy the folder "ltex+" in the as subfolder in "test".
  6. Go to "test\ltex+\ltex-ls-plus-18.2.0\bin"
  7. Right click on the directory and select "open in Terminal"
  8. ./ltex-cli-plus.bat ../../../test.tex --client-configuration=".lsp-cli.json" --verbose

Expected behavior

I want the server to be initialized and correct the grammatical errors in the tex document.

**Sample document**
This is the specific document in LaTeX:

\documentclass{article}
\usepackage[ngerman]{babel}
\begin{document}

\selectlanguage{ngerman}  % Explicitly set language to German
%Three banana.
Ein Satz auf Deutsch Sprache.

\end{document}

LTeX configuration
Configuration settings from .lsp-cli.json:

{
  "programName": "ltex-cli-plus",
  "helpMessage": {
    "description": "LTeX CLI - Command-line interface for LTeX LS",
    "visibleArguments": [
      "--client-configuration",
      "--verbose"
    ]
  },
  "defaultValues": {
    "--hide-commands": true,
    "--server-command-line": "ltex-ls-plus.bat"
  }
}

Details
LTeX LS log
Paste the log (output) of LTeX LS here:

`Nov. 24, 2024 3:00:03 PM org.bsplines.lspcli.client.LspCliLanguageClient$Companion startLanguageServerProcess
INFORMATION: Starting language server with command line 'C:\Users\eckhardt-da-silva.a\Desktop\test\ltex+\ltex-ls-plus-18.2.0\bin\ltex-ls-plus.bat' in directory 'C:\Users\eckhardt-da-silva.a\Desktop\test\ltex+\ltex-ls-plus-18.2.0\bin'...
Nov. 24, 2024 3:00:04 PM org.bsplines.lspcli.client.LspCliLanguageClient initializeLanguageServer
INFORMATION: Initializing language server...
Nov. 24, 2024 3:00:11 PM org.bsplines.lspcli.client.Checker checkFile
INFORMATION: Checking '..\..\..\test.tex'...
Nov. 24, 2024 3:00:11 PM org.bsplines.lspcli.client.Checker checkFile
INFORMATION: Waiting for diagnostics for file '..\..\..\test.tex'...

`

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

Operating system: Windows 11 Business
ltex-ls: 18.2.0
Java: jdk-21.0.4+7 (this one installed/embedded in the installation files)
Additional context/information

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions