-
In a Python file like this
I have the cursor on the function call to Emacs returns:
I have pyls installed so what goes wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Thanks for starting this conversation. Can you make a small zip or archive or the toy project you're tying this and post it here. It would help. My python chops come and go, it would help to have a sample around and not have to type anything. |
Beta Was this translation helpful? Give feedback.
-
I'm afraid Eglot is right in this case. Pyls does not implement textDocument/declaration. See its hookspecs. Additionally pyls is more or less abandoned. Pylsp is the new pyls, but there seems to be no difference in this regard. (Well, pylsp is almost the same as pyls.) Have you tried xref-find-definitions or xref-find-references? Maybe those help you jump to the point of the declaration. |
Beta Was this translation helpful? Give feedback.
I'm afraid Eglot is right in this case. Pyls does not implement textDocument/declaration. See its hookspecs. Additionally pyls is more or less abandoned. Pylsp is the new pyls, but there seems to be no difference in this regard. (Well, pylsp is almost the same as pyls.)
Have you tried xref-find-definitions or xref-find-references? Maybe those help you jump to the point of the declaration.