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

Can't write files to directory (E17: is a directory) #45

Open
bscuron opened this issue Jul 29, 2022 · 9 comments
Open

Can't write files to directory (E17: is a directory) #45

bscuron opened this issue Jul 29, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@bscuron
Copy link

bscuron commented Jul 29, 2022

When I try to write a file to a directory I get an error: "E17: is a directory". I am forced to write to the directory using ":w!"

I am only having this problem on MacOS. In Ubuntu WSL I am able to write files no problem.

@lourenci
Copy link

Hey, @bscuron.

Is this happen to you on nvim stable? I'm having the same problem here, though only in nvim nightly.

@bscuron
Copy link
Author

bscuron commented Jul 31, 2022

Hey, @bscuron.

Is this happen to you on nvim stable? I'm having the same problem here, though only in nvim nightly.

On nightly, will try stable.

@bscuron
Copy link
Author

bscuron commented Jul 31, 2022

Hey, @bscuron.

Is this happen to you on nvim stable? I'm having the same problem here, though only in nvim nightly.

Stable works for me. When I get some time, I will check and see what can be causing this in nightly.

Thanks!

@bscuron bscuron closed this as completed Jul 31, 2022
@elihunter173
Copy link
Owner

Might be worth asking in the Neovim Matrix. I experienced a similar issue awhile back which IIRC was caused by nightly changing the default shortmess options. I'll try to ask the Neovim Matrix and/or bisect Neovim to see what happened

@luxus
Copy link

luxus commented Aug 27, 2022

@elihunter173 any news on that? would like to use the addon with the nightly

@elihunter173
Copy link
Owner

Thank you for the reminder! I'll investigate and ask on the matrix chat today. Re-opening until this gets sorted out

@elihunter173 elihunter173 reopened this Aug 28, 2022
@elihunter173 elihunter173 added the bug Something isn't working label Aug 28, 2022
@elihunter173 elihunter173 changed the title Can't write files to directory Can't write files to directory (E17: is a directory) Aug 28, 2022
@elihunter173
Copy link
Owner

Note: As a workaround you can either directly invoke DirbufSync or you can issue :w! (:w! pointed out by @matu3ba)

@elihunter173
Copy link
Owner

elihunter173 commented Aug 29, 2022

I experienced a similar issue awhile back which IIRC was caused by nightly changing the default shortmess options

Here's the old issue + PR I mentioned earlier: neovim/neovim#18295 + neovim/neovim#18296

@elihunter173
Copy link
Owner

Just did a bisect. This issue was introduced by neovim/neovim@0cf5cd1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants