TS Parser failed #9270
Replies: 5 comments 9 replies
-
Can you take an asciicinema cast; the description is unclear what you mean. |
Beta Was this translation helpful? Give feedback.
-
From the log file it looks like we're giving up on parsing the files because we've hit an internal time limit. This is by design to make sure we don't spend too much work waiting on tree-sitter for especially large files. Can you link to the files that caused this? |
Beta Was this translation helpful? Give feedback.
-
This now happened in multiple repositories and with multiple languages. It's happened while looking through the Rust standard library and while viewing small, single files by themselves. It has even happened while editing a README so it is not associated with the size of the file. If you really want to see the repository it is my only pinned repo. This is where most of my encounters with this error happen but that's only because it's where I've been working. Helix is dropping its TS highlighting mid-edit on all sorts of documents. If other users experience this, they will not find this bug report in the issues because it was moved to discussions. |
Beta Was this translation helpful? Give feedback.
-
I am also experiencing this fairly frequently. It only started happening after I switched from the copr to the official Fedora package a few weeks ago. Perhaps it has something to do with how Fedora is building it? |
Beta Was this translation helpful? Give feedback.
-
Oddly enough, in my environment, I was able to get around this by creating a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
The editor frequently loses syntax highlighting for the active buffer. Other buffers still have syntax highlighting and closing and reopening the buffer restores syntax highlighting.
Reproduction Steps
This has been happening while editing Rust in a modestly-sized codebase but I have also experienced the issue with a JavaScript file.
Helix log
~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
kitty 0.31.0
Installation Method
dnf
Helix Version
helix 23.10
Beta Was this translation helpful? Give feedback.
All reactions