Skip to content
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

File is saving 2 times #6560

Closed
not-authorized opened this issue Dec 19, 2024 · 3 comments
Closed

File is saving 2 times #6560

not-authorized opened this issue Dec 19, 2024 · 3 comments

Comments

@not-authorized
Copy link

not-authorized commented Dec 19, 2024

Description of the bug

As a user, I want to save a file. The application saves it 2 times in a row.

Steps to reproduce

  1. Open any file to edit.
  2. Save it.

Expected behavior

One write operation to the file system should be done per one save.

Actual behavior

There are 2 write operations to the file system per save.

Sublime Text build number

4180

Operating system & version

Win10

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information

No response

@BenjaminSchaaf
Copy link
Member

Does it happen in safe mode? How are you seeing 2 saves?

@deathaxe
Copy link
Collaborator

According to procmon ST actually appears to invoke 2 (different kinds of) write operations when saving, even in (SAFE MODE).

grafik

But compared to the dozens of QueryBasicInformationFile calls etc. and even more heavy FS operations when plugins are involved, that's just nothing I'd even pay attention to at all. Maybe even caused by an implementation detail of Windows API.

That's how saving a REAMDE.md in SAFE MODE looks like

grafik

@jwortmann
Copy link

Duplicate of #4161 ?

@deathaxe deathaxe closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants