nvim-treesitter / nvim-tree-docs

Code documentation built with treesitter
223 stars 10 forks source link

TYPESCRIPT: Error invalid node type at position 3324 #14

Closed dominikhaid closed 2 years ago

dominikhaid commented 3 years ago

Typescript often throws the following error:

Error executing vim.schedule lua callback: .../start/navigator.lua/lua/navigator/lspclient/clients.lua:343: Vim(lua):E5108: Error executing lua ...are/nvim/share/nvim/runtime/lua/vim/treesitt er/query.lua:161: query: invalid node type at position 3324 Error is always on 3324 and happens only in pure ts files tsx is not erring, sadly gdd works in none of both.

Note: I done the ansiseed fix

juanramirezc2 commented 2 years ago

I'm facing this issue too. it seems like the queries this extension is generating are not valid grammar for typescript parser

steelsojka commented 2 years ago

I believe some nodes changed names or were removed since the queries were written. Ill have to hunt down which one it is.

On Fri, Nov 19, 2021, 3:29 PM Juan Ramirez @.***> wrote:

I'm facing this issue too. it seems like the queries this extension is generating are not valid grammar for typescript parser

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nvim-treesitter/nvim-tree-docs/issues/14#issuecomment-974485200, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPXOSTGG5MHZMO5FDQSGHTUM26UVANCNFSM5FFB5AEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

steelsojka commented 2 years ago

This is fixed in the latest master.

juanramirezc2 commented 2 years ago

Thank you @steelsojka 🥳