getcursor / cursor

The AI Code Editor
https://cursor.com
23.97k stars 1.51k forks source link

Auto Import Errors in Cursor with Pylance vs. Correct Imports in VS Code #1688

Open vegetabo opened 1 month ago

vegetabo commented 1 month ago

I'm encountering an issue with Pylance in the Cursor editor where auto imports are displayed incorrectly. The same code in VS Code shows the correct auto imports, but in Cursor, I get a list of incorrect imports. Has anyone else faced this issue or found a solution? Any help would be appreciated!

1) If you can, please include a screenshot of your problem in cursor & pylance:

image

in vs code & pylance:

image

2) Please include the name of your operating system MacOS 14.6.1

vegetabo commented 1 month ago

I find even in new project, the cursor will still display these incorrect candidates.

image