-
Notifications
You must be signed in to change notification settings - Fork 84
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
🐞 Crash when deleting text #196
Comments
Should there be debugging for beta versions of Xcode and macOS - with future changes and all? It may not apply to this, due to the error text. |
This should be a simple fix, it just needs a check to the |
Could you clarify? Do you mean debugging in the editor? |
I'm also experiencing this. It seems like adding a "guard set doesn't contain what we're adding" or similar would fix this |
I have a hunch this is fixed with #263. My guess is that two async operations were inserting into the same dictionary and causing a conflict that way. We'll keep it open for a bit and if it doesn't re-appear I'll close this. |
Description
I deleted a bunch of text from a file (select text + backspace), this caused CodeEdit to crash with the following error:
at
editState.touchedLayers.insert(layer)
(line 63 in TreeSitterClient+Edit)To Reproduce
Open file, delete bunch of text. I'm not sure if it's easily reproducible
Expected Behavior
No crash
Version Information
CodeEditTextView: 0.6.4
macOS: 14.0 beta 1
Xcode: 15.0 beta 1
Additional Context
I attached a video showing the issue. It crashes when I press backspace.
I'm not sure, but it seems to only happen when I delete text that is at the start of the file. I haven't seen it happen when I delete text in the middle of the file.
Screenshots
Screen.Recording.2023-06-14.at.20.19.00.mov
No response
The text was updated successfully, but these errors were encountered: