VM bug when loading from filetree repositories in Pharo 3

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

VM bug when loading from filetree repositories in Pharo 3

Johan Brichau-3
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


--
You received this message because you are subscribed to the Google Groups "Metacello" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

filetreeloading-pharobug-workaround.cs (1K) Download Attachment