You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to use xref-find-definitions to jump to the definition of a symbol in a Python file after switching eglot on then I get
eldoc error: (error Process EGLOT (MyProject/python-mode) not running)
I guess in order to trouble shoot this I need to give all the details I can get hold of. - Ok, here you go:
Key info
Server used: pyls
Emacs version: GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2021-09-07
Operating system: Linux RHEL 8.3
Eglot version: 20220112.1835
Eglot installation method: package.el/use-package (updated via package.el)
Using Doom: No
LSP transcript
[client-request] (id:1) Thu Jan 1312:31:07 2022:
(:jsonrpc"2.0":id1:method"initialize":params
(:processId1472147:rootPath"/home/me/devel/MyProject/":rootUri"file:///home/me/devel/MyProject":initializationOptions#s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
())
:capabilities
(:workspace
(:applyEditt:executeCommand
(:dynamicRegistration:json-false)
:workspaceEdit
(:documentChanges:json-false)
:didChangeWatchedFiles
(:dynamicRegistrationt)
:symbol
(:dynamicRegistration:json-false)
:configurationt)
:textDocument
(:synchronization
(:dynamicRegistration:json-false:willSavet:willSaveWaitUntilt:didSavet)
:completion
(:dynamicRegistration:json-false:completionItem
(:snippetSupport:json-false)
:contextSupportt)
:hover
(:dynamicRegistration:json-false:contentFormat
["markdown""plaintext"])
:signatureHelp
(:dynamicRegistration:json-false:signatureInformation
(:parameterInformation
(:labelOffsetSupportt)
:activeParameterSupportt))
:references
(:dynamicRegistration:json-false)
:definition
(:dynamicRegistration:json-false:linkSupportt)
:declaration
(:dynamicRegistration:json-false:linkSupportt)
:implementation
(:dynamicRegistration:json-false:linkSupportt)
:typeDefinition
(:dynamicRegistration:json-false:linkSupportt)
:documentSymbol
(:dynamicRegistration:json-false:hierarchicalDocumentSymbolSupportt:symbolKind
(:valueSet
[1 2345678910111213141516171819202122232425 26]))
:documentHighlight
(:dynamicRegistration:json-false)
:codeAction
(:dynamicRegistration:json-false:codeActionLiteralSupport
(:codeActionKind
(:valueSet
["quickfix""refactor""refactor.extract""refactor.inline""refactor.rewrite""source""source.organizeImports"]))
:isPreferredSupportt)
:formatting
(:dynamicRegistration:json-false)
:rangeFormatting
(:dynamicRegistration:json-false)
:rename
(:dynamicRegistration:json-false)
:publishDiagnostics
(:relatedInformation:json-false:codeDescriptionSupport:json-false))
:experimental#s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
()))))
[stderr] 2022-01-13 12:31:07,683 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'autopep8': No module named 'pycodestyle'
[stderr] 2022-01-13 12:31:07,693 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'mccabe': No module named 'mccabe'
[stderr] 2022-01-13 12:31:07,695 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'pycodestyle': No module named 'pycodestyle'
[stderr] 2022-01-13 12:31:07,696 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'pydocstyle': No module named 'pydocstyle'
[stderr] 2022-01-13 12:31:07,696 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'pyflakes': No module named 'pyflakes'
[stderr] 2022-01-13 12:31:07,697 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'pylint': No module named 'pylint'
[stderr] 2022-01-13 12:31:07,698 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'rope_completion': No module named 'rope'
[stderr] 2022-01-13 12:31:07,699 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'rope_rename': No module named 'rope'
[stderr] 2022-01-13 12:31:07,700 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'yapf': No module named 'yapf'
[server-reply] (id:1) Thu Jan 1312:31:07 2022:
(:jsonrpc"2.0":id1:result
(:capabilities
(:codeActionProvidert:codeLensProvider
(:resolveProvider:json-false)
:completionProvider
(:resolveProvider:json-false:triggerCharacters
["."])
:documentFormattingProvidert:documentHighlightProvidert:documentRangeFormattingProvidert:documentSymbolProvidert:definitionProvidert:executeCommandProvider
(:commands
[])
:hoverProvidert:referencesProvidert:renameProvidert:foldingRangeProvidert:signatureHelpProvider
(:triggerCharacters
["("",""="])
:textDocumentSync
(:change2:save
(:includeTextt)
:openCloset)
:workspace
(:workspaceFolders
(:supportedt:changeNotificationst))
:experimentalnil)))
[client-notification] Thu Jan 1312:31:07 2022:
(:jsonrpc"2.0":method"initialized":params#s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
()))
[client-notification] Thu Jan 1312:31:07 2022:
(:jsonrpc"2.0":method"workspace/didChangeConfiguration":params
(:settingsnil))
[client-request] (id:2) Thu Jan 1312:31:32 2022:
(:jsonrpc"2.0":id2:method"shutdown":paramsnil)
[server-reply] (id:2) Thu Jan 1312:31:32 2022:
(:jsonrpc"2.0":id2:resultnil)
[client-notification] Thu Jan 1312:31:32 2022:
(:jsonrpc"2.0":method"exit":paramsnil)
[internal] Thu Jan 1312:31:32 2022:
(:message"Connection state changed":change"killed\n")
----------b---y---e---b---y---e----------
[stderr]
[stderr]
[stderr] nil
[stderr] nil
[stderr] Process EGLOT (MyProject/python-mode) stderr finished
[client-request] (id:1) Thu Jan 1312:31:33 2022:
(:jsonrpc"2.0":id1:method"initialize":params
(:processId1472147:rootPath"/home/me/devel/MyProject/":rootUri"file:///home/me/devel/MyProject":initializationOptions#s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
())
:capabilities
(:workspace
(:applyEditt:executeCommand
(:dynamicRegistration:json-false)
:workspaceEdit
(:documentChanges:json-false)
:didChangeWatchedFiles
(:dynamicRegistrationt)
:symbol
(:dynamicRegistration:json-false)
:configurationt)
:textDocument
(:synchronization
(:dynamicRegistration:json-false:willSavet:willSaveWaitUntilt:didSavet)
:completion
(:dynamicRegistration:json-false:completionItem
(:snippetSupport:json-false)
:contextSupportt)
:hover
(:dynamicRegistration:json-false:contentFormat
["markdown""plaintext"])
:signatureHelp
(:dynamicRegistration:json-false:signatureInformation
(:parameterInformation
(:labelOffsetSupportt)
:activeParameterSupportt))
:references
(:dynamicRegistration:json-false)
:definition
(:dynamicRegistration:json-false:linkSupportt)
:declaration
(:dynamicRegistration:json-false:linkSupportt)
:implementation
(:dynamicRegistration:json-false:linkSupportt)
:typeDefinition
(:dynamicRegistration:json-false:linkSupportt)
:documentSymbol
(:dynamicRegistration:json-false:hierarchicalDocumentSymbolSupportt:symbolKind
(:valueSet
[1 2345678910111213141516171819202122232425 26]))
:documentHighlight
(:dynamicRegistration:json-false)
:codeAction
(:dynamicRegistration:json-false:codeActionLiteralSupport
(:codeActionKind
(:valueSet
["quickfix""refactor""refactor.extract""refactor.inline""refactor.rewrite""source""source.organizeImports"]))
:isPreferredSupportt)
:formatting
(:dynamicRegistration:json-false)
:rangeFormatting
(:dynamicRegistration:json-false)
:rename
(:dynamicRegistration:json-false)
:publishDiagnostics
(:relatedInformation:json-false:codeDescriptionSupport:json-false))
:experimental#s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
()))))
[stderr] 2022-01-13 12:31:33,288 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'autopep8': No module named 'pycodestyle'
[stderr] 2022-01-13 12:31:33,296 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'mccabe': No module named 'mccabe'
[stderr] 2022-01-13 12:31:33,297 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'pycodestyle': No module named 'pycodestyle'
[stderr] 2022-01-13 12:31:33,298 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'pydocstyle': No module named 'pydocstyle'
[stderr] 2022-01-13 12:31:33,299 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'pyflakes': No module named 'pyflakes'
[stderr] 2022-01-13 12:31:33,299 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'pylint': No module named 'pylint'
[stderr] 2022-01-13 12:31:33,300 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'rope_completion': No module named 'rope'
[stderr] 2022-01-13 12:31:33,301 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'rope_rename': No module named 'rope'
[stderr] 2022-01-13 12:31:33,301 UTC -WARNING- pyls.config.config - Failed to load pyls entry point 'yapf': No module named 'yapf'
[server-reply] (id:1) Thu Jan 1312:31:33 2022:
(:jsonrpc"2.0":id1:result
(:capabilities
(:codeActionProvidert:codeLensProvider
(:resolveProvider:json-false)
:completionProvider
(:resolveProvider:json-false:triggerCharacters
["."])
:documentFormattingProvidert:documentHighlightProvidert:documentRangeFormattingProvidert:documentSymbolProvidert:definitionProvidert:executeCommandProvider
(:commands
[])
:hoverProvidert:referencesProvidert:renameProvidert:foldingRangeProvidert:signatureHelpProvider
(:triggerCharacters
["("",""="])
:textDocumentSync
(:change2:save
(:includeTextt)
:openCloset)
:workspace
(:workspaceFolders
(:supportedt:changeNotificationst))
:experimentalnil)))
[client-notification] Thu Jan 1312:31:33 2022:
(:jsonrpc"2.0":method"initialized":params#s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
()))
Backtrace
Debugger entered--Lisp error: (error"Process EGLOT (MyProject/python-mode) not ...")
process-send-string(#<process EGLOT (MyProject/python-mode)> "Content-Length: 233\15\n\15\n{\"jsonrpc\":\"2.0\",\"id\":5,\"me...")
#f(compiled-function (arg1 &restrest) "Send MESSAGE, a JSON object, to CONNECTION." #<bytecode 0xbe833d>)(#<eglot-lsp-server eglot-lsp-server-ae806c> :id5:method:textDocument/definition:params (:textDocument (:uri"file:///home/me/devel/MyProject...") :position (:line277:character42)))
apply(#f(compiled-function (arg1 &restrest) "Send MESSAGE, a JSON object, to CONNECTION." #<bytecode 0xbe833d>) #<eglot-lsp-server eglot-lsp-server-ae806c> (:id5:method:textDocument/definition:params (:textDocument (:uri"file:///home/me/devel/MyProject...") :position (:line277:character42))))
jsonrpc-connection-send(#<eglot-lsp-server eglot-lsp-server-ae806c> :id5:method:textDocument/definition:params (:textDocument (:uri"file:///home/me/devel/MyProject...") :position (:line277:character42)))
jsonrpc--async-request-1(#<eglot-lsp-server eglot-lsp-server-ae806c> :textDocument/definition (:textDocument (:uri"file:///home/me/devel/MyProject...") :position (:line277:character42)) :success-fn #f(compiled-function (result) #<bytecode 0xca4ec1>) :error-fn #f(compiled-function (jsonrpc-lambda-elem0) #<bytecode 0xca4eed>) :timeout-fn #f(compiled-function () #<bytecode 0xca4f0d>))
apply(jsonrpc--async-request-1 #<eglot-lsp-server eglot-lsp-server-ae806c> :textDocument/definition (:textDocument (:uri"file:///home/me/devel/MyProject...") :position (:line277:character42)) :success-fn #f(compiled-function (result) #<bytecode 0xca4ec1>) :error-fn #f(compiled-function (jsonrpc-lambda-elem0) #<bytecode 0xca4eed>) :timeout-fn #f(compiled-function () #<bytecode 0xca4f0d>) nil)
#f(compiled-function (arg1 arg2 arg3 &restrest) "Make a request to CONNECTION, wait for a reply.\nLike `jsonrpc-async-request' for CONNECTION, METHOD and PARAMS,\nbut synchronous.\n\nExcept in the case of a non-nil CANCEL-ON-INPUT (explained\nbelow), this function doesn't exit until anything interesting\nhappens (success reply, error reply, or timeout). Furthermore,\nit only exits locally (returning the JSONRPC result object) if\nthe request is successful, otherwise it exits non-locally with an\nerror of type `jsonrpc-error'.\n\nDEFERRED and TIMEOUT as in `jsonrpc-async-request', which see.\n\nIf CANCEL-ON-INPUT is non-nil and the user inputs something while\nthe function is waiting, then it exits immediately, returning\nCANCEL-ON-INPUT-RETVAL. Any future replies (normal or error) are\nignored." #<bytecode 0xb10fc9>)(#<eglot-lsp-server eglot-lsp-server-ae806c> :textDocument/definition (:textDocument (:uri"file:///home/me/devel/MyProject...") :position (:line277:character42)))
apply(#f(compiled-function (arg1 arg2 arg3 &restrest) "Make a request to CONNECTION, wait for a reply.\nLike `jsonrpc-async-request' for CONNECTION, METHOD and PARAMS,\nbut synchronous.\n\nExcept in the case of a non-nil CANCEL-ON-INPUT (explained\nbelow), this function doesn't exit until anything interesting\nhappens (success reply, error reply, or timeout). Furthermore,\nit only exits locally (returning the JSONRPC result object) if\nthe request is successful, otherwise it exits non-locally with an\nerror of type `jsonrpc-error'.\n\nDEFERRED and TIMEOUT as in `jsonrpc-async-request', which see.\n\nIf CANCEL-ON-INPUT is non-nil and the user inputs something while\nthe function is waiting, then it exits immediately, returning\nCANCEL-ON-INPUT-RETVAL. Any future replies (normal or error) are\nignored." #<bytecode 0xb10fc9>) (#<eglot-lsp-server eglot-lsp-server-ae806c> :textDocument/definition (:textDocument (:uri"file:///home/me/devel/MyProject...") :position (:line277:character42))))
jsonrpc-request(#<eglot-lsp-server eglot-lsp-server-ae806c> :textDocument/definition (:textDocument (:uri"file:///home/me/devel/MyProject...") :position (:line277:character42)))
eglot--lsp-xrefs-for-method(:textDocument/definition)
#f(compiled-function (backend identifier) #<bytecode 0xc481e9>)(eglot "LSP identifier at point.")
apply(#f(compiled-function (backend identifier) #<bytecode 0xc481e9>) eglot "LSP identifier at point.")
xref-backend-definitions(eglot "LSP identifier at point.")
#f(compiled-function () #<bytecode 0xca4e21>)()
xref-show-definitions-buffer(#f(compiled-function () #<bytecode 0xca4e21>) ((window . #<window 3 on WastewaterCatchments.py>) (display-action) (auto-jump)))
xref--show-defs(#f(compiled-function () #<bytecode 0xca4e21>) nil)
xref--find-definitions("LSP identifier at point."nil)
xref-find-definitions("LSP identifier at point.")
funcall-interactively(xref-find-definitions "LSP identifier at point.")
call-interactively(xref-find-definitions nilnil)
command-execute(xref-find-definitions)
I hope this leads to some pointers for me how I can fix this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I try to use
xref-find-definitions
to jump to the definition of a symbol in a Python file after switchingeglot
on then I geteldoc error: (error Process EGLOT (MyProject/python-mode) not running)
I guess in order to trouble shoot this I need to give all the details I can get hold of. - Ok, here you go:
Key info
package.el
/use-package
(updated via package.el)LSP transcript
Backtrace
I hope this leads to some pointers for me how I can fix this.
Beta Was this translation helpful? Give feedback.
All reactions