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

Error writing input to shell-command: EPIPE #5

Open
BurhanDanger opened this issue Jul 23, 2018 · 6 comments
Open

Error writing input to shell-command: EPIPE #5

BurhanDanger opened this issue Jul 23, 2018 · 6 comments

Comments

@BurhanDanger
Copy link

:W                                                Error detected while processing function suda#BufWriteCmd[3]..suda#write[18]..suda#system:
line    5:
E5677: Error writing input to shell-command: EPIPE
Press ENTER or type command to continue

Steps to reproduce:
my /etc/hosts . Delete the very last line.

@lambdalisue
Copy link
Owner

Got it but a bit difficult to fix.

@thiswillbeyourgithub
Copy link

Is it not fixed ? suda doesn't seem functionnal to me for the same reason

@lambdalisue
Copy link
Owner

Unfortunately.

The link above has broken but it was because of the size of the file.
I've no idea how to fix this in a plugin level.

@thiswillbeyourgithub
Copy link

Oh indeed I was trying this with my huuuge hosts file. It seems to be working fine with smaller files.

Maybe you should ask for help there : neovim/neovim#8217, this is where I heard about this project

In the meantime, if you have time maybe you could try to find the size at which the bug is happenning ? Maybe also display a warning when the file size is too big and the file is uneditable ? Just my 2cts :)

Great addon anyway, have a nice day

@zeertzjq
Copy link
Contributor

I guess PR #35 can solve this problem. If #35 is merged, the full content of the file is no longer required to be sent through a pipe. (For Unix-like operating systems only)

@aarondill
Copy link
Collaborator

is this fixed? #35 was merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants