Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When attempting to Refactor a code block (using Command Palette with Ctrl+Shift+P the “Refactor…”), the message “No refactorings available” is shown.
In former versions of Cursors, this worked. This is a regression.
This may be related to:
opened 07:41AM - 29 Mar 24 UTC
language server
pylance parity
Sometimes my method/variable is 'inserted', and I would like it to be 'extracted… ', so I would appreciate these features.
Maybe we could use [`rope`](https://github.com/python-rope/rope) to extract the variables????
Indeed, when looking for “Pyright” in my installed extensions, I find the extension “Python” by Anysphere.
Refactor does not work anymore for Python
Steps to Reproduce
Open a Python project in Cursor.
Ensure a Python interpreter is selected (command: “Python: Select Interpreter”).
Attempt to refactor code, and observe that its does not work.
Expected Behavior
Refactorings (Extract Variable, Extract Method) should be shown, as before.
Operating System
Linux
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.6.42
VSCode Version: 1.99.3
Commit: 5911e9593196a000b1c00553aaf03b0b32042b90
Date: 2025-09-20T17:16:56.346Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Linux x64 5.15.0-139-generic
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
2 Likes
ravirahman
(Ravi Rahman)
September 22, 2025, 8:38pm
3
Hi @etienneschalk , the Anysphere Python extension unfortunately does not support refactorings. I would recommend using the agent as an alternative here.
Thanks for your answer!
Using the agent and AI for refactoring tasks is overkill for me. This would definitely be nice to have this simple coding tool without using AI.
I wanted to open an issue directly on the Cursor Pyright GitHub repo, but it refers to the Microsfot’s Pyright
Is the BasedPyright repo the place to go for such issues ? (Support "Extract Method" | "Extract Variable" | "Move Symbol" · Issue #223 · DetachHead/basedpyright · GitHub )
Thanks!
2 Likes
Yeah, not being able to use Refactor seriously slows down my work. AI agents are not appropriate for this task.
1 Like
system
(system)
Closed
October 20, 2025, 5:32pm
7
This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.