Problems with Squeak Alice

Stephane Ducasse ducasse at iam.unibe.ch
Mon Nov 4 11:36:13 UTC 2002


Hi andreas

>
>
> I think you're seeing problems in the way Macs handle relative path
> names (which is a problem that has been driving me crazy for a while
> now). Check out what the result of the following is:
>
> file := FileStream readOnlyFileNamed:  
> 'SqueakObjects:Animals:Bunny.mdl'.
> file directory.
>
> If, and only if, the above completes successfully, it should answer the
> *full* path to the directory, e.g.,
> 'OSX:Users:ducasse:Workspace:Working:Sq- 
> Work:ForTurtleBook:Alice:SqueakO
> bjects:Animals' in your case but I'm pretty sure it won't (at least not
> on OSX).
>

Exact it does not find the file. This is what


> The problem is that while the OS file handling routines accept relative
> path names perfectly fine the file handling functions in MacFileDir
> assume they don't and that "SqueakObjects" in the above is a volume
> mounted on your Mac. That can lead to utterly confusing problems later
> if other file or path names are computed based on that path.
>
> The issue wouldn't be as problematic as it is if only Squeak's
> assumption and the OS behavior were consistent. As it is, it only leads
> to utter confusion because "apparently invalid names" (such as the
> above) work perfectly fine with the primitives.
>

So what can I do, try to have a patch for mac :(



> Cheers,
>   - Andreas
>
>
>> -----Original Message-----
>> From: squeak-dev-admin at lists.squeakfoundation.org
>> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On
>> Behalf Of Stephane Ducasse
>> Sent: Monday, November 04, 2002 11:51 AM
>> To: squeak-dev at lists.squeakfoundation.org
>> Subject: Re: Problems with Squeak Alice
>>
>>
>> Hi bert
>>
>> I tried everything :) I have the impression that this is a bug linked
>> to mac.
>> Could a mac user tell me if this is working because now I know that
>> this is working
>> on PC and linux.
>>
>> After I will dive into the code.
>> Stef
>>
>> On lundi, novembre 4, 2002, at 11:49  am, Bert Freudenberg wrote:
>>
>>> On Sat, 2 Nov 2002, Stephane Ducasse wrote:
>>>
>>>> w makeActorFrom: 'SqueakObjects/Animals/Bunny.mdl'
>>>>
>>>> I got an error stating that Bunny.bmp is not found. I looked a bit
>>>> around and found that filename in methods such as makeTextureFrom:
>>>> filename flipping: aBool is
>> 'OSX:Users:ducasse:Workspace:Working:Sq-
>>>> Work:ForTurtleBook:Alice:AliceLiddell.bmp' while it should be
>>>> 'OSX:Users:ducasse:Workspace:Working:Sq-
>>>> Work:ForTurtleBook:Alice:SqueakObjects:Animals:AliceLiddell.bmp'
>>>
>>> Works fine on Linux. Just a thought - did you try
>>> 	'SqueakObjects:Animals:Bunny.mdl'
>>> instead?
>>>
>>> -- Bert
>>>
>>>
>>>
>> Dr. Stéphane DUCASSE (ducasse at iam.unibe.ch)
>> http://www.iam.unibe.ch/~ducasse/
>>   "if you knew today was your last day on earth, what would you do
>>   different? ... especially if, by doing something different, today
>>   might not be your last day on earth" Calvin&Hobbes
>>
>>
>>
>
>
>
Dr. Stéphane DUCASSE (ducasse at iam.unibe.ch)  
http://www.iam.unibe.ch/~ducasse/
  "if you knew today was your last day on earth, what would you do
  different? ... especially if, by doing something different, today
  might not be your last day on earth" Calvin&Hobbes





More information about the Squeak-dev mailing list