[squeak-dev] Unable to load older my.prefs file

Eliot Miranda eliot.miranda at gmail.com
Tue Jul 7 03:10:28 UTC 2015


Hi Tim,

On Mon, Jul 6, 2015 at 12:58 PM, tim Rowledge <tim at rowledge.org> wrote:

> In a latest trunk image, fully updated, I tried to 'load from disk’ my
> older preferences. It fails because in DiskProxy>comeFullyUpOnReload: the
> code does
>
>         globalObj := Smalltalk at: symbol ifAbsent: [
>                 preSelector == nil & (constructorSelector = #yourself)
> ifTrue: [
>                         Transcript cr; show: symbol, ' is undeclared.'.
>                         (Undeclared includesKey: symbol) ifTrue: [^
> Undeclared at: symbol].
>                         Undeclared at: symbol put: nil.
>                         ^ nil].
>                 ^ self error: 'Global "', symbol, '" not found'].
> The symbol is #Context
>

Is there any way a Pharo preferences file could have muddied the waters?
Pharo refactored ContextPart and MethodContext to Context recently.  But
Squeak is still using the ContextPart/MethodContext names, and while
BlockCOntext remains, it isn't used.


> Saving a new preferences file and reloading seems to work. I’ve no idea
> where the #Context comes from and pretty much any attempt to look through
> the stack starts firing off annoying notifiers because the ‘aDataStream’
> parameter in the IdentityDictionary>readDataFrom:size: is nil by this point.
> Is this crucially important? Probably not but it will annoy anyone with a
> preferences file.
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Science is imagination equipped with grappling hooks.
>
>
>


-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150706/179b7ecd/attachment.htm


More information about the Squeak-dev mailing list