Hilaire

I looked at the other bug.
And I would like to know if you are defining extra
methods on SQSurfaceDispatch class.
I do not get why I got an error (may be this is related to the source
management.

Stef

On Tue, Apr 3, 2018 at 9:56 PM, Stephane Ducasse
<stepharo.s...@gmail.com> wrote:
> Hi hilaire
>
> I got startup errors
> I debugged a bit and you are calling to create a directory
>
> createDirectory: path
>
>         Path / 'var' / 'folders' / 'gs' /
> '_5w5v50j3m7gl4lcqf9npxhr0000gq' / 'T' / 'AppTranslocation' /
> '863D37C1-90CD-4901-90DA-F4EC3F4B3080' / 'd' / 'locale'
>
> the encode pathString is
> '/var/folders/gs/_5w5v50j3m7gl4lcqf9npxhr0000gq/T/AppTranslocation/863D37C1-90CD-4901-90DA-F4EC3F4B3080/d/locale'
>
>
> And this leads to a primitive failure
>
> createDirectory: path
> "Create a directory for the argument path.
> If the path refers to an existing file, raise FileExists.
> If the path refers to an existing directory, raise DirectoryExists.
> If the parent directory of the path does not exist, raise 
> DirectoryDoesNotExist"
>
> | parent encodedPathString pathString result |
> pathString := self stringFromPath: path.
> encodedPathString := Primitives encode: pathString.
> result := Primitives createDirectory: encodedPathString.
> result
>    ifNil: [
>     parent := path parent.
>    (self exists: path)
>     ifTrue: [
>      (self isFile: path)
>        ifTrue: [ self signalFileExists: path ]
>        ifFalse: [ self signalDirectoryExists: path ] ].
>   (self isDirectory: parent)
>          ifFalse: [ ^ self signalDirectoryDoesNotExist: parent ].
> self primitiveFailed ].
> ^^^^^^^^^^^^^^^^^^
> It fails here
>
> ^ self
>
>
> On my machine I get
>
> var/folders/gs/_5w5v50j3m7gl4lcqf9npxhr0000gq/T/AppTranslocation
>
> and not the folder d
>
>
> This comes from reset of the GetTextTranslator
>
> privateStartUp
>     self reset.
>     GetTextTranslator reset.
>     self localeChanged.
>
>
> Tell me how I can help.
>
>
> On Tue, Mar 27, 2018 at 7:15 PM, Hilaire <hila...@drgeo.eu> wrote:
>> Thanks for the tip
>>
>>
>> Le 27/03/2018 à 08:59, Christophe Demarey a écrit :
>>>
>>> If the VM is too old, it does not work well on recent distributions.
>>> You could try to use the stable VM of Pharo 4 instead and it should work.
>>
>>
>> --
>> Dr. Geo
>> http://drgeo.eu
>>
>>
>>

Reply via email to