I installed the new version of cursor 1.2 after uninstalling the previous version, including intermediate files. After installing the extensions “Python” and “Python Debugger”, the behaviour is not as expected. It raises a lot of errors in my python scripts that are not properly assigned and were not raised before the update, including “reportAssignmentType”, “reportAttributeAccessIsue” and “reportArgumentType”. It seems like it is not getting the variable types and attributes properly. Visual Studio Code is working fine with the same code.
Steps to Reproduce
I installed cursor 1.2 and also tried with cursor 1.0. I installed the recommended Python extensions and this causes the errors. I deleted all the files from my previous installation (.~/Library/Application\ Support/Cursor and ~/.cursor ) to make sure there are not conflicts.
Expected Behavior
The same as before, raising the errors properly in my python code.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
I set cursorpyright.analysis.typeCheckingMode to off and now there are no warnings or errors in my Python code. Given that, should I assume the Python extensions “Python” and “Python Debugger” are behaving erratically and need to be deactivated? These extensions were working fine before the version update. Is there any chance this behaviour will be back to normal in future updates, so I can re-enable cursorpyright.analysis.typeCheckingMode?
Hi @machalen, you can customize which rules you’d like for the type checker – please see the docs at Config files - basedpyright. These settings can be set in the cursorpyright.analysis.diagnosticSeverityOverrides setting. The default for Pylance is somewhere between “Off” and “Basic”; please see these docs for the Pylance defaults.
The typeCheckingMode setting does not affect the Python Debugger or the underlying Python extension.