Skip to content

Saving a file can overwrite another already-open file (data loss) #487

@LinuxBoy-96

Description

@LinuxBoy-96

I found a data-loss issue related to saving files that share the same filename.

Steps to reproduce:

Open a file named test.rs
Open another blank file.
Save that files with name test.rs, in the same directory.
Modify both files back and forth like you would do, think it's the same file. This happen easilly if many files are open while working.
Close and save all the open files.

Observed behavior:

Only the last closed and saved file matter.
This results in silent data loss, as the content of the first file is replaced.

This Issue can already be fixed if #479 is merged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions