withastro / language-tools

Language tools for Astro
MIT License
240 stars 45 forks source link

🐛 BUG: Error detected while processing BufReadPost Autocommands for "*" #887

Closed asher-gh closed 1 week ago

asher-gh commented 1 week ago

Describe the Bug

Getting the following error when opening any astro file in the project

Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /usr/share/nvim/runtime/filetype.lua:35: Error executing lua: /usr/share/nvim/runtime/filetype.lua:36: BufReadPost Autocommands for "*"..FileTyp
e Autocommands for "*"..function <SNR>1_LoadFTPlugin[20]..script /usr/share/nvim/runtime/ftplugin/astro.vim[163]..function <SNR>43_CollectPathsFromConfig, line 11: Vim(let):E
474: Trailing comma: } }
stack traceback:
        [C]: in function 'nvim_cmd'
        /usr/share/nvim/runtime/filetype.lua:36: in function </usr/share/nvim/runtime/filetype.lua:35>
        [C]: in function 'nvim_buf_call'
        /usr/share/nvim/runtime/filetype.lua:35: in function </usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_buf_call'
        /usr/share/nvim/runtime/filetype.lua:35: in function </usr/share/nvim/runtime/filetype.lua:10>

Steps to Reproduce

  1. Clone the repo
  2. npm i
  3. open any astro file
Princesseuh commented 1 week ago

There's nothing we can do from this description. It seems to be triggering an error in your Neovim config.