Skip to content
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

VSCode Remote (WSL) does not send Ctrl+C when executing windows application #212689

Open
clouds56 opened this issue May 14, 2024 · 0 comments
Open
Assignees

Comments

@clouds56
Copy link

Does this issue occur when all extensions are disabled?: Yes
(Only WSL enabled in host, no extension enabled in WSL)

  • VS Code Version: 1.89.1
  • OS Version: 10.0.22631 (Windows 11 23H2)

Steps to Reproduce:

  1. connect to any WSL2 with WSL extension
  2. run cargo run --target x86_64-pc-windows-gnu / cmd.exe /C tree / PING.EXE 1.1.1.1
// this file compiled to test.exe in target x86_64-pc-windows-gnu
use std::{thread::sleep, time::Duration};

fn main() {
  println!("hello");
  loop {
    sleep(Duration::from_micros(1000))
  }
}
  1. press ctrl+c after hello

Additional Information:

This works fine for me running tree/cmd.exe /C tree and interrupting.

I'm not sure what is the first tree you run here, it might be /bin/tree but not the built-in command in cmd.exe, are you in WSL environment?

@VSCodeTriageBot VSCodeTriageBot added the stale Issues that have not been triaged in an appropriate amount of time label May 21, 2024
@dbaeumer dbaeumer removed their assignment May 22, 2024
@dbaeumer dbaeumer removed triage-needed stale Issues that have not been triaged in an appropriate amount of time labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants