-
Notifications
You must be signed in to change notification settings - Fork 29
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
Commit is aborted silently because of tonel error #341
Comments
Curious indeed. Did your broken package.st really consist of 'Package ' + 1024*'\0' in Git, or might there also be an error in the stream contents method, or even the Git blob reading? |
Missing commit reproduced with a fake error in SquotFileSystemStore>> I think we should open a separate issue for the broken package.st file and the Tonel package storing not being robust. |
Ah, I did not check that, sorry for that. For the future, I promise myself to always create a temporary copy of the broken image so I hopefully will be able to give you more information on these questions ... I'll open another issue for the tonel issue when it occurs again. :-) |
If the file comes from Git, you can just look at it in the history. |
Unfortunately I can't find it right now ... Ah, thank you for fixing the promise issue! |
Sometimes I'm wondering why no one is having so many problems with Squot like me. 😅
Suddenly, when I press Commit, the window closes, but a commit is not generated.
If I evaluate
self createVersion
manually in[] in [] in SquotInteractiveSave>>applyToWorkingCopy
, I get an error from tonel:MessageNotUnderstood: UndefinedObject>>addAll:
from[] in TonelWriterForFileSystem(TonelWriter)>>writePackage:
,currentPackageProperties
isnil
andself currentPackageProperties
raises another error:STONReaderError: At character 8: 'invalid input'
, which is probably becausegit:/packages/Sandblocks-Core/package.st
in this working copy has a content ((self packageDir / 'package.st') readStreamDo: [:stream | stream contents]
) like this:Package
, followed by 1024 null-characters.In the end, I was able to resolve the bug by deleting the broken file manually.
Still, here are some thoughts about this incident (which took me ~1h to resolve):
package.st
is damaged. How could this happen? Should this have been validated? Should there be a programmatic option to resolve such errors (without losing your entire working copy)?The text was updated successfully, but these errors were encountered: