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

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

Closed
ghost opened this issue May 18, 2024 · 6 comments
Closed

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

ghost opened this issue May 18, 2024 · 6 comments

Comments

@ghost
Copy link

ghost commented May 18, 2024

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
Copy link
Collaborator

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 🙂.

@ghost
Copy link
Author

ghost commented May 18, 2024

Okay. I can just wait!

@PriceHiller
Copy link
Collaborator

Will be closed by #173

@PriceHiller
Copy link
Collaborator

Already resolved in #171 I believe

@ghost
Copy link
Author

ghost commented May 19, 2024

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
Copy link
Collaborator

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 🙂

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

1 participant