windwp / nvim-ts-autotag

Use treesitter to auto close and auto rename html tag
MIT License
1.54k stars 85 forks source link

module: 'nvim-treesitter.configs' not found #172

Closed fivepixels closed 2 months ago

fivepixels commented 2 months ago

Every time I install this plugin and run Neovim, I get this error. The thing is that I just installed it but did not configure anything. Even when I did use the setup function, I still got the exactly same error. Does anybody have any ideas for solving this problem?

Screenshot 2024-05-17 at 11 44 33 PM

--- all text

Error detected while processing /Users/cattynip/.config/nvim/init.lua:
E5113: Error while calling lua chunk: ...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:74: /Users/cattynip/.config/nvim/init
.lua../Users/cattynip/.local/share/nvim/site/pack/pckr/opt/nvim-ts-autotag/plugin/nvim-ts-autotag.vim, line 1: Vim(lua):E5108: Error ex
ecuting lua ...ckr/opt/nvim-ts-autotag/lua/nvim-ts-autotag/internal.lua:2: module 'nvim-treesitter.configs' not found:
        no field package.preload['nvim-treesitter.configs']
        no file './nvim-treesitter/configs.lua'
        no file '/opt/homebrew/share/luajit-2.1/nvim-treesitter/configs.lua'
        no file '/usr/local/share/lua/5.1/nvim-treesitter/configs.lua'
        no file '/usr/local/share/lua/5.1/nvim-treesitter/configs/init.lua'
        no file '/opt/homebrew/share/lua/5.1/nvim-treesitter/configs.lua'
        no file '/opt/homebrew/share/lua/5.1/nvim-treesitter/configs/init.lua'
        no file './nvim-treesitter/configs.so'
        no file '/usr/local/lib/lua/5.1/nvim-treesitter/configs.so'
        no file '/opt/homebrew/lib/lua/5.1/nvim-treesitter/configs.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './nvim-treesitter.so'
        no file '/usr/local/lib/lua/5.1/nvim-treesitter.so'
        no file '/opt/homebrew/lib/lua/5.1/nvim-treesitter.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        ...ckr/opt/nvim-ts-autotag/lua/nvim-ts-autotag/internal.lua:2: in function 'chunk'
        ...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:49: in function <...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/l
oader.lua:47>
        [C]: in function 'require'
        ...te/pack/pckr/opt/nvim-ts-autotag/lua/nvim-ts-autotag.lua:1: in function 'chunk'
        ...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:49: in function <...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/l
oader.lua:47>
        [C]: in function 'require'
        [string ":lua"]:1: in main chunk
        [C]: in function 'source'
        ...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:74: in function 'source_runtime'
        ...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:133: in function 'packadd'
        ...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:179: in function 'load_plugin'
        ...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:217: in function 'load_plugins'
        ...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:231: in function 'setup'
        ...s/cattynip/.local/share/nvim/pckr/pckr.nvim/lua/pckr.lua:60: in function 'add'
        /Users/cattynip/.config/nvim/lua/fivepixels/plugins.lua:3: in main chunk
        [C]: in function 'require'
        /Users/cattynip/.config/nvim/init.lua:3: in main chunk
stack traceback:
        [C]: in function 'source'
        ...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:74: in function 'source_runtime'
        ...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:133: in function 'packadd'
        ...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:179: in function 'load_plugin'
        ...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:217: in function 'load_plugins'
        ...nip/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:231: in function 'setup'
        ...s/cattynip/.local/share/nvim/pckr/pckr.nvim/lua/pckr.lua:60: in function 'add'
        /Users/cattynip/.config/nvim/lua/fivepixels/plugins.lua:3: in main chunk
        [C]: in function 'require'
        /Users/cattynip/.config/nvim/init.lua:3: in main chunk
PriceHiller commented 2 months ago

Hi @fivepixels, I've begun maintaining a fork over @ https://github.com/PriceHiller/nvim-ts-autotag/ that should be compatible with the latest breaking changes upstream until windwp hopefully comes back.

You may want to give it a shot until windwp is back 🙂.

fivepixels commented 2 months ago

Okay. I can just wait!

PriceHiller commented 2 months ago

Will be closed by #173

PriceHiller commented 2 months ago

Already resolved in #171 I believe

fivepixels commented 2 months ago

I still have the issue...

When I first installed this plugin again after removing it, I got this error,

Screenshot 2024-05-19 at 12 17 53 PM

After that, the long error below constantly showed up. The weird thing for both the past and now is that this error happens very sometimes when I open up the directory that does not use tsx or jsx, and it always shows this error when opening the directory that does have tsx or jsx files.

Screenshot 2024-05-19 at 12 18 11 PM Screenshot 2024-05-19 at 12 18 04 PM

I can see the source code for this plugin ~/.local/share/nvim/site/pack/pckr/opt/nvim-ts-autotag, and its commits are

Screenshot 2024-05-19 at 12 31 12 PM
PriceHiller commented 2 months ago

Should now be resolved with the merging of #173.

I'll be closing this issue as a result. If this is still a problem ping me and I'll investigate and reopen this issue.

Thanks 🙂