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
This only happens if an LSP is active, and it does not happen for all LSPs. The error is thrown when using tsserver and marksman, but not when using texlab. Disabling LSP with :LspStop resolves the issue.
What is the severity of this bug?
blocking (cannot use plugin)
Steps To Reproduce
nvim -u repro.lua index.ts
Let LSP server install and close.
nvim -u repro.lua index.ts
(Observe one client is attached with :LspInfo)
:Oil and attempt to create a new folder
Expected Behavior
Oil should work when the LSP is active.
Directory structure
No response
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= {
"folke/tokyonight.nvim",
{
"stevearc/oil.nvim",
config=function()
require("oil").setup({
-- add any needed settings here
})
end,
},
-- lsp"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
{
"neovim/nvim-lspconfig",
},
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else hererequire("mason").setup()
require("mason-lspconfig").setup {
ensure_installed= { "tsserver" },
}
locallspconfig=require("lspconfig")
lspconfig.tsserver.setup {}
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.9.5
Operating system/version
Arch Linux (6.6.9)
Describe the bug
Oil throws the following error when attempting to create/delete files:
This only happens if an LSP is active, and it does not happen for all LSPs. The error is thrown when using tsserver and marksman, but not when using texlab. Disabling LSP with
:LspStop
resolves the issue.What is the severity of this bug?
blocking (cannot use plugin)
Steps To Reproduce
nvim -u repro.lua index.ts
nvim -u repro.lua index.ts
:LspInfo
):Oil
and attempt to create a new folderExpected Behavior
Oil should work when the LSP is active.
Directory structure
No response
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: