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

[Bug] nvim-treesitter behaves strangely for lua files on windows #10

Open
Shaobin-Jiang opened this issue May 9, 2024 · 1 comment
Open
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Shaobin-Jiang
Copy link
Owner

This following error frequently occurs:

.../nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid structure at position 3272 for language lua

A fix for similar issues can be viewed here, but I have not been able to find a way to remove the bundled queries that come with neovim.

This issue currently only occurs on Windows. My temporary solution is to override the vim._ts_parse_query function (see 1d0d30f). However, that definitely is not a nice solution. I'm open to suggestions here.

@Shaobin-Jiang Shaobin-Jiang added bug Something isn't working help wanted Extra attention is needed labels May 9, 2024
Shaobin-Jiang added a commit that referenced this issue May 13, 2024
@Shaobin-Jiang
Copy link
Owner Author

Added a commit that I think will fix this issue. But still I am going to leave it open for now before further testing is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant