You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my home folder on Windows on my work machine, there's a OneDrive folder that causes oil to fail to render my home folder. I get this error notification:
I have no idea what makes this folder special enough to fail. The folder properties don't look special to me and yazi is able to render my home folder no problem. I can also explore inside that OneDrive folder with oil without problems. This really only occurs when trying to render the OneDrive folder.
Also when I navigate to my Windows home folder from inside my WSL instance, oil is able to render my home folder without problems as well.
What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
Have a OneDrive setup in your Windows home folder
Navigate to your home folder with oil
The buffer just shows Error: EINVAL: invalid argument: C:\Users\KaiMoschcau\\OneDrive - blecon GmbH
Expected Behavior
Oil should render the buffer as normal and allow me to move through my home folder.
Directory structure
Here's some yazi output of the folder structure for context. The folder OneDrive - blecon GmbH in the middle column is the selected one.
-- save as repro.lua-- run with nvim -u repro.lua-- DO NOT change the pathslocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "runtime", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
{
"stevearc/oil.nvim",
config=function()
require("oil").setup({
-- add any needed settings here
})
end,
},
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
Did you check the bug with a clean config?
I have confirmed that the bug reproduces with nvim -u repro.lua using the repro.lua file above.
The text was updated successfully, but these errors were encountered:
Interesting, so it seems like the issue is that we can't list a directory that is a reparse point? I don't know if those would show up as type "link" or as a normal directory, but perhaps the error happens when we're trying to read the link data.
Did you check the docs and existing issues?
Neovim version (nvim -v)
v0.11.0-dev-1335+g3f1d09bc94
Operating system/version
Windows 11 Enterprise 23H2 22631.4602
Describe the bug
In my home folder on Windows on my work machine, there's a OneDrive folder that causes oil to fail to render my home folder. I get this error notification:
I have no idea what makes this folder special enough to fail. The folder properties don't look special to me and yazi is able to render my home folder no problem. I can also explore inside that OneDrive folder with oil without problems. This really only occurs when trying to render the OneDrive folder.
Also when I navigate to my Windows home folder from inside my WSL instance, oil is able to render my home folder without problems as well.
What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
Error: EINVAL: invalid argument: C:\Users\KaiMoschcau\\OneDrive - blecon GmbH
Expected Behavior
Oil should render the buffer as normal and allow me to move through my home folder.
Directory structure
Here's some yazi output of the folder structure for context. The folder
OneDrive - blecon GmbH
in the middle column is the selected one.Repro
Did you check the bug with a clean config?
nvim -u repro.lua
using the repro.lua file above.The text was updated successfully, but these errors were encountered: