-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Closed as not planned
Labels
info-neededIssue requires more information from posterIssue requires more information from poster
Description
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.80.1
- OS Version: Ventura 3.5
Steps to Reproduce:
The last command kills the IDE with a popup "The window terminated unexpectedly (reason: 'clean-exit', code: '1')"
cmd := exec.Command("ssh", PortSsh, "-tt")
var stdOutBuffer, stdErrBuffer bytes.Buffer
cmd.Stdout = &stdOutBuffer
cmd.Stderr = &stdErrBuffer
commands := []string{
"",
"",
"sudo mysql-ro",
command,
"quit",
"exit",
"",
"", // last has to be an extra null for the join
}
stdin, err := cmd.StdinPipe()
if err != nil {
fmt.Println(err) //replace with logger, or anything you want
}
if err = cmd.Start(); err != nil { //Use start, not run
fmt.Println("An error occurred: ", err) //replace with logger, or anything you want
}
_, err = io.WriteString(stdin, strings.Join(commands, "\n")) // crashes and kills the IDE
Metadata
Metadata
Assignees
Labels
info-neededIssue requires more information from posterIssue requires more information from poster