ltex-ls icon indicating copy to clipboard operation
ltex-ls copied to clipboard

Errors reported in 16.0.0 in Helix logs: SEVERE: A delegate object is null + language server failed to terminate gracefully - failed to parse: invalid type: map, expected unit

Open David-Else opened this issue 3 years ago • 3 comments

Describe the bug (THANKS for starting development again, very excited to see a new version :)

The new ltex-ls appears to be working OK, but there are errors in the Helix log. Are these a problem that can be fixed here?

Steps to reproduce Steps to reproduce the behavior:

  1. create a markdown file and open it in helix
  2. paste in some random text, i used "hello testing badspelling"
  3. quit helix
  4. see the error log
2023-03-20T13:08:31.387 helix_lsp::transport [ERROR] err <- "SLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\n"
2023-03-20T13:08:31.387 helix_lsp::transport [ERROR] err <- "SLF4J: Defaulting to no-operation (NOP) logger implementation\n"
2023-03-20T13:08:31.387 helix_lsp::transport [ERROR] err <- "SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\n"
2023-03-20T13:08:37.222 helix_lsp::transport [ERROR] err <- "Mar 20, 2023 1:08:37 PM org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint lambda$recursiveFindRpcMethods$2\n"
2023-03-20T13:08:37.222 helix_lsp::transport [ERROR] err <- "SEVERE: A delegate object is null, jsonrpc methods of 'public default org.eclipse.lsp4j.services.NotebookDocumentService org.eclipse.lsp4j.services.LanguageServer.getNotebookDocumentService()' are ignored\n"
2023-03-20T13:08:37.282 helix_lsp::transport [ERROR] err <- "Mar 20, 2023 1:08:37 PM org.bsplines.ltexls.server.LtexLanguageServer initialize\n"
2023-03-20T13:08:37.282 helix_lsp::transport [ERROR] err <- "INFO: ltex-ls 16.0.0 - initializing...\n"
2023-03-20T13:08:37.565 helix_lsp::transport [ERROR] err <- "Mar 20, 2023 1:08:37 PM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked\n"
2023-03-20T13:08:37.565 helix_lsp::transport [ERROR] err <- "FINE: Checking the following text in language 'en-US' via LanguageTool: \"hello testing badspelling\"\n"
2023-03-20T13:08:39.224 helix_lsp::transport [ERROR] err <- "Mar 20, 2023 1:08:39 PM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment\n"
2023-03-20T13:08:39.224 helix_lsp::transport [ERROR] err <- "FINE: Obtained 2 rule matches\n"
2023-03-20T13:08:46.146 helix_lsp::transport [ERROR] err <- "Mar 20, 2023 1:08:46 PM org.bsplines.ltexls.server.LtexLanguageServer shutdown\n"
2023-03-20T13:08:46.146 helix_lsp::transport [ERROR] err <- "INFO: Shutting down ltex-ls...\n"
2023-03-20T13:08:46.146 helix_lsp::client [WARN] language server failed to terminate gracefully - failed to parse: invalid type: map, expected unit

Expected behavior No errors, but I might be mistaken and this might be a Helix problem?

My Helix settings are simply:

languages.toml

[[language]]
name = "markdown"
language-server = { command = "ltex-ls" }

This overrides the default marksman server to use ltex-ls.

LTeX LS log

I can't find it, tried searching my drive and the documentation for mention of it.

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

  • Operating system: Linux (RHEL 9.1 clone)
  • ltex-ls: 16.0.0
  • Java:

I am using the system version and ltex-ls-16.0.0.tar.gz

Installed Packages
Name         : java-11-openjdk-headless
Epoch        : 1
Version      : 11.0.18.0.10
Release      : 2.el9_1

David-Else avatar Mar 20 '23 13:03 David-Else

I have the similar problem for eglot in emacs, my configuration for emacs is simple:

    (add-to-list 'eglot-server-programs
                 '(((markdown-mode :language-id "markdown")
                    (org-mode :language-id "org")) . ("ltex-ls")))

the log message is:

[stderr] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[stderr] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[stderr] SLF4J: Defaulting to no-operation (NOP) logger implementation
[stderr] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[stderr] Mar 26, 2023 8:47:48 PM org.bsplines.ltexls.server.LtexLanguageServer initialize
[stderr] INFO: ltex-ls 16.0.0 - initializing...
[internal] Sun Mar 26 20:48:09 2023:
(:message "Connection state changed" :change "killed: 9\n")

----------b---y---e---b---y---e----------
[stderr] 
[stderr] 
[stderr] nil
[stderr] nil
[stderr] Process EGLOT (quarto-test/(markdown-mode org-mode)) stderr finished

I am using ltex-ls 16.0.0 macOS x64 downloaded from github release on macos.

And I can confirm that with ltex-ls 15.2 macOS x64 downloaded from github release, ltex-ls runs successfully in emacs without any error.

milanglacier avatar Mar 27 '23 00:03 milanglacier

I got a similar error on ltex-ls 16.0.0, macOS x64, openjdk 20 with NeoVim.

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

After rolling back to ltex-ls 15.2.0, openjdk 11.0.12, the failed to load org.slf4j.impl.StaticLoggerBinder error disappears.

weakish avatar Apr 20 '23 11:04 weakish

Same Issue here. I also installed SLF4J from AUR but it did not help

janekx21 avatar Feb 26 '24 05:02 janekx21