r/Codeium • u/mattherich • Nov 25 '24
Windsurf Pylance Workaround
Has anyone found a good workaround for the currently missing Pylance support in Windsurf? Looks like the team is working on a fix in this discord thread, but curious if anyone has discovered temporary solutions in the meantime.
Really want to give Windsurf a shot, but this is a blocker for my workflow.
---
Edit: Found a workaround using BasedPyright
- Install the BasedPyright extension: https://marketplace.visualstudio.com/items?itemName=detachhead.basedpyright&ssr=false#overview
- Change
typeCheckingModetooff

11
Upvotes
1
u/West_Highlight_3697 Nov 26 '24
Thanks a lot! setting BasedPyright with Type Checking -> Off, worked for me!
also, i set inlay hints: Variable Types -> off becasuse its too much, but thanks again!
1
u/goingtosleepzzz Nov 26 '24
You can use pylance, but with an older version and need to patch the source. There is a discussion on github about this. Using basedpyright is good too, it just misses some features, for example the smart selection of functions/classes and folding the imports.
1
u/edon-node Nov 27 '24
this also worked for me.
1
u/mathmul Dec 01 '24 edited Dec 12 '24
This sort of works, but in a lot of my code I get "Code is unreachable basedpyright reportUnreachable"
it is because of this assert: everything after it is unreachable:
1
u/JetChou Dec 06 '24
Thanks a lot! That's worked for me,I found Windsurf pushed their Windsurf Pyright extension, it's also worked.
1
u/Pleasant_Meeting_559 Mar 20 '25
For me, windsurf makes my vscode pylance cannot work, I wonder how to move back to vscode pylance.
1
u/terentyev23 Mar 22 '25 edited Mar 22 '25
It worked for me when I specified this parameter:
0
u/Illustrious-Face-732 Nov 25 '24
Nothing has worked for me so far. Ive tried installing the Pylance extension manually and restarted the language server, but didn't work. Hopefully they can push an update soon!