Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

assertion failed: self.is_char_boundary(n) #31

Closed
Sarrus1 opened this issue Jul 6, 2023 · 0 comments
Closed

assertion failed: self.is_char_boundary(n) #31

Sarrus1 opened this issue Jul 6, 2023 · 0 comments
Labels
crash Causes a crash

Comments

@Sarrus1
Copy link
Owner

Sarrus1 commented Jul 6, 2023

This seems to happen due to a race condition:

When initially parsing files, we read those files from disk.
If the files are edited by the user before we are done parsing, we might try to insert characters that are out of bounds.

This might also be due to (re)loading the workspace containing an unsaved file.
If the disk content is different than the one in memory, we start with an incorrect text and subsequent modifications might fail.

@Sarrus1 Sarrus1 added the crash Causes a crash label Jul 6, 2023
@Sarrus1 Sarrus1 closed this as completed in 2543c3f Jul 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash Causes a crash
Projects
None yet
Development

No branches or pull requests

1 participant