No matter what I set the Cursor Pyright type checking to it acts as if it is on all. I tried to turn it off completely and nothing. I can see the error/warning counter flash off and go back to what is it was before briefly when I switch options but they are all as if I have all selected.
Can I manually reinstall pylance or something? It is quite annoying to have error/warning spam all over my files especially considering all of the fall positives that come with basedpyright.
Steps to Reproduce
install Cursor Pyright
notice your files are full of errors and warnings
turn off type checking, or change it from the default basic
observe that all the warnings and errors are the same
Expected Behavior
Type checking options dropdown actually works (when is set it to off all warning and errors go away bare minimum)
Hi @ColemanDunn, thank you for this report. We have fixed this in version 1.0.6 of the Anysphere Python extension to provide defaults that are more similar to Pylance / VSCode.
Hi @GitandGeek, thank you for flagging this issue. We had an issue with the build in 1.0.6 where the stdlib typestubs were not copied in, causing the builtin types to be missing. Could you try upgrading to version 1.0.7 of the Python extension?
Still getting the issue. I uninstalled and reinstalled the plugin. Is there some sort of pyright cache i need to clear? Setting it to off does not work. Same issue as before where I can see the number of errors/warnings flash when I change the value in the dropdown. Even when i set it to off (which i do not prefer) I get seemingly all type checking and my file is full of errors and warnings (some being false positives)
Do you have a pyrightconfig.json or pyproject.toml file (with a [tool.pyright] section) in the project? If so, could you explicitly set the typeCheckingMode = "off" (or “basic” / “standard”) in that file? The settings in the editor are not applied if either of these files is present.
Making a pyrightconfig.json and changing the typeCheckingMode made the warning and error spam go away, but imports are not working anymore? They also aren’t working without a pyrightconfig.json now as well it seems. Here is some example code showing how excessive it is while having type checking set to off with no pyrightconfig.json.
No import suggestions for ClassFromAnotherFile or nothing. On vscode I was able to control import settings with the python.analysis.packageIndexDepths option. Is there an equivalent for cursor pyright?
Update (still not working): I have removed all python. Settings from my vscode settings.json. There are no python specific settings configured at all. I have uninstalled and reinstalled the Anysphere python extension (Cursor Pyright). I have type checking set to off, but it is reporting errors as if I have it set to the maximum settings. I can still see it flash when I change the type checking mode as if it is restarting with the new settings but then ignores them.
Is there any debug info I can look at or caches I need to clear? Here is a video of my tab always reporting errors in the top left despite the setting I pick.