Closed t18n closed 1 week ago
I found a workaround for now: after opening Nvim, I use Telescope to open a random file before open Oil, it will then work as normal. Hopefully this can be fixed :)
Since you can't reproduce the issue with a clean config, it's most likely interference with some other plugin. The message
E565: Not allowed to change text or change window
seems to be related to autocomplete. So maybe you're loading oil in the middle of a completion function somehow.
The last resort to figure out the conflict is always to :help bisect
FYI - I've got the same issue and use lazy.nvim
to pin to the commit 18272aba9d00a3176a5443d50dbb4464acc167bd
to make it works.
{
"stevearc/oil.nvim",
commit = "18272aba9d00a3176a5443d50dbb4464acc167bd",
opts = { }
}
FYI - It's working for me with last commit now.
Same, it's working again.
I've also noted that the "actions.save" which i had mapped is gone now, i replaced it with vim.cmd.w
@t18n does the most recent commit work for you as well?
@jellydn unfortunately commit = "18272aba9d00a3176a5443d50dbb4464acc167bd",
did not work for me.
@stevearc I updated to
"oil.nvim": { "branch": "master", "commit": "64a3a555b40d96faae488ed6cf5d0f8b38520891" },
but the issue persisted.
@t18n the only clue I have is that it might be related to autocomplete somehow. It's definitely a bad interaction with something else in your config, but without being able to reproduce it on my end I can't look into it. As mentioned before, you could try :help bisect
. Another place to look could be using :Lazy
to see what triggered the loading of oil.nvim
, because it looks like the error is happening in the setup function, so it's possible that oil is getting loaded in a weird or unexpected context.
I disabled lazy load for oil and now it works fine.
@Divelix that's it. Set lazy = false
fixed it for me. Thank you!
Did you check the docs and existing issues?
Neovim version (nvim -v)
0.10.0
Operating system/version
MacOS 14.4.1
Describe the bug
After updating to the latest stable Nvim version and the latest Oil, the plugin does not display the root directory anymore.
Error shown:
https://github.com/stevearc/oil.nvim/assets/14198542/36fc4cf6-6ece-4f9c-a2af-030b99feb2ff
What is the severity of this bug?
breaking (some functionality is broken)
Steps To Reproduce
Unfortunately I cannot reproduce this with the repro. So creating the issue with the hope to get some inputs.
Expected Behavior
Oil should not show any error and work with root directory
Directory structure
No response
Repro
Did you check the bug with a clean config?
nvim -u repro.lua
using the repro.lua file above.