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

attempt to index a userdata value on subsequent calls to require #9

Open
TorchedSammy opened this issue Jun 12, 2022 · 3 comments
Open

Comments

@TorchedSammy
Copy link

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:

@euclidianAce
Copy link
Owner

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

@takase1121
Copy link
Contributor

According to @TorchedSammy it still happens.

@TorchedSammy
Copy link
Author

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

@euclidianAce euclidianAce reopened this Jun 17, 2022
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

3 participants