-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote-SSH Unable to Select Interpreter #14935
Comments
@karrtikr your advice would be welcome. 🙂 |
Thanks for the bug report! We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue's priority. If you think your issue is more of a question or configuration problem rather than a bug, please ask on Stack Overflow with the Thanks for your understanding and patience! |
Hi @mitchellgordon95 👋 does the latest version of the extension fix the issue for you? |
Can you try adding
in your user and remote settings, and see if it fixes the issue for you? |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off. |
Environment data
python.languageServer
setting: Jedi/PylanceExpected behaviour
Actual behaviour
Yellow "Select Python Interpreter" prompt in bottom bar does not go away.
Auto complete does not work. (e.g. typing
os.make
does not suggestos.makedirs()
)Logs
Additional Comments
It seems two potentially weird things are happening here:
Selecting an interpreter on a remote machine updates the local settings.json, not the remote settings.json
The python extension attempts to read settings.json on the remote machine from
~/.config/...
. This would be correct if I was running Linux locally, but is incorrect when I am running a remote session. (Should be~/.vscode-server/...
)Local Machine Settings (OSX):
~/Library/Application\ Support/Code/User/settings.json
Remote Machine Settings (Linux):
/home/hltcoe/.vscode-server/data/Machine/settings.json
Non-existent Remote Settings:
/home/hltcoe/mgordon/.config/Code/User/settings.json
When selecting an interpreter in the GUI, my remote machine settings remain unchanged:
However, it (correctly) updates my local machine settings to this:
But it is checking neither of these when attempting to read the python path setting. So my current conclusion is that the python extension is not aware it is operating in a remote environment, which requires special considerations when updating and retrieving settings.
Interestingly, if I create the settings file it expects at
/home/hltcoe/mgordon/.config/Code/User/settings.json
with the following contents:I get a different error:
But that's maybe a separate issue.
The text was updated successfully, but these errors were encountered: