Error opening Zinc MC repository in latest Pharo 7

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

Error opening Zinc MC repository in latest Pharo 7

Sven Van Caekenberghe-2
For some reason I can no longer open Zinc's old school MC repository in Pharo-7.0+alpha.build.690.sha.ffd58dcc88a0698be21b52b565a86316799cb25d (32 Bit)

MCHttpRepository
 location: 'http://mc.stfx.eu/ZincHTTPComponents'
 user: ''
 password: ''.

> Open repository (browser UI)

gives me a DNU see [1]

I just don't see what is wrong, maybe it has to do with the latest commit in the repo, (it took a git version number from the image as ancestor), but this code is hard to look at.

Now I am stuck trying to fix a problem with Zinc.

Any help would be appreciated,

Sven

[1]

UndefinedObject(Object)>>doesNotUnderstand: #<
[ :ancestor |
(ancestor versionNumber < aVersionArray third
        or: [ ancestor versionNumber = aVersionArray third
                        and: [ ancestor author ~= aVersionArray second ] ])
        ifTrue: [ newer add: ancestor name ] ] in [ :aVersionArray |
workingCopy ancestors
        do: [ :ancestor |
                (ancestor versionNumber < aVersionArray third
                        or: [ ancestor versionNumber = aVersionArray third
                                        and: [ ancestor author ~= aVersionArray second ] ])
                        ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
| versionsForPackage |
workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
versionsForPackage := versions
        select: [ :v | v first = workingCopy package name ].
versionsForPackage
        do: [ :aVersionArray |
                workingCopy ancestors
                        do: [ :ancestor |
                                (ancestor versionNumber < aVersionArray third
                                        or: [ ancestor versionNumber = aVersionArray third
                                                        and: [ ancestor author ~= aVersionArray second ] ])
                                        ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :ancestor | ...
Array(SequenceableCollection)>>do:
[ :aVersionArray |
workingCopy ancestors
        do: [ :ancestor |
                (ancestor versionNumber < aVersionArray third
                        or: [ ancestor versionNumber = aVersionArray third
                                        and: [ ancestor author ~= aVersionArray second ] ])
                        ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
| versionsForPackage |
workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
versionsForPackage := versions
        select: [ :v | v first = workingCopy package name ].
versionsForPackage
        do: [ :aVersionArray |
                workingCopy ancestors
                        do: [ :ancestor |
                                (ancestor versionNumber < aVersionArray third
                                        or: [ ancestor versionNumber = aVersionArray third
                                                        and: [ ancestor author ~= aVersionArray second ] ])
                                        ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :aVersionArray | ...
Array(SequenceableCollection)>>do:
[ :workingCopy |
| versionsForPackage |
workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
versionsForPackage := versions
        select: [ :v | v first = workingCopy package name ].
versionsForPackage
        do: [ :aVersionArray |
                workingCopy ancestors
                        do: [ :ancestor |
                                (ancestor versionNumber < aVersionArray third
                                        or: [ ancestor versionNumber = aVersionArray third
                                                        and: [ ancestor author ~= aVersionArray second ] ])
                                        ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :workingCopy | ...
Array(SequenceableCollection)>>do:
MCFileRepositoryInspector>>refresh
[ self refresh.
MCWorkingCopy addDependent: self ] in MCFileRepositoryInspector>>setRepository:workingCopy: in Block: [ self refresh....
[ self value.
Processor terminateActive ] in BlockClosure>>newProcess in Block: [ self value....



Reply | Threaded
Open this post in threaded view
|

Re: Error opening Zinc MC repository in latest Pharo 7

Guillermo Polito
Ah, that's Iceberg's magic proxies I think :/

On Tue, Mar 13, 2018 at 3:05 PM, Sven Van Caekenberghe <[hidden email]> wrote:
For some reason I can no longer open Zinc's old school MC repository in Pharo-7.0+alpha.build.690.sha.ffd58dcc88a0698be21b52b565a86316799cb25d (32 Bit)

MCHttpRepository
 location: 'http://mc.stfx.eu/ZincHTTPComponents'
 user: ''
 password: ''.

> Open repository (browser UI)

gives me a DNU see [1]

I just don't see what is wrong, maybe it has to do with the latest commit in the repo, (it took a git version number from the image as ancestor), but this code is hard to look at.

Now I am stuck trying to fix a problem with Zinc.

Any help would be appreciated,

Sven

[1]

UndefinedObject(Object)>>doesNotUnderstand: #<
[ :ancestor |
(ancestor versionNumber < aVersionArray third
        or: [ ancestor versionNumber = aVersionArray third
                        and: [ ancestor author ~= aVersionArray second ] ])
        ifTrue: [ newer add: ancestor name ] ] in [ :aVersionArray |
workingCopy ancestors
        do: [ :ancestor |
                (ancestor versionNumber < aVersionArray third
                        or: [ ancestor versionNumber = aVersionArray third
                                        and: [ ancestor author ~= aVersionArray second ] ])
                        ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
| versionsForPackage |
workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
versionsForPackage := versions
        select: [ :v | v first = workingCopy package name ].
versionsForPackage
        do: [ :aVersionArray |
                workingCopy ancestors
                        do: [ :ancestor |
                                (ancestor versionNumber < aVersionArray third
                                        or: [ ancestor versionNumber = aVersionArray third
                                                        and: [ ancestor author ~= aVersionArray second ] ])
                                        ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :ancestor | ...
Array(SequenceableCollection)>>do:
[ :aVersionArray |
workingCopy ancestors
        do: [ :ancestor |
                (ancestor versionNumber < aVersionArray third
                        or: [ ancestor versionNumber = aVersionArray third
                                        and: [ ancestor author ~= aVersionArray second ] ])
                        ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
| versionsForPackage |
workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
versionsForPackage := versions
        select: [ :v | v first = workingCopy package name ].
versionsForPackage
        do: [ :aVersionArray |
                workingCopy ancestors
                        do: [ :ancestor |
                                (ancestor versionNumber < aVersionArray third
                                        or: [ ancestor versionNumber = aVersionArray third
                                                        and: [ ancestor author ~= aVersionArray second ] ])
                                        ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :aVersionArray | ...
Array(SequenceableCollection)>>do:
[ :workingCopy |
| versionsForPackage |
workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
versionsForPackage := versions
        select: [ :v | v first = workingCopy package name ].
versionsForPackage
        do: [ :aVersionArray |
                workingCopy ancestors
                        do: [ :ancestor |
                                (ancestor versionNumber < aVersionArray third
                                        or: [ ancestor versionNumber = aVersionArray third
                                                        and: [ ancestor author ~= aVersionArray second ] ])
                                        ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :workingCopy | ...
Array(SequenceableCollection)>>do:
MCFileRepositoryInspector>>refresh
[ self refresh.
MCWorkingCopy addDependent: self ] in MCFileRepositoryInspector>>setRepository:workingCopy: in Block: [ self refresh....
[ self value.
Processor terminateActive ] in BlockClosure>>newProcess in Block: [ self value....






--

   

Guille Polito

Research Engineer

Centre de Recherche en Informatique, Signal et Automatique de Lille

CRIStAL - UMR 9189

French National Center for Scientific Research - http://www.cnrs.fr


Web: http://guillep.github.io

Phone: +33 06 52 70 66 13

Reply | Threaded
Open this post in threaded view
|

Re: Error opening Zinc MC repository in latest Pharo 7

Sven Van Caekenberghe-2
Well it is so magic that I do not understand what is happening ...

> On 13 Mar 2018, at 15:32, Guillermo Polito <[hidden email]> wrote:
>
> Ah, that's Iceberg's magic proxies I think :/
>
> On Tue, Mar 13, 2018 at 3:05 PM, Sven Van Caekenberghe <[hidden email]> wrote:
> For some reason I can no longer open Zinc's old school MC repository in Pharo-7.0+alpha.build.690.sha.ffd58dcc88a0698be21b52b565a86316799cb25d (32 Bit)
>
> MCHttpRepository
>  location: 'http://mc.stfx.eu/ZincHTTPComponents'
>  user: ''
>  password: ''.
>
> > Open repository (browser UI)
>
> gives me a DNU see [1]
>
> I just don't see what is wrong, maybe it has to do with the latest commit in the repo, (it took a git version number from the image as ancestor), but this code is hard to look at.
>
> Now I am stuck trying to fix a problem with Zinc.
>
> Any help would be appreciated,
>
> Sven
>
> [1]
>
> UndefinedObject(Object)>>doesNotUnderstand: #<
> [ :ancestor |
> (ancestor versionNumber < aVersionArray third
>         or: [ ancestor versionNumber = aVersionArray third
>                         and: [ ancestor author ~= aVersionArray second ] ])
>         ifTrue: [ newer add: ancestor name ] ] in [ :aVersionArray |
> workingCopy ancestors
>         do: [ :ancestor |
>                 (ancestor versionNumber < aVersionArray third
>                         or: [ ancestor versionNumber = aVersionArray third
>                                         and: [ ancestor author ~= aVersionArray second ] ])
>                         ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
> | versionsForPackage |
> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
> versionsForPackage := versions
>         select: [ :v | v first = workingCopy package name ].
> versionsForPackage
>         do: [ :aVersionArray |
>                 workingCopy ancestors
>                         do: [ :ancestor |
>                                 (ancestor versionNumber < aVersionArray third
>                                         or: [ ancestor versionNumber = aVersionArray third
>                                                         and: [ ancestor author ~= aVersionArray second ] ])
>                                         ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :ancestor | ...
> Array(SequenceableCollection)>>do:
> [ :aVersionArray |
> workingCopy ancestors
>         do: [ :ancestor |
>                 (ancestor versionNumber < aVersionArray third
>                         or: [ ancestor versionNumber = aVersionArray third
>                                         and: [ ancestor author ~= aVersionArray second ] ])
>                         ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
> | versionsForPackage |
> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
> versionsForPackage := versions
>         select: [ :v | v first = workingCopy package name ].
> versionsForPackage
>         do: [ :aVersionArray |
>                 workingCopy ancestors
>                         do: [ :ancestor |
>                                 (ancestor versionNumber < aVersionArray third
>                                         or: [ ancestor versionNumber = aVersionArray third
>                                                         and: [ ancestor author ~= aVersionArray second ] ])
>                                         ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :aVersionArray | ...
> Array(SequenceableCollection)>>do:
> [ :workingCopy |
> | versionsForPackage |
> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
> versionsForPackage := versions
>         select: [ :v | v first = workingCopy package name ].
> versionsForPackage
>         do: [ :aVersionArray |
>                 workingCopy ancestors
>                         do: [ :ancestor |
>                                 (ancestor versionNumber < aVersionArray third
>                                         or: [ ancestor versionNumber = aVersionArray third
>                                                         and: [ ancestor author ~= aVersionArray second ] ])
>                                         ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :workingCopy | ...
> Array(SequenceableCollection)>>do:
> MCFileRepositoryInspector>>refresh
> [ self refresh.
> MCWorkingCopy addDependent: self ] in MCFileRepositoryInspector>>setRepository:workingCopy: in Block: [ self refresh....
> [ self value.
> Processor terminateActive ] in BlockClosure>>newProcess in Block: [ self value....
>
>
>
>
>
>
> --
>    
> Guille Polito
> Research Engineer
>
> Centre de Recherche en Informatique, Signal et Automatique de Lille
> CRIStAL - UMR 9189
> French National Center for Scientific Research - http://www.cnrs.fr
>
> Web: http://guillep.github.io
> Phone: +33 06 52 70 66 13


Reply | Threaded
Open this post in threaded view
|

Re: Error opening Zinc MC repository in latest Pharo 7

Guillermo Polito
Well, I'll try to explain it.

Once Iceberg is loaded, all Pharo packages are initialized with a special MCVersionInfo: IceProxyMCVersionInfo.

This MCVersion info is there because the image does not come by default with a pharo repository. So, at runtime, when it is used, it tries to determine if the pharo repository was defined and if so, it does become itself by a normal version.
For this, it uses both #doesNotUnderstand: and #become:.

I'm not happy with that implementation. It could be simplified by just adding a Pharo repository in iceberg by default...

In any case, one way to fix that, is to create a pharo repository. That should "bind" the proxy version infos...

On Tue, Mar 13, 2018 at 3:40 PM, Sven Van Caekenberghe <[hidden email]> wrote:
Well it is so magic that I do not understand what is happening ...

> On 13 Mar 2018, at 15:32, Guillermo Polito <[hidden email]> wrote:
>
> Ah, that's Iceberg's magic proxies I think :/
>
> On Tue, Mar 13, 2018 at 3:05 PM, Sven Van Caekenberghe <[hidden email]> wrote:
> For some reason I can no longer open Zinc's old school MC repository in Pharo-7.0+alpha.build.690.sha.ffd58dcc88a0698be21b52b565a86316799cb25d (32 Bit)
>
> MCHttpRepository
>  location: 'http://mc.stfx.eu/ZincHTTPComponents'
>  user: ''
>  password: ''.
>
> > Open repository (browser UI)
>
> gives me a DNU see [1]
>
> I just don't see what is wrong, maybe it has to do with the latest commit in the repo, (it took a git version number from the image as ancestor), but this code is hard to look at.
>
> Now I am stuck trying to fix a problem with Zinc.
>
> Any help would be appreciated,
>
> Sven
>
> [1]
>
> UndefinedObject(Object)>>doesNotUnderstand: #<
> [ :ancestor |
> (ancestor versionNumber < aVersionArray third
>         or: [ ancestor versionNumber = aVersionArray third
>                         and: [ ancestor author ~= aVersionArray second ] ])
>         ifTrue: [ newer add: ancestor name ] ] in [ :aVersionArray |
> workingCopy ancestors
>         do: [ :ancestor |
>                 (ancestor versionNumber < aVersionArray third
>                         or: [ ancestor versionNumber = aVersionArray third
>                                         and: [ ancestor author ~= aVersionArray second ] ])
>                         ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
> | versionsForPackage |
> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
> versionsForPackage := versions
>         select: [ :v | v first = workingCopy package name ].
> versionsForPackage
>         do: [ :aVersionArray |
>                 workingCopy ancestors
>                         do: [ :ancestor |
>                                 (ancestor versionNumber < aVersionArray third
>                                         or: [ ancestor versionNumber = aVersionArray third
>                                                         and: [ ancestor author ~= aVersionArray second ] ])
>                                         ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :ancestor | ...
> Array(SequenceableCollection)>>do:
> [ :aVersionArray |
> workingCopy ancestors
>         do: [ :ancestor |
>                 (ancestor versionNumber < aVersionArray third
>                         or: [ ancestor versionNumber = aVersionArray third
>                                         and: [ ancestor author ~= aVersionArray second ] ])
>                         ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
> | versionsForPackage |
> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
> versionsForPackage := versions
>         select: [ :v | v first = workingCopy package name ].
> versionsForPackage
>         do: [ :aVersionArray |
>                 workingCopy ancestors
>                         do: [ :ancestor |
>                                 (ancestor versionNumber < aVersionArray third
>                                         or: [ ancestor versionNumber = aVersionArray third
>                                                         and: [ ancestor author ~= aVersionArray second ] ])
>                                         ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :aVersionArray | ...
> Array(SequenceableCollection)>>do:
> [ :workingCopy |
> | versionsForPackage |
> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
> versionsForPackage := versions
>         select: [ :v | v first = workingCopy package name ].
> versionsForPackage
>         do: [ :aVersionArray |
>                 workingCopy ancestors
>                         do: [ :ancestor |
>                                 (ancestor versionNumber < aVersionArray third
>                                         or: [ ancestor versionNumber = aVersionArray third
>                                                         and: [ ancestor author ~= aVersionArray second ] ])
>                                         ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :workingCopy | ...
> Array(SequenceableCollection)>>do:
> MCFileRepositoryInspector>>refresh
> [ self refresh.
> MCWorkingCopy addDependent: self ] in MCFileRepositoryInspector>>setRepository:workingCopy: in Block: [ self refresh....
> [ self value.
> Processor terminateActive ] in BlockClosure>>newProcess in Block: [ self value....
>
>
>
>
>
>
> --
>
> Guille Polito
> Research Engineer
>
> Centre de Recherche en Informatique, Signal et Automatique de Lille
> CRIStAL - UMR 9189
> French National Center for Scientific Research - http://www.cnrs.fr
>
> Web: http://guillep.github.io
> Phone: <a href="tel:%2B33%2006%2052%2070%2066%2013" value="+33652706613">+33 06 52 70 66 13





--

   

Guille Polito

Research Engineer

Centre de Recherche en Informatique, Signal et Automatique de Lille

CRIStAL - UMR 9189

French National Center for Scientific Research - http://www.cnrs.fr


Web: http://guillep.github.io

Phone: +33 06 52 70 66 13

Reply | Threaded
Open this post in threaded view
|

Re: Error opening Zinc MC repository in latest Pharo 7

Pavel Krivanek-3
In reply to this post by Sven Van Caekenberghe-2
Hi, try firstly to register the local Pharo repository. For me it something like

location := '/tmp/ramdisk/pharo'.
(IceRepositoryCreator new
location: location asFileReference;
subdirectory: 'src';
createRepository)
register.

--- Pavel



2018-03-13 15:40 GMT+01:00 Sven Van Caekenberghe <[hidden email]>:

> Well it is so magic that I do not understand what is happening ...
>
>> On 13 Mar 2018, at 15:32, Guillermo Polito <[hidden email]> wrote:
>>
>> Ah, that's Iceberg's magic proxies I think :/
>>
>> On Tue, Mar 13, 2018 at 3:05 PM, Sven Van Caekenberghe <[hidden email]> wrote:
>> For some reason I can no longer open Zinc's old school MC repository in Pharo-7.0+alpha.build.690.sha.ffd58dcc88a0698be21b52b565a86316799cb25d (32 Bit)
>>
>> MCHttpRepository
>>  location: 'http://mc.stfx.eu/ZincHTTPComponents'
>>  user: ''
>>  password: ''.
>>
>> > Open repository (browser UI)
>>
>> gives me a DNU see [1]
>>
>> I just don't see what is wrong, maybe it has to do with the latest commit in the repo, (it took a git version number from the image as ancestor), but this code is hard to look at.
>>
>> Now I am stuck trying to fix a problem with Zinc.
>>
>> Any help would be appreciated,
>>
>> Sven
>>
>> [1]
>>
>> UndefinedObject(Object)>>doesNotUnderstand: #<
>> [ :ancestor |
>> (ancestor versionNumber < aVersionArray third
>>         or: [ ancestor versionNumber = aVersionArray third
>>                         and: [ ancestor author ~= aVersionArray second ] ])
>>         ifTrue: [ newer add: ancestor name ] ] in [ :aVersionArray |
>> workingCopy ancestors
>>         do: [ :ancestor |
>>                 (ancestor versionNumber < aVersionArray third
>>                         or: [ ancestor versionNumber = aVersionArray third
>>                                         and: [ ancestor author ~= aVersionArray second ] ])
>>                         ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
>> | versionsForPackage |
>> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
>> versionsForPackage := versions
>>         select: [ :v | v first = workingCopy package name ].
>> versionsForPackage
>>         do: [ :aVersionArray |
>>                 workingCopy ancestors
>>                         do: [ :ancestor |
>>                                 (ancestor versionNumber < aVersionArray third
>>                                         or: [ ancestor versionNumber = aVersionArray third
>>                                                         and: [ ancestor author ~= aVersionArray second ] ])
>>                                         ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :ancestor | ...
>> Array(SequenceableCollection)>>do:
>> [ :aVersionArray |
>> workingCopy ancestors
>>         do: [ :ancestor |
>>                 (ancestor versionNumber < aVersionArray third
>>                         or: [ ancestor versionNumber = aVersionArray third
>>                                         and: [ ancestor author ~= aVersionArray second ] ])
>>                         ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
>> | versionsForPackage |
>> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
>> versionsForPackage := versions
>>         select: [ :v | v first = workingCopy package name ].
>> versionsForPackage
>>         do: [ :aVersionArray |
>>                 workingCopy ancestors
>>                         do: [ :ancestor |
>>                                 (ancestor versionNumber < aVersionArray third
>>                                         or: [ ancestor versionNumber = aVersionArray third
>>                                                         and: [ ancestor author ~= aVersionArray second ] ])
>>                                         ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :aVersionArray | ...
>> Array(SequenceableCollection)>>do:
>> [ :workingCopy |
>> | versionsForPackage |
>> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
>> versionsForPackage := versions
>>         select: [ :v | v first = workingCopy package name ].
>> versionsForPackage
>>         do: [ :aVersionArray |
>>                 workingCopy ancestors
>>                         do: [ :ancestor |
>>                                 (ancestor versionNumber < aVersionArray third
>>                                         or: [ ancestor versionNumber = aVersionArray third
>>                                                         and: [ ancestor author ~= aVersionArray second ] ])
>>                                         ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :workingCopy | ...
>> Array(SequenceableCollection)>>do:
>> MCFileRepositoryInspector>>refresh
>> [ self refresh.
>> MCWorkingCopy addDependent: self ] in MCFileRepositoryInspector>>setRepository:workingCopy: in Block: [ self refresh....
>> [ self value.
>> Processor terminateActive ] in BlockClosure>>newProcess in Block: [ self value....
>>
>>
>>
>>
>>
>>
>> --
>>
>> Guille Polito
>> Research Engineer
>>
>> Centre de Recherche en Informatique, Signal et Automatique de Lille
>> CRIStAL - UMR 9189
>> French National Center for Scientific Research - http://www.cnrs.fr
>>
>> Web: http://guillep.github.io
>> Phone: +33 06 52 70 66 13
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Error opening Zinc MC repository in latest Pharo 7

Sven Van Caekenberghe-2
I did:

(IceRepositoryCreator new
location: '/Users/sven/Develop/git/pharo' asFileReference;
subdirectory: 'src';
createRepository)
register.

But than it says it is out of sync (my local copy is still on an old branch), what is the easiest way to sync up locally (command line) ?

> On 13 Mar 2018, at 15:53, Pavel Krivanek <[hidden email]> wrote:
>
> Hi, try firstly to register the local Pharo repository. For me it something like
>
> location := '/tmp/ramdisk/pharo'.
> (IceRepositoryCreator new
> location: location asFileReference;
> subdirectory: 'src';
> createRepository)
> register.
>
> --- Pavel
>
>
>
> 2018-03-13 15:40 GMT+01:00 Sven Van Caekenberghe <[hidden email]>:
>> Well it is so magic that I do not understand what is happening ...
>>
>>> On 13 Mar 2018, at 15:32, Guillermo Polito <[hidden email]> wrote:
>>>
>>> Ah, that's Iceberg's magic proxies I think :/
>>>
>>> On Tue, Mar 13, 2018 at 3:05 PM, Sven Van Caekenberghe <[hidden email]> wrote:
>>> For some reason I can no longer open Zinc's old school MC repository in Pharo-7.0+alpha.build.690.sha.ffd58dcc88a0698be21b52b565a86316799cb25d (32 Bit)
>>>
>>> MCHttpRepository
>>> location: 'http://mc.stfx.eu/ZincHTTPComponents'
>>> user: ''
>>> password: ''.
>>>
>>>> Open repository (browser UI)
>>>
>>> gives me a DNU see [1]
>>>
>>> I just don't see what is wrong, maybe it has to do with the latest commit in the repo, (it took a git version number from the image as ancestor), but this code is hard to look at.
>>>
>>> Now I am stuck trying to fix a problem with Zinc.
>>>
>>> Any help would be appreciated,
>>>
>>> Sven
>>>
>>> [1]
>>>
>>> UndefinedObject(Object)>>doesNotUnderstand: #<
>>> [ :ancestor |
>>> (ancestor versionNumber < aVersionArray third
>>>        or: [ ancestor versionNumber = aVersionArray third
>>>                        and: [ ancestor author ~= aVersionArray second ] ])
>>>        ifTrue: [ newer add: ancestor name ] ] in [ :aVersionArray |
>>> workingCopy ancestors
>>>        do: [ :ancestor |
>>>                (ancestor versionNumber < aVersionArray third
>>>                        or: [ ancestor versionNumber = aVersionArray third
>>>                                        and: [ ancestor author ~= aVersionArray second ] ])
>>>                        ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
>>> | versionsForPackage |
>>> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
>>> versionsForPackage := versions
>>>        select: [ :v | v first = workingCopy package name ].
>>> versionsForPackage
>>>        do: [ :aVersionArray |
>>>                workingCopy ancestors
>>>                        do: [ :ancestor |
>>>                                (ancestor versionNumber < aVersionArray third
>>>                                        or: [ ancestor versionNumber = aVersionArray third
>>>                                                        and: [ ancestor author ~= aVersionArray second ] ])
>>>                                        ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :ancestor | ...
>>> Array(SequenceableCollection)>>do:
>>> [ :aVersionArray |
>>> workingCopy ancestors
>>>        do: [ :ancestor |
>>>                (ancestor versionNumber < aVersionArray third
>>>                        or: [ ancestor versionNumber = aVersionArray third
>>>                                        and: [ ancestor author ~= aVersionArray second ] ])
>>>                        ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
>>> | versionsForPackage |
>>> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
>>> versionsForPackage := versions
>>>        select: [ :v | v first = workingCopy package name ].
>>> versionsForPackage
>>>        do: [ :aVersionArray |
>>>                workingCopy ancestors
>>>                        do: [ :ancestor |
>>>                                (ancestor versionNumber < aVersionArray third
>>>                                        or: [ ancestor versionNumber = aVersionArray third
>>>                                                        and: [ ancestor author ~= aVersionArray second ] ])
>>>                                        ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :aVersionArray | ...
>>> Array(SequenceableCollection)>>do:
>>> [ :workingCopy |
>>> | versionsForPackage |
>>> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
>>> versionsForPackage := versions
>>>        select: [ :v | v first = workingCopy package name ].
>>> versionsForPackage
>>>        do: [ :aVersionArray |
>>>                workingCopy ancestors
>>>                        do: [ :ancestor |
>>>                                (ancestor versionNumber < aVersionArray third
>>>                                        or: [ ancestor versionNumber = aVersionArray third
>>>                                                        and: [ ancestor author ~= aVersionArray second ] ])
>>>                                        ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :workingCopy | ...
>>> Array(SequenceableCollection)>>do:
>>> MCFileRepositoryInspector>>refresh
>>> [ self refresh.
>>> MCWorkingCopy addDependent: self ] in MCFileRepositoryInspector>>setRepository:workingCopy: in Block: [ self refresh....
>>> [ self value.
>>> Processor terminateActive ] in BlockClosure>>newProcess in Block: [ self value....
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>>
>>> Guille Polito
>>> Research Engineer
>>>
>>> Centre de Recherche en Informatique, Signal et Automatique de Lille
>>> CRIStAL - UMR 9189
>>> French National Center for Scientific Research - http://www.cnrs.fr
>>>
>>> Web: http://guillep.github.io
>>> Phone: +33 06 52 70 66 13
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: Error opening Zinc MC repository in latest Pharo 7

Pavel Krivanek-3
Switch to the remotes view and do fetch from the pharo-project
repository.  Anyway, this should be not an issue, because as soon as
you will try to create a branch for a new issue, this step should be
done automatically.

-- Pavel

2018-03-13 16:02 GMT+01:00 Sven Van Caekenberghe <[hidden email]>:

> I did:
>
> (IceRepositoryCreator new
> location: '/Users/sven/Develop/git/pharo' asFileReference;
> subdirectory: 'src';
> createRepository)
> register.
>
> But than it says it is out of sync (my local copy is still on an old branch), what is the easiest way to sync up locally (command line) ?
>
>> On 13 Mar 2018, at 15:53, Pavel Krivanek <[hidden email]> wrote:
>>
>> Hi, try firstly to register the local Pharo repository. For me it something like
>>
>> location := '/tmp/ramdisk/pharo'.
>> (IceRepositoryCreator new
>> location: location asFileReference;
>> subdirectory: 'src';
>> createRepository)
>> register.
>>
>> --- Pavel
>>
>>
>>
>> 2018-03-13 15:40 GMT+01:00 Sven Van Caekenberghe <[hidden email]>:
>>> Well it is so magic that I do not understand what is happening ...
>>>
>>>> On 13 Mar 2018, at 15:32, Guillermo Polito <[hidden email]> wrote:
>>>>
>>>> Ah, that's Iceberg's magic proxies I think :/
>>>>
>>>> On Tue, Mar 13, 2018 at 3:05 PM, Sven Van Caekenberghe <[hidden email]> wrote:
>>>> For some reason I can no longer open Zinc's old school MC repository in Pharo-7.0+alpha.build.690.sha.ffd58dcc88a0698be21b52b565a86316799cb25d (32 Bit)
>>>>
>>>> MCHttpRepository
>>>> location: 'http://mc.stfx.eu/ZincHTTPComponents'
>>>> user: ''
>>>> password: ''.
>>>>
>>>>> Open repository (browser UI)
>>>>
>>>> gives me a DNU see [1]
>>>>
>>>> I just don't see what is wrong, maybe it has to do with the latest commit in the repo, (it took a git version number from the image as ancestor), but this code is hard to look at.
>>>>
>>>> Now I am stuck trying to fix a problem with Zinc.
>>>>
>>>> Any help would be appreciated,
>>>>
>>>> Sven
>>>>
>>>> [1]
>>>>
>>>> UndefinedObject(Object)>>doesNotUnderstand: #<
>>>> [ :ancestor |
>>>> (ancestor versionNumber < aVersionArray third
>>>>        or: [ ancestor versionNumber = aVersionArray third
>>>>                        and: [ ancestor author ~= aVersionArray second ] ])
>>>>        ifTrue: [ newer add: ancestor name ] ] in [ :aVersionArray |
>>>> workingCopy ancestors
>>>>        do: [ :ancestor |
>>>>                (ancestor versionNumber < aVersionArray third
>>>>                        or: [ ancestor versionNumber = aVersionArray third
>>>>                                        and: [ ancestor author ~= aVersionArray second ] ])
>>>>                        ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
>>>> | versionsForPackage |
>>>> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
>>>> versionsForPackage := versions
>>>>        select: [ :v | v first = workingCopy package name ].
>>>> versionsForPackage
>>>>        do: [ :aVersionArray |
>>>>                workingCopy ancestors
>>>>                        do: [ :ancestor |
>>>>                                (ancestor versionNumber < aVersionArray third
>>>>                                        or: [ ancestor versionNumber = aVersionArray third
>>>>                                                        and: [ ancestor author ~= aVersionArray second ] ])
>>>>                                        ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :ancestor | ...
>>>> Array(SequenceableCollection)>>do:
>>>> [ :aVersionArray |
>>>> workingCopy ancestors
>>>>        do: [ :ancestor |
>>>>                (ancestor versionNumber < aVersionArray third
>>>>                        or: [ ancestor versionNumber = aVersionArray third
>>>>                                        and: [ ancestor author ~= aVersionArray second ] ])
>>>>                        ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
>>>> | versionsForPackage |
>>>> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
>>>> versionsForPackage := versions
>>>>        select: [ :v | v first = workingCopy package name ].
>>>> versionsForPackage
>>>>        do: [ :aVersionArray |
>>>>                workingCopy ancestors
>>>>                        do: [ :ancestor |
>>>>                                (ancestor versionNumber < aVersionArray third
>>>>                                        or: [ ancestor versionNumber = aVersionArray third
>>>>                                                        and: [ ancestor author ~= aVersionArray second ] ])
>>>>                                        ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :aVersionArray | ...
>>>> Array(SequenceableCollection)>>do:
>>>> [ :workingCopy |
>>>> | versionsForPackage |
>>>> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
>>>> versionsForPackage := versions
>>>>        select: [ :v | v first = workingCopy package name ].
>>>> versionsForPackage
>>>>        do: [ :aVersionArray |
>>>>                workingCopy ancestors
>>>>                        do: [ :ancestor |
>>>>                                (ancestor versionNumber < aVersionArray third
>>>>                                        or: [ ancestor versionNumber = aVersionArray third
>>>>                                                        and: [ ancestor author ~= aVersionArray second ] ])
>>>>                                        ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :workingCopy | ...
>>>> Array(SequenceableCollection)>>do:
>>>> MCFileRepositoryInspector>>refresh
>>>> [ self refresh.
>>>> MCWorkingCopy addDependent: self ] in MCFileRepositoryInspector>>setRepository:workingCopy: in Block: [ self refresh....
>>>> [ self value.
>>>> Processor terminateActive ] in BlockClosure>>newProcess in Block: [ self value....
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Guille Polito
>>>> Research Engineer
>>>>
>>>> Centre de Recherche en Informatique, Signal et Automatique de Lille
>>>> CRIStAL - UMR 9189
>>>> French National Center for Scientific Research - http://www.cnrs.fr
>>>>
>>>> Web: http://guillep.github.io
>>>> Phone: +33 06 52 70 66 13
>>>
>>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Error opening Zinc MC repository in latest Pharo 7

Sven Van Caekenberghe-2
OK, I have a working MC browser again, thanks.

> On 13 Mar 2018, at 16:13, Pavel Krivanek <[hidden email]> wrote:
>
> Switch to the remotes view and do fetch from the pharo-project
> repository.  Anyway, this should be not an issue, because as soon as
> you will try to create a branch for a new issue, this step should be
> done automatically.
>
> -- Pavel
>
> 2018-03-13 16:02 GMT+01:00 Sven Van Caekenberghe <[hidden email]>:
>> I did:
>>
>> (IceRepositoryCreator new
>> location: '/Users/sven/Develop/git/pharo' asFileReference;
>> subdirectory: 'src';
>> createRepository)
>> register.
>>
>> But than it says it is out of sync (my local copy is still on an old branch), what is the easiest way to sync up locally (command line) ?
>>
>>> On 13 Mar 2018, at 15:53, Pavel Krivanek <[hidden email]> wrote:
>>>
>>> Hi, try firstly to register the local Pharo repository. For me it something like
>>>
>>> location := '/tmp/ramdisk/pharo'.
>>> (IceRepositoryCreator new
>>> location: location asFileReference;
>>> subdirectory: 'src';
>>> createRepository)
>>> register.
>>>
>>> --- Pavel
>>>
>>>
>>>
>>> 2018-03-13 15:40 GMT+01:00 Sven Van Caekenberghe <[hidden email]>:
>>>> Well it is so magic that I do not understand what is happening ...
>>>>
>>>>> On 13 Mar 2018, at 15:32, Guillermo Polito <[hidden email]> wrote:
>>>>>
>>>>> Ah, that's Iceberg's magic proxies I think :/
>>>>>
>>>>> On Tue, Mar 13, 2018 at 3:05 PM, Sven Van Caekenberghe <[hidden email]> wrote:
>>>>> For some reason I can no longer open Zinc's old school MC repository in Pharo-7.0+alpha.build.690.sha.ffd58dcc88a0698be21b52b565a86316799cb25d (32 Bit)
>>>>>
>>>>> MCHttpRepository
>>>>> location: 'http://mc.stfx.eu/ZincHTTPComponents'
>>>>> user: ''
>>>>> password: ''.
>>>>>
>>>>>> Open repository (browser UI)
>>>>>
>>>>> gives me a DNU see [1]
>>>>>
>>>>> I just don't see what is wrong, maybe it has to do with the latest commit in the repo, (it took a git version number from the image as ancestor), but this code is hard to look at.
>>>>>
>>>>> Now I am stuck trying to fix a problem with Zinc.
>>>>>
>>>>> Any help would be appreciated,
>>>>>
>>>>> Sven
>>>>>
>>>>> [1]
>>>>>
>>>>> UndefinedObject(Object)>>doesNotUnderstand: #<
>>>>> [ :ancestor |
>>>>> (ancestor versionNumber < aVersionArray third
>>>>>       or: [ ancestor versionNumber = aVersionArray third
>>>>>                       and: [ ancestor author ~= aVersionArray second ] ])
>>>>>       ifTrue: [ newer add: ancestor name ] ] in [ :aVersionArray |
>>>>> workingCopy ancestors
>>>>>       do: [ :ancestor |
>>>>>               (ancestor versionNumber < aVersionArray third
>>>>>                       or: [ ancestor versionNumber = aVersionArray third
>>>>>                                       and: [ ancestor author ~= aVersionArray second ] ])
>>>>>                       ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
>>>>> | versionsForPackage |
>>>>> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
>>>>> versionsForPackage := versions
>>>>>       select: [ :v | v first = workingCopy package name ].
>>>>> versionsForPackage
>>>>>       do: [ :aVersionArray |
>>>>>               workingCopy ancestors
>>>>>                       do: [ :ancestor |
>>>>>                               (ancestor versionNumber < aVersionArray third
>>>>>                                       or: [ ancestor versionNumber = aVersionArray third
>>>>>                                                       and: [ ancestor author ~= aVersionArray second ] ])
>>>>>                                       ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :ancestor | ...
>>>>> Array(SequenceableCollection)>>do:
>>>>> [ :aVersionArray |
>>>>> workingCopy ancestors
>>>>>       do: [ :ancestor |
>>>>>               (ancestor versionNumber < aVersionArray third
>>>>>                       or: [ ancestor versionNumber = aVersionArray third
>>>>>                                       and: [ ancestor author ~= aVersionArray second ] ])
>>>>>                       ifTrue: [ newer add: ancestor name ] ] ] in [ :workingCopy |
>>>>> | versionsForPackage |
>>>>> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
>>>>> versionsForPackage := versions
>>>>>       select: [ :v | v first = workingCopy package name ].
>>>>> versionsForPackage
>>>>>       do: [ :aVersionArray |
>>>>>               workingCopy ancestors
>>>>>                       do: [ :ancestor |
>>>>>                               (ancestor versionNumber < aVersionArray third
>>>>>                                       or: [ ancestor versionNumber = aVersionArray third
>>>>>                                                       and: [ ancestor author ~= aVersionArray second ] ])
>>>>>                                       ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :aVersionArray | ...
>>>>> Array(SequenceableCollection)>>do:
>>>>> [ :workingCopy |
>>>>> | versionsForPackage |
>>>>> workingCopy ancestors do: [ :ancestor | loaded add: ancestor name ].
>>>>> versionsForPackage := versions
>>>>>       select: [ :v | v first = workingCopy package name ].
>>>>> versionsForPackage
>>>>>       do: [ :aVersionArray |
>>>>>               workingCopy ancestors
>>>>>                       do: [ :ancestor |
>>>>>                               (ancestor versionNumber < aVersionArray third
>>>>>                                       or: [ ancestor versionNumber = aVersionArray third
>>>>>                                                       and: [ ancestor author ~= aVersionArray second ] ])
>>>>>                                       ifTrue: [ newer add: ancestor name ] ] ] ] in MCFileRepositoryInspector>>refresh in Block: [ :workingCopy | ...
>>>>> Array(SequenceableCollection)>>do:
>>>>> MCFileRepositoryInspector>>refresh
>>>>> [ self refresh.
>>>>> MCWorkingCopy addDependent: self ] in MCFileRepositoryInspector>>setRepository:workingCopy: in Block: [ self refresh....
>>>>> [ self value.
>>>>> Processor terminateActive ] in BlockClosure>>newProcess in Block: [ self value....
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Guille Polito
>>>>> Research Engineer
>>>>>
>>>>> Centre de Recherche en Informatique, Signal et Automatique de Lille
>>>>> CRIStAL - UMR 9189
>>>>> French National Center for Scientific Research - http://www.cnrs.fr
>>>>>
>>>>> Web: http://guillep.github.io
>>>>> Phone: +33 06 52 70 66 13
>>>>
>>>>
>>>
>>
>>
>