-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
on_stderr function doesn't excute #374
Comments
@williamhCode can you confirm that the command you are running definitely outputs to stderr as some programs don't always behave as expected in this regard |
Here is a video of me manually echoing to stderr. Also i just realized the stdout behavior is a bit weird. As soon as I type something in the terminal, it executes. Shouldn't it execute only when I run a command that outputs to stdout? Note: I tried it without tmux and still had the same behavior. |
@williamhCode just to clarify, this plugin essentially wraps neovim's native terminal which has some somewhat complex handling for things like this. I'd recommend trying to use |
ok thx, i'll try it out! |
I just confirmed it's neovim problem. But it seems like that's how it's intended to work with no plans to fix it (it's been around since 2015!!), which is quite troublesome. The reasoning and a workaround is explained here: |
Thanks for digging in @williamhCode I thought it might be something like that but glad to see that actually issue. I think in this case what I'll do is remove/refactor on stdout/stderr to be more generic like |
I have a simple on_stderr function in my setup function.
This prints and toggles the terminal if my terminal outputs to stderr. However, it doesn't seem to be working. I've tried using on_stdout and it works perfectly fine.
nvim version: v0.8.1
The text was updated successfully, but these errors were encountered: