You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I first migrated my history into Google Drive, I encountered this error and there were several files of zero length in the folder... and files with a -2 appended. And indeed, when I look at the history directory, there's one file there with zero length:
Ideally, xonsh would avoid creating these corrupted history files by operating more robustly when the content is stored in Google Drive (or other cloud provider). I understand, however, that xonsh may be taking every reasonable attempt to write out the content and if the macOS or FileProvider or Google Drive can't save that content accurately, it may be out of the hands of xonsh.
At the very least, it would be nice if xonsh could report a more helpful error message and maybe even be tolerant to corrupt history files, such as by logging a warning about the file (or files) that couldn't be loaded, but load the rest.
Steps to Reproduce
Create a zero-length .json file in the history directory and launch xonsh.
For community
⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment
The text was updated successfully, but these errors were encountered:
There's some corruption in my xonsh history, probably because I've symlinked the history to store on Google Drive, leading to corruption:
Now when I start a new xonsh window and wait a short time for the history to load (I have a 1G limit for history), I see this traceback:
When this happens, no history is loaded.
When I first migrated my history into Google Drive, I encountered this error and there were several files of zero length in the folder... and files with a
-2
appended. And indeed, when I look at the history directory, there's one file there with zero length:Something about the interaction between xonsh and Google Drive has caused that file to be truncated to zero.
Deleting that file causes the error to go away.
xonfig
Expected Behavior
Ideally, xonsh would avoid creating these corrupted history files by operating more robustly when the content is stored in Google Drive (or other cloud provider). I understand, however, that xonsh may be taking every reasonable attempt to write out the content and if the macOS or FileProvider or Google Drive can't save that content accurately, it may be out of the hands of xonsh.
At the very least, it would be nice if xonsh could report a more helpful error message and maybe even be tolerant to corrupt history files, such as by logging a warning about the file (or files) that couldn't be loaded, but load the rest.
Steps to Reproduce
.json
file in the history directory and launch xonsh.For community
⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 commentThe text was updated successfully, but these errors were encountered: