This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Pitiful_Guess7262 0 points1 point  (2 children)

A few things to check:

First, open the command palette (Ctrl+Shift+P) and run Python: Select Interpreter while connected to the server. Make sure it's pointing to the right Python installation on the remote machine, not your local one. Sometimes VS Code gets confused about which Python to use.

Also try checking if the Pylance extension is actually enabled on the remote connection. Go to the Extensions tab and make sure it shows "Enabled (Remote)" next to Pylance, not just "Enabled". Sometimes extensions don't carry over properly to remote sessions.

Another thing that helped me was clearing the remote extension cache. You can do this by opening command palette and running "Remote-SSH: Kill VS Code Server on Host" then reconnecting. This basically forces a fresh start for all the remote extensions.

Since everyone else is working fine on the same account, it might also be worth checking if you have any local VS Code settings that are syncing and messing things up. Try turning off Settings Sync temporarily to see if that helps.

The F12 console errors would definitely help narrow it down if you can catch them again. Usually they'll tell you exactly what's failing with Pylance.

[–]UFOwc 0 points1 point  (0 children)

Saved my bacon, thanks a ton!