Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to setup nvim-tree #2417

Closed
jafinn3 opened this issue Sep 13, 2023 · 1 comment
Closed

Unable to setup nvim-tree #2417

jafinn3 opened this issue Sep 13, 2023 · 1 comment
Labels
upstream: neovim neovim issue

Comments

@jafinn3
Copy link

jafinn3 commented Sep 13, 2023

Description

When starting up neovim, I get

E5108: Error executing lua ...local/share/nvim/plugged/nvim-tree.lua/lua/nvim-tree.lua:194: unexpected
event
stack traceback:
        [C]: in function 'nvim_create_autocmd'
        ...local/share/nvim/plugged/nvim-tree.lua/lua/nvim-tree.lua:194: in function 'create_nvim_tree_
autocmd'
        ...local/share/nvim/plugged/nvim-tree.lua/lua/nvim-tree.lua:358: in function 'setup_autocommand
s'
        ...local/share/nvim/plugged/nvim-tree.lua/lua/nvim-tree.lua:774: in function 'setup'
        /home/user/.config/nvim/lua/config/nvimtree.lua:17: in main chunk
        [C]: in function 'require'
        /home/user/.config/nvim/lua/init.lua:5: in main chunk
        [C]: in function 'require'
        [string ":lua"]:1: in main chunk
Press ENTER or type command to continue

Relevant config: require('nvim-tree').setup()

If I add a print(name) inside nvim-tree.lua::setup_autocommands, the last one to print before the error is WinResized

The failing version has a HEAD of 94c7c81. I haven't updated my plugins in a while, this issue just started popping up after updating today. Looks like before updating, I was on d1410cb. Reverting back to this version fixes the issue

Neovim version

NVIM v0.9.0-dev-135-g96cf385a7
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

Operating system and version

CentOS Linux release 7.9.2009

nvim-tree version

94c7c81

Clean room replication

No changes to nvt-min.lua

vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1

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",
      "nvim-tree/nvim-tree.lua",
      "nvim-tree/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 {}
end


### Steps to reproduce

`nvim`

### Expected behavior

_No response_

### Actual behavior

_No response_
@jafinn3 jafinn3 added the bug Something isn't working label Sep 13, 2023
@jafinn3
Copy link
Author

jafinn3 commented Sep 14, 2023

Fixed with update to a stable version of neovim

@jafinn3 jafinn3 closed this as completed Sep 14, 2023
@alex-courtis alex-courtis added upstream: neovim neovim issue and removed bug Something isn't working labels Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream: neovim neovim issue
Projects
None yet
Development

No branches or pull requests

2 participants