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

Renaming file opens empty file and empty bak files #1128

Closed
internationils opened this issue Aug 12, 2024 · 2 comments
Closed

Renaming file opens empty file and empty bak files #1128

internationils opened this issue Aug 12, 2024 · 2 comments

Comments

@internationils
Copy link

  • Edit a file
  • save it
  • rename it in the navigation on the left
  • File shows empty and in read mode

image

  • closing and clicking on the renamed file in the navigation tries to load the .bak.md file

image

  • clicking on the .. and reopening gives the following, with a different bak file being opened (empty) and the real file being opened with content

image

@internationils
Copy link
Author

I was creating and removing files with a script and noticed that some things are not as atomic as I expected in WSL... maybe that is what is happening with the renaming?

        # remove it since it is autogenerated
        # does not work immediately, WSL filesystem is too slow to close it
        sleep 0.1
        rm -f $section

@RickStrahl
Copy link
Owner

Duplicate of #1141. Should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants