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

Helix editr gets stuck when :sh sh #3524

Closed
marlonmp opened this issue Aug 23, 2022 · 6 comments · Fixed by #4156
Closed

Helix editr gets stuck when :sh sh #3524

marlonmp opened this issue Aug 23, 2022 · 6 comments · Fixed by #4156
Labels
C-bug Category: This is a bug

Comments

@marlonmp
Copy link

Summary

Helix editr get stuck when :sh sh

Reproduction Steps

I tried this:

  1. hx
  2. :sh sh

this happened:

helix editor get stuck forever like this

image

Helix log

~/.cache/helix/helix.log

Nothing in log file

Platform

Linux

Terminal Emulator

genome-terminal 3.44.1-1

Helix Version

22.03-687-ge4c9d408

@marlonmp marlonmp added the C-bug Category: This is a bug label Aug 23, 2022
@A-Walrus
Copy link
Contributor

This makes sense within how :sh currently works. It waits for the command to terminate, and since sh doesn't terminate (it waits for user input) helix will keep waiting.
#3029 will make the shell async and non blocking.
If what you were trying to achieve is having an interactive, integrated terminal within helix, then that might be addressed by #1976 in the future...

@SalahEddineGhamri
Copy link

SalahEddineGhamri commented Aug 28, 2022

The freeze happens with :sh nvim too

@dead10ck
Copy link
Member

Is this actually a bug? I'm not sure what you expected to happen?

@GabrielDertoni
Copy link
Contributor

Maybe for now it would be fine to just give EOF to these processes? It's a quick fix that sends a clear message that this sort of stuff is really not supported at the moment. #4156 implements that.

@Omnikar
Copy link
Contributor

Omnikar commented Oct 9, 2022

Interestingly, running :sh xplr with xplr installed actually works and brings up the application.

@dead10ck
Copy link
Member

dead10ck commented Oct 9, 2022

Interestingly, running :sh xplr with xplr installed actually works and brings up the application.

Yeah, it was very surprising to me that that actually comes up at all. But it's also surprising that bash sits and waits for input, since I wouldn't expect it to be attached to a tty. Seems like if we figure out how to make it so subprocesses don't get the tty, it would probably fix this (and break xplr, but that shouldn't work anyway)

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants