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

delay on first run of LTeX CLI #317

Open
arantxax opened this issue Nov 24, 2024 · 1 comment
Open

delay on first run of LTeX CLI #317

arantxax opened this issue Nov 24, 2024 · 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

@arantxax
Copy link

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.

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

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"
  },
  "client": {
    "configuration": {
      "latex": {
        "rootPath": "C:/Users/eckhardt-da-silva.a/Desktop/test/"
      },
      "ltex": {
        "language": "de-DE",
	"documentLanguages": ["de-DE"],
        "disabledRules": [
          "MORFOLOGIK_RULE_EN_US"
        ],
        "enabledRules": [
          "MORFOLOGIK_RULE_DE_DE"
        ],
        "hiddenFalsePositives": [],
	"remoteLanguageTool": false
      }
    }
  }
}

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

PS Desktop\test\ltex+\ltex-ls-plus-18.2.0\bin> ./ltex-cli-plus.bat ../../../test.tex --client-configuration=".lsp-cli.json" --verbose
Nov. 24, 2024 12:38:13 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 12:38:13 PM org.bsplines.lspcli.client.LspCliLanguageClient initializeLanguageServer
INFORMATION: Initializing language server...
Nov. 24, 2024 12:38:21 PM org.bsplines.lspcli.client.Checker checkFile
INFORMATION: Checking '..\..\..\test.tex'...
Nov. 24, 2024 12:38:21 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
Maybe the config file isn't correct, but it should be worththe try.

@arantxax arantxax 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 Nov 24, 2024
@arantxax
Copy link
Author

Replicated in another fork: https://github.com/ltex-plus/lsp-cli-plus/issues/20

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

1 participant