-
Notifications
You must be signed in to change notification settings - Fork 73
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
Lost characters when typing fast and DOT parsing errors occur #236
Comments
Thanks for the report. I've seen this myself too. You might be able to avoid this problem most of the time, by setting the hold-off time to something like one second in the settings: I've struggled with similar bugs in the past:
This seems to be yet another flavor 😩 . |
Some debugging shows that this is the same problem as #22. Five years ago, I seem to have been aware of that this problem was not entirely fixed. See #22 (comment). |
…iting in the graph This is a rework of the DOT source handling to avoid a race caused by constantly feeding back the DOT source to the text editor. This race seems to have been latent, but an upcoming commit that changes to the new root API in React 18, which seems much faster, exposes it. Now, the DOT source is only fed back to the text editor when specifically requested. This is currenty done at startup and when editing the graph in the graph view. This is not expected to interfere with a user editing the text, since it should not be possible to do that at the same time. This also removes the now unnecessary workaround for #236 implemented in 0062951.
…ting in the graph This is a rework of the DOT source handling to avoid a race caused by constantly feeding back the DOT source to the text editor. This race seems to have been latent, but an upcoming commit that changes to the new root API in React 18, which seems much faster, exposes it. Now, the DOT source is only fed back to the text editor when specifically requested. This is currenty done at startup and when editing the graph in the graph view. This is not expected to interfere with a user editing the text, since it should not be possible to do that at the same time. This also removes the now unnecessary workaround for #236 implemented in 0062951.
This is a rework of the DOT source handling to avoid a race caused by constantly feeding back the DOT source to the text editor. Now, instead the DOT source is only fed back to the text editor when specifically requested. This is currenty done at startup, when using the open from browser dialog and when editing the graph in the graph view. This is not expected to interfere with a user editing the text in the text editor, since it should not be possible to do that at the same time. This also removes workaround for #236 implemented in 0062951 which is no longer needed. This was a latent race bug which was exposed by an upcoming commit that changes to the new, seemingly faster, root API in React 18. Without this, the upcoming commit would cause errors like this in the Cypress end-to-end tests: 1) Text editor A graph is rendered when DOT source code is typed slowly in the text editor: Timed out retrying after 10000ms + expected - actual -'Alce' +'Alice'
Below gif is the replay (2x times slower typing speed), i.e. the
l
letter is lost.The text was updated successfully, but these errors were encountered: