I’m so confused. I had to reinstall windows so I exported my profile. Before the reinstall, I could use pylance (unless I’m losing my mind here) and use the quick fix box to fix import errors by importing the code in question. Now after the reinstall pylance doesn’t work and reading the forum threads it seems like it shouldn’t have been working before for me either. Jedi and Pyright, from what I can tell, do not have the imports-in-quick-fix-box feature so I’m not sure what to do here as I can’t program without this.
Did I hallucinate pylance working? I was on the same cursor version yesterday on the old OS install, not like it was 6 months ago.
Edit: Seems like what’s likely the case is that the version of pylance I had installed was a release prior to Microsofts decision to not allow its usage outside of VS code. I found some possible fixes here that can hopefully be applied to cursor too:
Edit2: the above fixes didnt work for me but I found a fork of pyright that has a lot of the pylance features including the one I needed in case anyone else stumbles upon this thread: https://open-vsx.org/extension/detachhead/basedpyright
I’ve been using basedright since I made the OP and it’s working well for my needs. The cursor team really needs to clarify this issue though, pretty big miss imo.
+1 on the above. I really like cursor, but missing pylance is enough for me to question the decision to switch. I’m confused because it “kind of” works? I see logs in the language server without any errors:
"partition_date_str" is not definedPylancereportUndefinedVariable
but I notice that there is a big delay between making changes and seeing the pylance error indications go away. Also using “CMD+.” to import missing functions / variables hangs every time.
Can the team please clarify what users are supposed to do here?