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

Crashes on :sh cargo run #3950

Closed
ArikRahman opened this issue Sep 23, 2022 · 1 comment
Closed

Crashes on :sh cargo run #3950

ArikRahman opened this issue Sep 23, 2022 · 1 comment
Labels
C-bug Category: This is a bug R-duplicate Duplicated issue: please refer to the linked issue

Comments

@ArikRahman
Copy link

Summary

Simply running a hello world froze the terminal. Works outside of helix, but not inside helix.

Reproduction Steps

I tried this:

  1. Running this code:
  2. use std::io::{self, *};

macro_rules! love_you {
() => {
println!("I love you 2.")
};
}

fn call() {
let mut x = String::new();
io::stdin().read_line(&mut x).expect("Woah");
println!("{}", x);
}

fn main() {
love_you!();
println!();
call();
//test
}

I expected this to happen:
Cargo run works

Instead, this happened:
Freezes on :sh cargo run

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

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 Sep 23, 2022
@the-mikedavis
Copy link
Member

Duplicate of #3524

:sh runs commands from the shell synchronously. It's mostly meant for key-bindings or quick shell commands like :sh git status and isn't a replacement for #1976

@the-mikedavis the-mikedavis closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2022
@the-mikedavis the-mikedavis added the R-duplicate Duplicated issue: please refer to the linked issue label Sep 23, 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

2 participants