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
When running on my mounted AFS Cell, running nvim on the oil buffer opens it with modifiable off. To work around this, I must call :set ma each time to edit the Oil Buffer and write to it.
I made a PR that fixes the problem by using the uv.fs_access similar to access(2) on unix and GetFileAttributesW() on Windows that I will link. #555
The image here shows that the owner of the file is not my own uid, but a placeholder/alternate id of me.
What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
Be in in the AFS Mounted directory
Create a test/ directory
nvim -u repo.lua
:Oil .
press o
Expected Behavior
When opening and writing to the Oil Buffer, modifiable should be on.
Directory structure
/afs/.../test/example.txt
/afs/.../test/repo.lua
Repro
-- 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= {
{
"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",
})
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:
Did you check the docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.1
Operating system/version
Ubuntu 22.04.5 LTS
Describe the bug
When running on my mounted AFS Cell, running nvim on the oil buffer opens it with modifiable off. To work around this, I must call
:set ma
each time to edit the Oil Buffer and write to it.I made a PR that fixes the problem by using the uv.fs_access similar to
access(2)
on unix andGetFileAttributesW()
on Windows that I will link. #555The image here shows that the owner of the file is not my own uid, but a placeholder/alternate id of me.
What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
Expected Behavior
When opening and writing to the Oil Buffer, modifiable should be on.
Directory structure
/afs/.../test/example.txt
/afs/.../test/repo.lua
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: