-
-
Notifications
You must be signed in to change notification settings - Fork 638
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When create file or folder in nvim-tree:
E5108: Error executing lua: ...\pack\packer\start\nvim-tree.lua/lua/nvim-tree/utils.lua:180: attempt to index local 'ext' (a nil value)
stack traceback:
...\pack\packer\start\nvim-tree.lua/lua/nvim-tree/utils.lua:180: in function 'is_executable'
...er\start\nvim-tree.lua/lua/nvim-tree/explorer/reload.lua:67: in function 'reload'
...m-tree.lua/lua/nvim-tree/actions/reloaders/reloaders.lua:12: in function 'refresh_nodes'
...m-tree.lua/lua/nvim-tree/actions/reloaders/reloaders.lua:43: in function 'reload_explorer'
...t\nvim-tree.lua/lua/nvim-tree/actions/fs/create-file.lua:107: in function 'on_confirm'
...ools\neovim\nvim-win64\share\nvim\runtime/lua/vim/ui.lua:93: in function 'input'
...t\nvim-tree.lua/lua/nvim-tree/actions/fs/create-file.lua:64: in function 'handle_tree_actions'
...r\start\nvim-tree.lua/lua/nvim-tree/actions/dispatch.lua:120: in function 'dispatch'
...acker\start\nvim-tree.lua/lua/nvim-tree/actions/init.lua:258: in function <...acker\start\nvim-tree.lua/lua/nvim-tree/actions/init.lua:257>
Neovim version
NVIM v0.7.2
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compiled by runneradmin@fv-az276-503
Features: -acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM\sysinit.vim"
fall-back for $VIM: "C:/Program Files/nvim/share/nvim"
Run :checkhealth for more info
Operating system and version
Windows 10
nvim-tree version
Minimal config
vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvt-min/site]]
local package_root = "/tmp/nvt-min/site/pack"
local install_path = package_root .. "/packer/start/packer.nvim"
local function load_plugins()
require("packer").startup {
{
"wbthomason/packer.nvim",
"kyazdani42/nvim-tree.lua",
"kyazdani42/nvim-web-devicons",
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
},
config = {
package_root = package_root,
compile_path = install_path .. "/plugin/packer_compiled.lua",
display = { non_interactive = true },
},
}
end
if vim.fn.isdirectory(install_path) == 0 then
print "Installing nvim-tree and dependencies."
vim.fn.system { "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path }
end
load_plugins()
require("packer").sync()
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua setup()]]
vim.opt.termguicolors = true
vim.opt.cursorline = true
-- MODIFY NVIM-TREE SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
_G.setup = function()
require("nvim-tree").setup {}
endSteps to reproduce
- creating a folder or file in nvim-tree.
Expected behavior
No response
Actual behavior
Error arises when creating a folder(used minimal config to test). Creating file also have same issue.
It seems that file or folder was created but can not refresh.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
