-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
A hang occurs when typing source /dev/stdin
#3822
Comments
Yup, this is a bug that we've seen before. The last time it in Windows. |
Thank you for replying! I read #3785 and reproduced the bug on Windows. I thought that these are essentially same bugs because both In addition to this, I found:
|
On Windows we need to add all these, not just
I'm not sure all the items on Linux/Mac we need to ignore. I'm hoping that @jntrnr will be able to make these changes in the code that he's experimenting in. |
This issue is being marked stale because it has been open for 90 days without activity. If you feel that this is in error, please comment below and we will keep it marked as active. Otherwise, it will be closed in 10 days. |
Confirmed that this is still an issue with |
I just run into an issue that looks similar but unrelated to For me it happens when I target the file register ~/.cargo/bin/nu_plugin_net It hangs when I type the last character ( ~/.cargo/bin/nu_plugin_net and try to prepend it with It also hangs with nu -c "register ~/.cargo/bin/nu_plugin_net" but in this case Ctrl+c ends the command and I get the cursor back. Most other plugins don't cause this issue ( Same behavior in Kitty and Gnome Terminal
|
This is because you're trying to register a plugin that isn't compiled against the latest nushell and/or nushell has had signature changes that requires plugins to be recompiled. The plugin system is pretty brittle and unforgiving atm. If you try to use an old or incompatible plugin, you'll get this behavior. |
But nushell hangs before I can press enter to execute the command. |
Yes, I realize this. It's because nushell is doing it's thing without telling you about it as it's parsing your text. |
Ok, I wasn't sure this was clear. |
I think it's pretty much the same, although |
But both commands are not yet executed, or are they? |
I believe it's nushell trying to parse, not only the command line, but the files your typing on the command line, as you're typing. i could be wrong though. |
@fdncred In my case it seems to be related to plugin encoding, but I didn't get to the bottom of it yet. Somehow it gets stuck when it tries to read from the plugin. |
@zoechi You could be right but I tend to think it's more about calling outdated plugins as I've had this problem many times. |
@fdncred
and in the
It looks like there is no straight forward way to deal with blocking reads in rust. |
I'm not sure. I'm not familiar with these parts of the code base. I don't see anything else that uses ChildStdout, but maybe you could google for it? |
@fdncred it's just about reading from a file handle in a non-blocking way in Rust. |
Yes, definitely. It's always better to discuss on Discord than here. |
I looked into it (#3822 (comment)) but I won't have time anytime soon to work on a fix. Just in case my comments above led to the assumption, I'm working on it. |
Describe the bug
Nushel hangs when trying to type
source /dev/stdin
.To Reproduce
source /dev/stdin
n
is not displayedExpected behavior
It should not hang.
Screenshots

Configuration (please complete the following information):
Run
version | pivot
and paste the output to show OS, features, etc.Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: