ltreesitter icon indicating copy to clipboard operation
ltreesitter copied to clipboard

attempt to index a userdata value on subsequent calls to require

Open TorchedSammy opened this issue 2 years ago • 3 comments

i noticed while trying to add treesitter support to lite xl, any calls after the 1st to ltreesitter.require causes an attempt to index a userdata value error. it seems that on the call after 1st it returns a plain userdata value (somehow) instead of an ltreesitter parser as testing in lua repl shows:

TorchedSammy avatar Jun 12 '22 20:06 TorchedSammy

I've fixed this on my end with the above commit. Thanks for reporting and let me know if the issue persists!

euclidianAce avatar Jun 15 '22 10:06 euclidianAce

According to @TorchedSammy it still happens.

takase1121 avatar Jun 15 '22 15:06 takase1121

(in lite-xl; seems to be fixed with the same testing in lua repl)

TorchedSammy avatar Jun 17 '22 01:06 TorchedSammy