question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSH connection extremely unstable when Python extension is active

See original GitHub issue

Environment data

  • VS Code version: 1.42.0-insider
  • Extension version (available under the Extensions sidebar): 2020.1.58038
  • OS and version: Darwin x64 18.6.0
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A (but I get these commands printed in the terminal automatically on startup)
source /home/jonathan.pan/python/bin/activate
conda activate base
  • Relevant/affected Python packages and their versions: N/A
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): Enabled

Expected behaviour

SSH connection stays active when connections are active on both sides.

Actual behaviour

SSH connection on VSCode drops often (every few minutes) and sporadically. My coworkers and I all noticed this happening and stopped using the extension for awhile. However, I am writing some Python recently and the extension is extremely useful so would like to get it working.

When the Python extension is disabled, my connection never drops.

image

Steps to reproduce:

I have no idea why it’s doing it, however it is not affecting only me. It will eventually drop the SSH connection given enough time.

Logs

No output.

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
ArekSredzkicommented, Jun 6, 2020

Hi @karthiknadig, this issue is inhibiting the usage of this plugin by the many developers in our organization and it’d be a high value add to resolve. Any chance that this could be investigated soon?

1reaction
karthiknadigcommented, Oct 14, 2021

Starting with 2021.10.* we have switched over to the new system of discovering environments. There should be reduced load on the system on first load, and following loads should fair better. If you run into issue, please file a bug and make sure you use "python.logging.level": "debug" when filing with the logs.

@LinqLover Jupyter notebooks are now a separate extension so if this is continuing to be a issue, please file a bug on https://github.com/microsoft/vscode-jupyter

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixing VSCode when it keeps dropping ssh connections
I really like VSCode, and I use the ssh plugin to edit code on remote machines, but recently the ssh connection has been...
Read more >
Remote Development Tips and Tricks - Visual Studio Code
The Remote - SSH extension installs and maintains the "VS Code Server". The server is started with a randomly generated key, and any...
Read more >
Working Remotely with Visual Studio Code and SSH
Step 3: Install Extensions for VSCode. Using Visual Studio Code and SSH. Remotely connecting to the CS Department Linux computers; Using the terminal ......
Read more >
Chapter 5. Issues to be aware of for bullseye - Debian
No new SSH connections possible during upgrade. Although existing Secure Shell (SSH) connections should continue to work through the upgrade as usual, due...
Read more >
Troubleshooting GitLab Runner
Debug logging can be enabled in the global section of the config.toml by ... If you get the error Unable to query docker...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found