Hi all,

When loading filetree repositories using Metacello in Pharo3 with the latest 
published stable vm,
you continuously hit this vm bug [1].

Since there is no end in sight to solve that problem in the vm, it would be 
good to work around the problem and change the Metacello code as per the 
changes I attach to this email
The changes are to change this:

            reader := MCStReader on: fileStream.
            (defs := reader definitions) size <= 1
                ifFalse: [ self error: 'we should be writing exactly 1 
definition per file' ] ].

into this:

            reader := MCStReader on: fileStream.
            defs := reader definitions.
                defs size <= 1
                ifFalse: [ self error: 'we should be writing exactly 1 
definition per file' ] ].

This at least fixes the loading problem for everyone.

@Dale: I can make a pull request for you but I'm not sure what branch 
corresponds to the Pharo 3

Cheers
Johan

[1] https://pharo.fogbugz.com/default.asp?11130


Attachment: filetreeloading-pharobug-workaround.cs
Description: Binary data

Reply via email to