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
High CPU Usage when parsing fails? #114
Comments
I can't seem to really get the parser stuck, running a copy of that file. Copied to https://github.com/Razzeee/tree-sitter-elm/blob/master/examples/test.elm and running https://github.com/Razzeee/tree-sitter-elm/blob/master/package.json#L26 But I found the two errors I mentioned here. (one is inside a comment) |
It doesn't seem to matter what I change, even if I remove just the comment it happens. Even if I remove some type constructor or a type annotation |
Is it reasonable to consider a hotfix that'll timeout |
While I'm able to get the 100% cpu useage, I can't get a callstack that's similar or point's at Seems like we might need to revert to the old way of supplying tree-sitter. |
Not sure it really is The new tree should already be parsed at that point, so in theory it can't be the wasm update/the parser. |
If you can, please test with master. I will very likely prepare a release very soon. |
Tested on latest master and the issue no longer happens for me :-) |
Wow, that's great news. Will try it. |
Re-enabled for a whole work way, and it works smooth! (VSCode 1.36.1) |
This was reported on Slack and I think I found one way to reproduce it reliably, if anyone else can try it out it would be good to have confirmation!
Steps to Reproduce
git clone https://github.com/rtfeldman/elm-spa-example
src/Main.elm
From taking a profile while this is happening it looks like this is the callstack, it gets stuck somewhere in trying to find a function.
The text was updated successfully, but these errors were encountered: