Discuss Scratch

powerpoint56
Scratcher
1000+ posts

Need help with Squeak

In my mod Explore, whenever I try to file-out ScriptableScratchMorph and other places, I keep getting errors. I tried filing-out from the browser (below) and the change sorter, but neither worked.

Can someone help me fix them?
Thanks!



Errors:

When filing-out from browser
message not understood: runs
UndefinedObject(Object)>>error:
UndefinedObject(Object)>>doesNotUnderstand:
StandardFileStream(WriteStream)>>nextChunkPutWithStyle:
RemoteString>>string:onFileNumber:toFile:
RemoteString class>>newString:onFileNumber:toFile:
ClassOrganizer>>fileOutCommentOn:moveSource:toFile:
ClassOrganizer>>putCommentOnFile:numbered:moveSource:forClass:
ScriptableScratchMorph class(ClassDescription)>>fileOutOn:moveSource:toFile:
ScriptableScratchMorph class(Class)>>fileOutOn:moveSource:toFile:initializing:
ScriptableScratchMorph class(Class)>>fileOutOn:moveSource:toFile:

When filing-out from change sorter
message not understood: fileOutClass
PluggableListMorphByItem(Object)>>error:
PluggableListMorphByItem(Object)>>doesNotUnderstand:
ChangeSorter(StringHolder)>>perform:orSendTo:
[] in MenuMorph>>invokeItem:event:
CursorWithMask(Cursor)>>showWhile:
MenuMorph>>invokeItem:event:
MenuItemMorph>>mouseUp:
HandMorph>>handleMouseUp:
HandMorph>>handleEvent:
HandMorph>>processEvents

It looks like something is wrong with “fileOutClass” (from ScriptableScratchMorph), but I'm not sure.

The .image is here: http://explore-programming.weebly.com/download.html.

Last edited by powerpoint56 (Feb. 16, 2014 22:32:45)

nXIII
Scratcher
1000+ posts

Need help with Squeak

Do not post a request for help without detailed information and an indication of what you've already tried.
powerpoint56
Scratcher
1000+ posts

Need help with Squeak

nXIII wrote:

Do not post a request for help without detailed information and an indication of what you've already tried.
Ok, fixed.
nXIII
Scratcher
1000+ posts

Need help with Squeak

I keep getting errors.
You need to specify which errors. There's more than one kind. Copy-paste the error message from Squeak or take a screenshot of the debugger window. Even more importantly, pay attention to the error message. Squeak debuggers tell you an enormous amount about both what went wrong and where it went wrong, and if you read the error message carefully you can get a much better understanding of why it didn't work. Once you have that understanding, you'll be able to try doing things to fix the error (make sure you save your changes in a new change set so you can revert them if necessary).

If you do all of that and you still can't figure it out, it shows that you have spent time trying to fix the problem yourself before coming to the forums. This encourages people to help you because they know that you respect their time and have tried your best to solve the problem before you ask them to solve it for you.
powerpoint56
Scratcher
1000+ posts

Need help with Squeak

nXIII wrote:

I keep getting errors.
You need to specify which errors. There's more than one kind. Copy-paste the error message from Squeak or take a screenshot of the debugger window. Even more importantly, pay attention to the error message. Squeak debuggers tell you an enormous amount about both what went wrong and where it went wrong, and if you read the error message carefully you can get a much better understanding of why it didn't work. Once you have that understanding, you'll be able to try doing things to fix the error (make sure you save your changes in a new change set so you can revert them if necessary).

If you do all of that and you still can't figure it out, it shows that you have spent time trying to fix the problem yourself before coming to the forums. This encourages people to help you because they know that you respect their time and have tried your best to solve the problem before you ask them to solve it for you.
Yeah, I have done a lot of testing and looked at the error messages. They've been very scattered and hard to understand, but I will post them.
nXIII
Scratcher
1000+ posts

Need help with Squeak

Post your image.
powerpoint56
Scratcher
1000+ posts

Need help with Squeak

The download page is here: http://explore-programming.weebly.com/download.html. You can just get the .image in the second download (“for another OS”).

Last edited by powerpoint56 (Feb. 16, 2014 22:32:57)

nXIII
Scratcher
1000+ posts

Need help with Squeak

powerpoint56 wrote:

The download page is here: http://explore-programming.weebly.com/download.html. You can just get the .image in the second download (“for another OS”).
…and the changes file.
powerpoint56
Scratcher
1000+ posts

Need help with Squeak

nXIII wrote:

powerpoint56 wrote:

The download page is here: http://explore-programming.weebly.com/download.html. You can just get the .image in the second download (“for another OS”).
…and the changes file.
I lost it, which may be the problem. My old computer died, and when I transferred Explore over I lost the changes file. (I think I had the same problem before the changes file disappeared, but I can't be sure)

Last edited by powerpoint56 (Feb. 16, 2014 23:00:42)

nXIII
Scratcher
1000+ posts

Need help with Squeak

OK, somehow most of your classes had a nil classComment. Run this code from anywhere:
Metaclass allInstances do: [:class | [class comment] ifError: [class theNonMetaClass organization classComment: '']]
powerpoint56
Scratcher
1000+ posts

Need help with Squeak

nXIII wrote:

OK, somehow most of your classes had a nil classComment. Run this code from anywhere:
Metaclass allInstances do: [:class | [class comment] ifError: [class theNonMetaClass organization classComment: '']]
Whoa, thanks a ton! I'll put you in the credits.

Powered by DjangoBB