-
Notifications
You must be signed in to change notification settings - Fork 5
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
Renaming plugin is invalid #86
Comments
I've tried it on a simplest of projects and it seemed to work for me without setting any options. You should enable I've also made an issue with some questions in the pylsp repo: python-lsp/python-lsp-server#255 |
Yeah, when I comment out that:
The plugins
Then I checked my PATH in Sublime Text, it contained the path |
This could mean that you are trying to rename file that is not within a project. You should make sure that the project folder is added to the side bar. You can also run |
Thanks for your reply:-) Indeed, it is not a project file, and it is a single simple script. After your comment, I enabled Troubleshoot Server, but I can't find any exceptions. The information captured is: Gathered Troubleshoot info And warnings in the log panel:
I tried to change the name of a variable within a file in my project and it had no problem. So I wonder if it is because of a single file that it can't be renamed? |
Yes, pylsp requires the file to be in a workspace folder so you need your file to be in a folder added to the ST sidebar (don't need to save it as a project). I guess the messaging in pylsp could be clearer and exposed to the user (not only in the logs but in the UI). But that would have to be done in the pylsp repo. |
When I try to modify the function name, after typing the Command Palette
LSP:Rename
, the status bar prompts that:Before I added the User configuration file, I found the plugin
jedi_rename
could not be found.The text was updated successfully, but these errors were encountered: