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

:sh cargo run freezes #4155

Closed
ArikRahman opened this issue Oct 9, 2022 · 2 comments
Closed

:sh cargo run freezes #4155

ArikRahman opened this issue Oct 9, 2022 · 2 comments
Labels
C-bug Category: This is a bug R-duplicate Duplicated issue: please refer to the linked issue

Comments

@ArikRahman
Copy link

Summary

Howdy! When I start to get user input, the helix editor freezes and I'm unable to do anything, ctrl-c doesn't work and I end up having to kill the terminal.

Reproduction Steps

I tried this:

fn main() {
let mut line = String::new();
println!("Enter your name :");
let b1 = std::io::stdin().read_line(&mut line).unwrap();
println!("Hello , {}", line);
println!("no of bytes read , {}", b1);
}

:sh cargo run

I expected this to happen:
Runs and asks for user input

Instead, this happened:
Freezes until killed

Helix log

No response

Platform

Linux Fedora

Terminal Emulator

Gnome Default Terminal

Helix Version

helix 22.08.1 (66276ce)

@ArikRahman ArikRahman added the C-bug Category: This is a bug label Oct 9, 2022
@kirawi
Copy link
Member

kirawi commented Oct 9, 2022

:sh is meant for one-off commands and will freeze until the command is completed. You're looking for something like #1976

@the-mikedavis
Copy link
Member

Duplicate of #3950 and #3524

@the-mikedavis the-mikedavis closed this as not planned Won't fix, can't repro, duplicate, stale Oct 9, 2022
@the-mikedavis the-mikedavis added the R-duplicate Duplicated issue: please refer to the linked issue label Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

3 participants