valentjn / ltex-ls

LTeX Language Server: LSP language server for LanguageTool :mag::heavy_check_mark: with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://valentjn.github.io/ltex
Mozilla Public License 2.0
717 stars 33 forks source link

Version 16 bug with Windows and Eglot #262

Open raylemon opened 12 months ago

raylemon commented 12 months ago

Describe the bug Eglot won’t connect to Ltex-ls.

Steps to reproduce Steps to reproduce the behavior:

Expected behavior Eglot connected to LTeX (working with LTeX 15.0.2.0)

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.

Any 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.

No special configuration

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

``` lisp [internal] Thu Jul 13 12:21:12 2023: (:message "Running language server: c:\\\\users\\\\big04\\\\desktop\\\\ltex-ls-16.0.0\\\\bin\\\\ltex-ls.bat") [client-request] (id:1) Thu Jul 13 12:21:12 2023: (:jsonrpc "2.0" :id 1 :method "initialize" :params (:processId 22424 :clientInfo (:name "Eglot") :rootPath "c:/Users/big04/" :rootUri "file:///c%3A/Users/big04" :initializationOptions #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ()) :capabilities (:workspace (:applyEdit t :executeCommand (:dynamicRegistration :json-false) :workspaceEdit (:documentChanges t) :didChangeWatchedFiles (:dynamicRegistration t) :symbol (:dynamicRegistration :json-false) :configuration t :workspaceFolders t) :textDocument (:synchronization (:dynamicRegistration :json-false :willSave t :willSaveWaitUntil t :didSave t) :completion (:dynamicRegistration :json-false :completionItem (:snippetSupport :json-false :deprecatedSupport t :resolveSupport (:properties ["documentation" "details" "additionalTextEdits"]) :tagSupport (:valueSet [1])) :contextSupport t) :hover (:dynamicRegistration :json-false :contentFormat ["plaintext"]) :signatureHelp (:dynamicRegistration :json-false :signatureInformation (:parameterInformation (:labelOffsetSupport t) :documentationFormat ["plaintext"] :activeParameterSupport t)) :references (:dynamicRegistration :json-false) :definition (:dynamicRegistration :json-false :linkSupport t) :declaration (:dynamicRegistration :json-false :linkSupport t) :implementation (:dynamicRegistration :json-false :linkSupport t) :typeDefinition (:dynamicRegistration :json-false :linkSupport t) :documentSymbol (:dynamicRegistration :json-false :hierarchicalDocumentSymbolSupport t :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])) :documentHighlight (:dynamicRegistration :json-false) :codeAction (:dynamicRegistration :json-false :codeActionLiteralSupport (:codeActionKind (:valueSet ["quickfix" "refactor" "refactor.extract" "refactor.inline" "refactor.rewrite" "source" "source.organizeImports"])) :isPreferredSupport t) :formatting (:dynamicRegistration :json-false) :rangeFormatting (:dynamicRegistration :json-false) :rename (:dynamicRegistration :json-false) :inlayHint (:dynamicRegistration :json-false) :publishDiagnostics (:relatedInformation :json-false :codeDescriptionSupport :json-false :tagSupport (:valueSet [1 2]))) :window (:showDocument (:support t) :workDoneProgress t) :general (:positionEncodings ["utf-32" "utf-8" "utf-16"]) :experimental #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ())) :workspaceFolders [(:uri "file:///c%3A/Users/big04" :name "~/")])) [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] juil. 13, 2023 12:21:20 PM org.bsplines.ltexls.server.LtexLanguageServer initialize [stderr] INFOS: ltex-ls 16.0.0 - initializing... [internal] Thu Jul 13 12:21:42 2023: (:message "Connection state changed" :change "killed\n") ``` ----------b---y---e---b---y---e---------- [stderr] nil [stderr] ^C [stderr] ^C [stderr] nil [stderr] nil [stderr] Process EGLOT (big04/nil) stderr finished

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

Additional context/information You can add any other context or information about the problem here.

jc1bert commented 9 months ago

This bug also occurs with eglot on Linux.

LTeX configuration Since it's an emacs compliant config file, settings are passed as elisp lists.

(language . "fr")
(disabledRules . ((fr . ["FRENCH_WHITESPACE"])))
(latex.environments . ((tikzpicture . "ignore")
   (sqlverb . "ignore")
   (pyverbatim . "ignore")
   (pyverb . "ignore")))

LTeX output

[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] sept. 30, 2023 9:39:09 AM org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint lambda$recursiveFindRpcMethods$2
[stderr] GRAVE: A delegate object is null, jsonrpc methods of 'public default org.eclipse.lsp4j.services.NotebookDocumentService org.eclipse.lsp4j.services.LanguageServer.getNotebookDocumentService()' are ignored
[stderr] sept. 30, 2023 9:39:09 AM org.bsplines.ltexls.server.LtexLanguageServer initialize
[stderr] INFOS: ltex-ls 16.0.0 - initializing...
[internal] Sat Sep 30 09:39:27 2023:
(:message "Connection state changed" :change "processus arrêté\n")

----------b---y---e---b---y---e----------
[stderr] 
[stderr] 
[stderr] nil
[stderr] nil
[stderr] Process EGLOT (PC(2014-2021)/(latex-mode tex-mode)) stderr finished

Version information