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

Switching between projects containing files with shared name and path can overwrite files. #458

Open
HB-Stratos opened this issue Feb 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@HB-Stratos
Copy link

Replication Steps

  • create a project named p1
  • create a DF in p1 and save it as 1
  • create a second project named p2
  • create a DF in p2 and also save it also named 1
  • modify the DF in p2 in any way (I created an abs with a const of zero)
  • switch to project p1 (expected -> The content of 1 from p1 replaces the content from p2)
  • switch back to project p2
    --> The content of 1 from project p1 has overwritten the content of 1 from p2. The contents of the file in p2 have been destroyed. Undo can sometimes undo this change.

Proposed Fix

Make the editor force clear the selected file on project switch. Though this issue and #457 really point towards a general design flaw with the editor being global instead of actually file specific.
Another consideration would be to introduce an explicit save button. The current instant autosaving is prone to overwriting files with the current issues.

@misode misode changed the title [DF Generator] Switching between projects containing files with shared name and path can overwrite files. Switching between projects containing files with shared name and path can overwrite files. Feb 1, 2024
@misode misode added the bug Something isn't working label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants