Skip to content

Golang crash #189154

@dcwills

Description

@dcwills

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 poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions