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

Add support to rope refactoring functions #915

Open
00sapo opened this issue Feb 26, 2021 · 3 comments
Open

Add support to rope refactoring functions #915

00sapo opened this issue Feb 26, 2021 · 3 comments

Comments

@00sapo
Copy link

00sapo commented Feb 26, 2021

A full list of functions available through rope is here:
https://github.com/python-rope/rope/blob/master/docs/overview.rst#refactorings

An example to use it in a text editor is here:
https://github.com/python-rope/ropevim

Having these features available would make pyls far better than others python language servers. Consider that the Jedi refactoring is much worst than the rope one.

@mpanarin
Copy link
Contributor

mpanarin commented Mar 1, 2021

How does it work with a bigger projects?
For me a simple variable rename with rope in a project I work on (~1 mil loc) just hangs the server completely for more than a few minutes, which is fairly unacceptable

@00sapo
Copy link
Author

00sapo commented Mar 2, 2021

I think that if it's the first time you use it in the project you have to wait until rope creates its cache. BTW I never work on so large projects... maybe it could be disabled when the project has more than N tags/symbols if it hangs

@lieryan
Copy link

lieryan commented Sep 25, 2022

pyls is no longer being maintained, you should switch to pylsp, which is a fork of this project maintained by the original author of pyls.

Once you install pylsp, you can install https://github.com/python-rope/pylsp-rope to get rope refactoring support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants