[Pharo-project] Saving preferences to disk gives an error in latest pharo core
Saving preferences to disk gives an error in latest pharo core. I am on Ubuntu Linux with the latest VM. Any ideas how to fix this? -- Henrik Jegbjerg Hansen
Yes, it's caused by preferences referencing obsolete classes. Change Preferences class >> removePreference: aSymbol "Remove all memory of the given preference symbol." self dictionaryOfPreferences removeKey: aSymbol ifAbsent: []. Parameters removeKey: aSymbol ifAbsent: []. (Parameters at: #PersonalDictionaryOfPreferences ifAbsent: []) ifNotNil: [:personalDict | personalDict removeKey: aSymbol ifAbsent: []] Then evaluate: Preferences removePreference: #automaticFlapLayout; removePreference: #navigatorOnLeftEdge; removePreference: #classicNavigatorEnabled. And you should be able to save. Cheers, Henry On Nov 23, 2009, at 4:46 17PM, Henrik Jegbjerg Hansen wrote:
Saving preferences to disk gives an error in latest pharo core. I am on Ubuntu Linux with the latest VM.
Any ideas how to fix this?
-- Henrik Jegbjerg Hansen
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Thanks, this fixes it for me! Henrik Johansen <henrik.s.johansen@veloxit.no> writes:
Yes, it's caused by preferences referencing obsolete classes.
Change Preferences class >> removePreference: aSymbol "Remove all memory of the given preference symbol."
self dictionaryOfPreferences removeKey: aSymbol ifAbsent: []. Parameters removeKey: aSymbol ifAbsent: []. (Parameters at: #PersonalDictionaryOfPreferences ifAbsent: []) ifNotNil: [:personalDict | personalDict removeKey: aSymbol ifAbsent: []]
Then evaluate:
Preferences removePreference: #automaticFlapLayout; removePreference: #navigatorOnLeftEdge; removePreference: #classicNavigatorEnabled.
And you should be able to save.
Cheers, Henry
On Nov 23, 2009, at 4:46 17PM, Henrik Jegbjerg Hansen wrote:
Saving preferences to disk gives an error in latest pharo core. I am on Ubuntu Linux with the latest VM.
Any ideas how to fix this?
-- Henrik Jegbjerg Hansen
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Henrik Jegbjerg Hansen
participants (2)
-
Henrik Jegbjerg Hansen -
Henrik Johansen