CodeEdit
CodeEdit copied to clipboard
🐞 Saving a file does not save pasted content
Description
All text is lost when saving as Plain Text File.
To Reproduce
- open new CodeEdit window
- type some text
- save as
Plain Text File
The file is saved but is empty - no text is found. The given file name is used and the file created at the selected location.
Expected behavior
Data should not be lost on save and a Plain Text File should be created with all the text that was there prior to saving.
Version information
CodeEdit: 1.0 (0) macOS: 13.1
Additional context
No response
@foss- this appears to be happening with other filetypes as well. This feels like a pretty serious regression...
I'm not able to replicate this...
@matthijseikelenboom Maybe share the steps you are taking when attempting to reproduce. Still reproduce here with 0.0.1 (15).
I'm not able to replicate this either. Step To Reproduce:
- Open CodeEdit
Create a new fileat Welcome Window- Type some text
- Save as
Plain Text File(.txt)
Tested on CodeEdit 0.0.1-alpha.15
Confirming above steps work now.
I am still able to reproduce the issue however with:
- open new file
- click into first line
- paste any text
- save as
plain text file
Empty file is stored.
I can replicate the problem with the new steps. But it seems that anything pasted into the editor won't be saved, the same problem for existing files, and it happens to all file formats.
To Reproduce:
- Open a file (By directly opening it or when having the folder opened)
- Paste anything anywhere
- Save by
File->Saveor byCommand + S
Edit: All contents could be saved after a keyboard interaction.
This seems to be related to copy/paste/undo/redo behavior. Try to undo your paste and you'll see it won't work. So it looks like it doesn't really gets pasted in the document in the first place.
That is fascinating....
Not sure what change resolved this problem, but it is gone in Version 0.0.3-alpha (32). Closing.