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.

Don't run "activateEnvironment" command in SSH private terminals

See original GitHub issue

The Remote-SSH extension starts a hidden remote terminal at one point to run some commands. In this issue https://github.com/microsoft/vscode-remote-release/issues/1760 people reported that the terminal was being shown to them, when it should never be shown because it sets a flag to be hidden. We realized that it is shown because this extension runs a command in it, and setting this setting fixes it:

"python.terminal.activateEnvironment": false

It sounds like the Python extension should be able to know that these terminals are not terminals in the user’s workspace, and should not touch them: https://github.com/microsoft/vscode-remote-release/issues/1760#issuecomment-571225397

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:13
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
karrtikrcommented, Jan 23, 2020

We’ve started working on it. #9584

1reaction
DonJayamannecommented, Feb 11, 2020

@karrtikr I’ve mentioned to @karthiknadig I have a PR for this. Will push today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spike - Don't run "activateEnvironment" command in SSH ...
Spike - Don't run "activateEnvironment" command in SSH private ... Since we only depend on the published packages and don't consume proposed ...
Read more >
Visual Studio Code terminal doesn't activate Conda environment
First, open the Anaconda prompt (How to access Anaconda command prompt in Windows 10 (64-bit)), and type: conda activate tom. To activate your...
Read more >
Settings Reference for Python - Visual Studio Code
Indicates whether to run a file in the file's directory instead of the current folder. terminal.activateEnvironment, true, Indicates whether to automatically ...
Read more >
SSH Essentials: Working with SSH Servers, Clients, and Keys
After connecting, all commands you type in your local terminal are sent to the remote server and executed there. In this cheat sheet-style...
Read more >
Rancher CLI Commands and Options
rm, Delete service, container, stack, host, volume ; run, Run services ; scale, Set number of containers to run for a service ;...
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