-
Notifications
You must be signed in to change notification settings - Fork 203
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
Opening cpp and zig files will hang for a while. #507
Comments
Not sure how to debug this with only this information, at least the |
update .some format is wrong . |
I don't face any issue without textobjects, so probably a problem from there? @clason can you move the issue to the textobjs repo? |
This comment was marked as duplicate.
This comment was marked as duplicate.
Same issue here, turning textobjects off and zig files open instantly, but with textobjects on it's like a second wait first time opening the buffer EDIT: Looking into it a bit further, this ONLY seems to be the case when the "select" module is enabled. All other textobjects modules run fine. What's even weirder is that these issues only seem to occur on my beefy Linux desktop workstation (AMD Ryxen Threadripper 2950X 32 cores, with 96GiB RAM), whereas everything is smooth on my Macbook M1 with 16 GiB RAM... EDIT2: I also experience significant slowdown when saving large zig files (on all my computers), but only if treesitter is used as foldmethod. Have worked around this with an auto command that sets foldmethod to manual when in zig files. So folding, and textobjects/select seem to be the issue. I can submit profiles of nvim while loading/saving files if interested |
I also consistently experience a slow (2-3s) opening of files, in my case they are dart files I did some digging and the cause seems to be the function call here:
EDIT: you can reproduce the freeze using this cmd:
EDIT: having removed this part from
I guess if it's slow for you then remove objects that have also this is the code that's called from lua that takes a long time https://github.com/neovim/neovim/blob/master/src/nvim/lua/treesitter.c#L1434 |
Describe the bug
when open cpp or zig file will hang a while
To Reproduce
min config
Expected behavior
shouldn't hange a while
Output of
:checkhealth nvim-treesitter
Output of
nvim --version
Additional context
2023-10-15.15-27-59.mp4
The text was updated successfully, but these errors were encountered: