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

Error executing lua #23

Closed
an1ndra opened this issue Feb 7, 2022 · 4 comments
Closed

Error executing lua #23

an1ndra opened this issue Feb 7, 2022 · 4 comments

Comments

@an1ndra
Copy link

an1ndra commented Feb 7, 2022

I am getting this error when I try to run :NvimTreeToggle or when I use Space+e .
But this error show only first time.

E5108: Error executing lua ...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:165: Vim(echomsg):E114: Missing quote: "Error in packer_compiled: ...m/site/pack/packer/start/packer.nvim
/lua/packer/load.lua:83: Vim(lua):E5108: Error executing lua ...vim/site/pack/packer/opt/nvim-tree.lua/lua/nvim-tree.lua:128: attempt to index field 'Tree' (a nil value)
stack traceback:
        [C]: in function 'cmd'
        ...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:165: in function <...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:161>
        [string ":lua"]:1: in main chunk

Screenshot from 2022-02-07 18-43-19

@kabinspace
Copy link
Member

@meanindra This issue has been occurring since yesterday and it is found that it's actually coming from the plugin itself, have you tried refreshing neovim and trying again? Most of them got solved after opening and closing the nvim tree a few times. If that didn't help then let me know.

@kabinspace
Copy link
Member

kabinspace commented Feb 7, 2022

The author has mentioned that he is making some changes in the repo which may cause some unstability so until that moment you can replace this with the given code down below. Also don't forget to do :PackerSync once when you put the code.

    use {
      "kyazdani42/nvim-tree.lua",
      cmd = "NvimTreeToggle",
      commit = "8b27fd4",
      config = function()
        require("configs.nvim-tree").config()
      end,
      disable = not config.enabled.nvim_tree,
    }

@an1ndra
Copy link
Author

an1ndra commented Feb 7, 2022

Most of them got solved after opening and closing the nvim tree a few times

I've tried it and it works, but it's bit annoying, when first time I try to open NvimTree and error comes up

@kabinspace
Copy link
Member

@meanindra The code given above should completely get rid of the error when you open nvim-tree. It will roll back to the version where the plugin was stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants