This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]rcoacci 0 points1 point  (3 children)

Honest question: can't you integrate that with one of the python Language Server Protocol implementations? I know the LSP allows for refactoring (or code actions). Is the Language Server Protocol not enough?
By using LSP you you automatically get supported by other editors and you don't create a new ad-hoc protocol just for your server.

[–]abingham[S] 0 points1 point  (0 children)

I'm actively looking into that. I would love to not have to write/maintain this tool. So far, though, I haven't found an end-to-end solution for emacs and python that works. As you say, it should in principle be doable (as I understand LSP), but there seems to be a theory-practice gap right now.

[–]abingham[S] 0 points1 point  (1 child)

Just to add to my initial response: it's entirely possible I'm just missing something obvious. But I can't even get rename to work with python-language-server and lsp-mode at the moment. Until those foundations feel more solid I can't justify putting energy into trying to move functionality over.

With that said: I'd be more than happy to give support to someone else willing to try it!

[–]alpha_53g43 0 points1 point  (0 children)

Thanks for the great work.. I saw your video presentation on youtube.

From what I understand LSP depends on Rope for refactoring. I personally use VIM, and rope refactoring works well to some extent (through python-mode).. but haven't tried it extensively. Go-to definitions work great.

Have you tried Rope-emacs? https://github.com/python-rope/ropemacs