Skip to content

Trigger Child Processes with a Command #45

Discussion options

You must be logged in to vote

Hi @VaniSachdev ,

Your source code seems correct, and I wonder if python itself is properly configured and available in shell. Have you tried to run python3 --version inside the Terminal?

I did a quick sample extension and it works as expected, as you can see in this print.

Maybe you could add child.sdterr.on to detect some error.

This is the full source of the extension, initially created with yo code

// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
import { spawn } from "child_process";

// this method is called when your extension is activated
// your extension…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VaniSachdev
Comment options

Answer selected by VaniSachdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants