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

Version 16 bug with Windows and Eglot #262

Open
raylemon opened this issue Jul 13, 2023 · 1 comment
Open

Version 16 bug with Windows and Eglot #262

raylemon opened this issue Jul 13, 2023 · 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

@raylemon
Copy link

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

Steps to reproduce
Steps to reproduce the behavior:

  • Launch emacs
  • Connect witch eglot
  • type full path of ltex-ls.bat

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:

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

  • Operating system: Windows 11
  • ltex-ls: 16.0.0.0
  • Java: 11 (shipped with zip)

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

@raylemon raylemon 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 Jul 13, 2023
@jc1bert
Copy link

jc1bert commented Sep 30, 2023

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

  • OS: Linux
  • ltex-ls: 16.0.0
  • java: 21 (system wide install)

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

2 participants