I seem to have found a problem with SqueakV2.sources. I installed a vanilla Squeak 2.4b on my Mac by downloading the whole package. I noticed that the first N characters were chopped off from all method source and class comments, starting after class Character. After looking at the file SqueakV2.sources, I inserted a single '!' that seems to be missing after the CharacterBlock class comment.
That seems to fix everything a few classes after Character, but there is still a problem. CharacterBlock doesn't show up in the browser, and CharacterSet's class comment and methods display the same problem (the beginning of the comment is chopped off).
First, am I the only person with this problem? Second, what's the best way to fix it? I don't want to go around in SqueakV2.sources and randomly add '!' all over the place.
Jim ========
Rectangle subclass: #CharacterBlock instanceVariableNames: 'stringIndex text textLine ' classVariableNames: '' poolDictionaries: 'TextConstants ' category: 'Graphics-Support'! !CharacterBlock commentStamp: 'di 5/22/1998 16:32' prior: 0! CharacterBlock comment: 'My instances contain information about displayed characters. They are used to return the results of methods: Paragraph characterBlockAtPoint: aPoint and Paragraph characterBlockForIndex: stringIndex. Any recomposition or movement of a Paragraph can make the instance obsolete.'! !
!CharacterBlock methodsFor: 'accessing'! stringIndex "Answer the position of the receiver in the string it indexes."
^stringIndex! ! ========
Hello, What you're seeing is caused by an error in which ever archive program you used to open the archive. If you are using Stuff It, go into the preferences and turn off the option to fix text file line endings. Other programs have similar preferences.
Then reopen the archive. It should work properly.
There was a long discussion on this topic, oh, a month or so ago that can be found in the mailing list archives at: http://macos.tuwien.ac.at:9009/Server.home
Hope this helps.
William
Jim Menard wrote:
I seem to have found a problem with SqueakV2.sources. I installed a vanilla Squeak 2.4b on my Mac by downloading the whole package. I noticed that the first N characters were chopped off from all method source and class comments, starting after class Character. After looking at the file SqueakV2.sources, I inserted a single '!' that seems to be missing after the CharacterBlock class comment.
That seems to fix everything a few classes after Character, but there is still a problem. CharacterBlock doesn't show up in the browser, and CharacterSet's class comment and methods display the same problem (the beginning of the comment is chopped off).
First, am I the only person with this problem? Second, what's the best way to fix it? I don't want to go around in SqueakV2.sources and randomly add '!' all over the place.
Jim
Rectangle subclass: #CharacterBlock instanceVariableNames: 'stringIndex text textLine ' classVariableNames: '' poolDictionaries: 'TextConstants ' category: 'Graphics-Support'! !CharacterBlock commentStamp: 'di 5/22/1998 16:32' prior: 0! CharacterBlock comment: 'My instances contain information about displayed characters. They are used to return the results of methods: Paragraph characterBlockAtPoint: aPoint and Paragraph characterBlockForIndex: stringIndex. Any recomposition or movement of a Paragraph can make the instance obsolete.'! !
!CharacterBlock methodsFor: 'accessing'! stringIndex "Answer the position of the receiver in the string it indexes."
^stringIndex! !
========
-- Jim Menard jimm@io.com http://www.io.com/~jimm/ BeOS developer #1283 "If at first you don't succeed, don't go skydiving." -- Unknown
Hi, The other choice here is that you must download everything in Binary mode. If you let ftp clients self select sometimes they'll choose text mode for this and it won't work.
cheers
bruce
William Barnett-Lewis writes:
Hello, What you're seeing is caused by an error in which ever archive program you used to open the archive. If you are using Stuff It, go into the preferences and turn off the option to fix text file line endings. Other programs have similar preferences.
Then reopen the archive. It should work properly.
There was a long discussion on this topic, oh, a month or so ago that can be found in the mailing list archives at: http://macos.tuwien.ac.at:9009/Server.home
Hope this helps.
William
Jim Menard wrote:
I seem to have found a problem with SqueakV2.sources. I installed a vanilla Squeak 2.4b on my Mac by downloading the whole package. I noticed that the first N characters were chopped off from all method source and class comments, starting after class Character. After looking at the file SqueakV2.sources, I inserted a single '!' that seems to be missing after the CharacterBlock class comment.
That seems to fix everything a few classes after Character, but there is still a problem. CharacterBlock doesn't show up in the browser, and CharacterSet's class comment and methods display the same problem (the beginning of the comment is chopped off).
First, am I the only person with this problem? Second, what's the best way to fix it? I don't want to go around in SqueakV2.sources and randomly add '!' all over the place.
Jim
Rectangle subclass: #CharacterBlock instanceVariableNames: 'stringIndex text textLine ' classVariableNames: '' poolDictionaries: 'TextConstants ' category: 'Graphics-Support'! !CharacterBlock commentStamp: 'di 5/22/1998 16:32' prior: 0! CharacterBlock comment: 'My instances contain information about displayed characters. They are used to return the results of methods: Paragraph characterBlockAtPoint: aPoint and Paragraph characterBlockForIndex: stringIndex. Any recomposition or movement of a Paragraph can make the instance obsolete.'! !
!CharacterBlock methodsFor: 'accessing'! stringIndex "Answer the position of the receiver in the string it indexes."
^stringIndex! !
========
-- Jim Menard jimm@io.com http://www.io.com/~jimm/ BeOS developer #1283 "If at first you don't succeed, don't go skydiving." -- Unknown
-- Live without fear; your Creator loves you as a mother. Go in peace to follow the good road and may God's blessing be with you always. St. Claire
I re-downloaded the V2 source file a bit more carefully. That has fixed the problem. Thanks to all who answered.
Jim
squeak-dev@lists.squeakfoundation.org