-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Spike - Activation script sent to terminal after debugger starts (Use Conda run) #5664
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
Comments
Solution: Use VS Code debugger api to send the two commands separately:
|
Prescribed solution
|
for upstream: see microsoft/vscode#67692 |
To try this out, I added the following to if (!isExternalTerminal) {
const termArgs: DebugProtocol.RunInTerminalRequestArguments = {
kind: consoleKind,
title: 'Python Debug Console',
cwd: cwd,
args: ['echo', 'spam'],
env: env
};
this.debugSession.runInTerminalRequest(termArgs, 5000, (response) => {
if (response.success) {
resolve();
} else {
reject(response);
}
});
} Unfortunately, it opened a separate terminal for each request. We we're back to the drawing board. The only other realistic solutions (without upstream changes):
|
I ran into the following problems: A. So we have a few options at this point if we want to activate environments:
Might be necessary:
Other notes:
|
Spike
|
We have issues reported where:
We have experienced this today with:
pipenv shell
being sent after debugger scriptsconda activate ....
being sent after debugger scriptsThe text was updated successfully, but these errors were encountered: