Unregistered Symbol instances

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

Unregistered Symbol instances

Nicolas Cellier
While trying a (Compiler recompileAll) to check my fix, I had a strange thing happening:
Error selector changed!

Indeed:

(Symbol allSubInstances reject: [:e | (Symbol findInterned: e asString) == e]) asArray
->
#(#comparingStringBetween:and: #openDebuggerOnFailingTestMethod #executeShould:inScopeOf:withExceptionDo: #deny:description:resumable: #debugAsFailure #runCaseAsFailure: #executeShould:inScopeOf:withDescriptionNotContaining: #logFailure: #executeShould:inScopeOf:withDescriptionContaining: #extensions)

Is it only me, or can someone confirm?

Nicolas


Reply | Threaded
Open this post in threaded view
|

Re: Unregistered Symbol instances

Frank Shearar-3
On 5 April 2013 20:36, Nicolas Cellier
<[hidden email]> wrote:

> While trying a (Compiler recompileAll) to check my fix, I had a strange
> thing happening:
> Error selector changed!
>
> Indeed:
>
> (Symbol allSubInstances reject: [:e | (Symbol findInterned: e asString) ==
> e]) asArray
> ->
> #(#comparingStringBetween:and: #openDebuggerOnFailingTestMethod
> #executeShould:inScopeOf:withExceptionDo: #deny:description:resumable:
> #debugAsFailure #runCaseAsFailure:
> #executeShould:inScopeOf:withDescriptionNotContaining: #logFailure:
> #executeShould:inScopeOf:withDescriptionContaining: #extensions)
>
> Is it only me, or can someone confirm?

I think it's only you: I get an empty array. Every one of those
methods is on TestCase though:

(((#(#comparingStringBetween:and: #openDebuggerOnFailingTestMethod
#executeShould:inScopeOf:withExceptionDo: #deny:description:resumable:
#debugAsFailure #runCaseAsFailure:
#executeShould:inScopeOf:withDescriptionNotContaining: #logFailure:
#executeShould:inScopeOf:withDescriptionContaining: #extensions)
    gather: [:sel | SystemNavigation default allImplementorsOf: sel]))
        collect: [:mref | mref actualClass]) asSet
"=> a Set(TestCase)"

frank

> Nicolas
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Unregistered Symbol instances

Nicolas Cellier
I can trigger the bug at each (Compiler recompileAll), but it seems that a Symbol rehash cures the problem...

Strange, because this image is a Squeak4.4 regularly updated to current trunk version, and clean of my own experiments (just used to run tests and fix bugs...).

Nicolas



2013/4/5 Frank Shearar <[hidden email]>
On 5 April 2013 20:36, Nicolas Cellier
<[hidden email]> wrote:
> While trying a (Compiler recompileAll) to check my fix, I had a strange
> thing happening:
> Error selector changed!
>
> Indeed:
>
> (Symbol allSubInstances reject: [:e | (Symbol findInterned: e asString) ==
> e]) asArray
> ->
> #(#comparingStringBetween:and: #openDebuggerOnFailingTestMethod
> #executeShould:inScopeOf:withExceptionDo: #deny:description:resumable:
> #debugAsFailure #runCaseAsFailure:
> #executeShould:inScopeOf:withDescriptionNotContaining: #logFailure:
> #executeShould:inScopeOf:withDescriptionContaining: #extensions)
>
> Is it only me, or can someone confirm?

I think it's only you: I get an empty array. Every one of those
methods is on TestCase though:

(((#(#comparingStringBetween:and: #openDebuggerOnFailingTestMethod
#executeShould:inScopeOf:withExceptionDo: #deny:description:resumable:
#debugAsFailure #runCaseAsFailure:
#executeShould:inScopeOf:withDescriptionNotContaining: #logFailure:
#executeShould:inScopeOf:withDescriptionContaining: #extensions)
    gather: [:sel | SystemNavigation default allImplementorsOf: sel]))
        collect: [:mref | mref actualClass]) asSet
"=> a Set(TestCase)"

frank

> Nicolas
>
>
>