Skip to content

fix: do not enqueue write operations on conflict #2055

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

Merged
merged 1 commit into from
May 11, 2023
Merged

fix: do not enqueue write operations on conflict #2055

merged 1 commit into from
May 11, 2023

Conversation

kittaakos
Copy link
Contributor

@kittaakos kittaakos commented May 9, 2023

Motivation

To fix non-functional save behavior when a file resource has conflicts.

Change description

All write operations are queued to overcome #437. This PR ensures that when an operation is already queued and fails due to conflict, do not queue the subsequent write operation; it's already queued.

2051.mp4

Other information

arduino/arduino-ide#1972 must still work.

437_still_ok.mp4

Closes #2051

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

@kittaakos kittaakos self-assigned this May 9, 2023
@kittaakos kittaakos added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels May 9, 2023
@kittaakos kittaakos requested review from AlbyIanna and per1234 May 9, 2023 13:37
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified this fixes #2051
Thanks Akos!

@kittaakos kittaakos merged commit 117b2a4 into main May 11, 2023
@kittaakos kittaakos deleted the #2051 branch May 11, 2023 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Save fails silently when sketch out of sync with file system
2 participants