-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Sprig code editor V2 not saving things properly on firefox on linux #919
Comments
Are you able to give reproducible steps so I can test this? Saving works for me. When you say "sometimes doesn't", is it erroring, getting stuck, or saying saved but not actually saving? |
Ofc, it says saved but when i close firefox and then open it again it often does not save even if it says its saved at the top you go to the new editor and you code i don't know if copy pasting things changes the behavior of the save, maybe it only saves things when you type and not when you paste things, it doesnt seem to be that tough because i can copy paste sometimes and it works, i will try to see if i see anything in the console |
i don't know what else i can show you because i don't know whats happening other than that |
I haven't been able to reproduce this at all. @grymmy do you think you could sanity check me and give it a go as well. |
@Patcybermind Given @kognise wasn't able to repro, can you please either a) Provide clearly articulated steps to reproduce this issue (like step 1, go here. step 2, click this button. etc) I think without some help from you, @Patcybermind, it'll be difficult to get to the bottom of this efficiently... |
ok ill try my best :
I will share a screen recording with more details too |
Screencast from 2023-03-16 06:37:26 PM.webm
|
and heres the neofetch output
|
i think and hope this is enough! |
@Patcybermind Thank you for the excellent video and explanation of your setup. For those looking for the money shot in the vid, 2:15 shows the editor clearly saying text was saved, and then firefox is closed and reopened to the same URL, and boom Pat's changes are gone. RE: the Moving this to the bug queue with high priority. |
Thank you SO SO much for your reproduction! I was able to reproduce macOS Firefox. Some details: Graham is correct, the I discovered that the editor is actually saving the file properly! This bug only occurs if "Open previous windows and tabs" is enabled in Firefox preferences; for some reason when the tab is restored the original content loads in rather than the new content. If you reload the tab without making any changes, the code will actually be restored! Will do further investigation into this to figure out what layer this bug is at. |
Looks like I fixed this in 47b2368 (PR incoming) but for future regressions: this can be easily reproduced/tested with Ctrl-Shift-T. |
@kognise you are right i just need to reload the tab! |
Seems like this issue is happening again on firefox (see issue #1225) |
a user also reported this issue happening on Edge |
it sometimes saves and sometimes doesnt so i have to keep backups
The text was updated successfully, but these errors were encountered: