mfussenegger / nvim-treehopper

Region selection with hints on the AST nodes of a document powered by treesitter
GNU General Public License v3.0
426 stars 17 forks source link

Column value outside range #8

Closed pittcat closed 2 years ago

pittcat commented 3 years ago

https://asciinema.org/a/fJ6lGBL3z0bBhBuBJz3Igr3QV The error only occurs before formatting the code.

pittcat commented 3 years ago

Error info:

E5108: Error executing lua ...e/pack/packer/start/nvim-ts-hint-textobject/lua/tsht.lua:108: Column value outside range

Is there a temporary solution for the error ? @mfussenegger

mfussenegger commented 3 years ago

Could you paste the source so that I could reproduce it?

pittcat commented 3 years ago

You change reproduce it by the sample code:

for i in range(1, 4)
  echo "count is" i
endfor
MuhammadSawalhy commented 3 years ago

I got the same issue

E5108: Error executing lua ...config/nvim/plugins/nvim-ts-hint-textobject/lua/tsht.lua:108: Column value outside
range

Here is the file that I used in this video: https://github.com/MuhammadSawalhy/my-config/blob/master/linux/.config/nvim/plugins.vim

https://user-images.githubusercontent.com/42011920/132737815-06e2e041-5a0d-4799-8f27-8defa84a8d98.mp4

mfussenegger commented 2 years ago

Could you try with https://github.com/mfussenegger/nvim-treehopper/pull/11 ?

mfussenegger commented 2 years ago

I assume this got fixed with https://github.com/mfussenegger/nvim-treehopper/pull/11