Hi Sebastian,

which version are you using? I looked into 3.0 and 4.0, and there is nothing 
there about setting packageList to nil in MCFileRepositoryInspector.

Thierry
________________________________
De : Pharo-dev [[email protected]] de la part de Sebastian 
Sastre [[email protected]]
Envoyé : lundi 7 juillet 2014 22:45
À : Pharo Development List
Objet : [Pharo-dev] Workaround monticello issue

Hi there,

I’ve just hit an issue that prevented to open packages in monticello

MessageNotUnderstood: receiver of "indexOf:" is nil
UndefinedObject(Object)>>doesNotUnderstand: #indexOf:
MCFileRepositoryInspector>>packageSelection
PluggableListMorph>>getCurrentSelectionIndex
PluggableListMorph>>updateList
PluggableListMorph>>update:
MCFileRepositoryInspector(Object)>>changed: in Block: [ :aDependent | 
aDependent update: aParameter ]
DependentsArray>>do:
MCFileRepositoryInspector(Object)>>changed:
MCFileRepositoryInspector>>refresh
MCFileRepositoryInspector>>setRepository:workingCopy: in Block: [ ...
BlockClosure>>newProcess in Block: [ ...

This is what I’m using as hacky workaround:


MCFileRepositoryInspector>>packageSelection
^ self packageList isNil
ifTrue:[ 1 ]
ifFalse:[ self packageList indexOf: selectedPackage ]

The problem is that packageList is nil for some reason.

Looks like filetree is involved since
1. I’m using it and
2. it sets an extension method #refresh that makes packageList := nil




sebastian<https://about.me/sebastianconcept>

o/

blog: http://sebastianconcept.com<http://sebastianconcept.com/>
LinkedIn: http://www.linkedin.com/in/sebastiansastre
github: https://github.com/sebastianconcept





Reply via email to