[Seaside-dev] getting instances of abstract "GitBased" superclass..

Tobias Pape Das.Linux at gmx.de
Tue Oct 20 20:14:23 UTC 2015


On 20.10.2015, at 21:38, Chris Muller <ma.chris.m at gmail.com> wrote:

> In Seaside 3.2 for Squeak there seems to be a problem with one of the Pragma preferences:
> 
> a PragmaPreference
>         name:     #'GitHub Cache'
>         value:     nil
>         defaultValue:     nil
>         helpString:     ''
>         localToProject:     false
>         categoryList:     #(#Metacello)
>         changeInformee:     nil
>         changeSelector:     nil
>         type:     #String
>         provider:  MCGitBasedNetworkRepository  "<-- lookie here, problem"
>         getter:     #cacheDirectoryPath
>         setter:     #cacheDirectoryPath:
> 
> Somehow, the 'provider' has been initialized to a MCGitBasedNetworkRepository whose #basicDescription is a subclassResponsibility.  So the PragmaPreference is unable to access its #preferenceValue.
> 
> I was able to replace it in the debugger with its subclass, MCGitHubRepository, and that fixed the Preferences panel blowing up.  However, I'm not sure how it got initialized to that superclass in the first place..

Thats a Squeak problem which does not notice when a method with a preference 
goes away :)

We should look into that over at squeak-dev.

Best regards
	-Tobias



More information about the seaside-dev mailing list