[squeak-dev] Move method to trait on class-side - problem?

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

[squeak-dev] Move method to trait on class-side - problem?

Sophie424
When I try to move a class-side method to a trait I get this walkback. I
accepted the default trait name. Is there something different I should do?
Instance-side works fine.

Thanks - Sophie

===============

VM: Win32 - a SmalltalkImage
Image: Squeak3.9.1 [latest update: #7075]

Metaclass(Object)>>doesNotUnderstand: #category
 Receiver: MPRepository class
 Arguments and temporary variables:
  aMessage:  category
 Receiver's instance variables:
  superclass:  MPNamedElement class
  methodDict:  a MethodDictionary(#allOpenRepos->a CompiledMethod (3013)
#metaTree...etc...
  format:  158
  instanceVariables:  #('allOpenRepos')
  organization:  ('as yet unclassified' allOpenRepos metaTreeView)

  thisClass:  MPRepository
  traitComposition:  nil
  localSelectors:  nil

OBCmdMoveMethodToTrait>>askForNewTraitFromClass:
 Receiver: an OBCmdMoveMethodToTrait
 Arguments and temporary variables:
  actualClass:  MPRepository class
  traitName:  #'TMPRepository class'
  newTrait:  nil
 Receiver's instance variables:
  target:  OBMethodNode<MPRepository class#metaTreeView>
  requestor:  an OBColumn(metaTreeView)

OBCmdMoveMethodToTrait>>execute
 Receiver: an OBCmdMoveMethodToTrait
 Arguments and temporary variables:
  actualClass:  MPRepository class
  aTrait:  nil
 Receiver's instance variables:
  target:  OBMethodNode<MPRepository class#metaTreeView>
  requestor:  an OBColumn(metaTreeView)

OBCmdMoveMethodToTrait(OBCommand)>>perform:orSendTo:
 Receiver: an OBCmdMoveMethodToTrait
 Arguments and temporary variables:
  aSelector:  #execute
  anObject:  an OBPluggableListMorph(384)
 Receiver's instance variables:
  target:  OBMethodNode<MPRepository class#metaTreeView>
  requestor:  an OBColumn(metaTreeView)


--- The full stack ---
Metaclass(Object)>>doesNotUnderstand: #category
OBCmdMoveMethodToTrait>>askForNewTraitFromClass:
OBCmdMoveMethodToTrait>>execute
OBCmdMoveMethodToTrait(OBCommand)>>perform:orSendTo:
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[] in MenuItemMorph>>invokeWithEvent: {[(selArgCount := selector numArgs) =
0   ifTrue: [target perform: selector] ...]}
BlockContext>>ensure:
CursorWithMask(Cursor)>>showWhile:
MenuItemMorph>>invokeWithEvent:
MenuItemMorph>>mouseUp:
MenuItemMorph>>handleMouseUp:
MouseButtonEvent>>sentTo:
MenuItemMorph(Morph)>>handleEvent:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>dispatchEvent:with:
MenuItemMorph(Morph)>>processEvent:using:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>dispatchEvent:with:
MenuMorph(Morph)>>processEvent:using:
MenuMorph(Morph)>>processEvent:
MenuMorph>>handleFocusEvent:
[] in HandMorph>>sendFocusEvent:to:clear: {[ActiveHand := self.  ActiveEvent
:= anEvent.  result := focusHolder     han...]}
[] in PasteUpMorph>>becomeActiveDuring: {[aBlock value]}
BlockContext>>on:do:
PasteUpMorph>>becomeActiveDuring:
HandMorph>>sendFocusEvent:to:clear:
HandMorph>>sendEvent:focus:clear:
HandMorph>>sendMouseEvent:
HandMorph>>handleEvent:
HandMorph>>processEvents
[] in WorldState>>doOneCycleNowFor: {[:h |  ActiveHand := h.  h
processEvents.  capturingGesture := capturingGest...]}
Array(SequenceableCollection)>>do:
WorldState>>handsDo:
WorldState>>doOneCycleNowFor:
WorldState>>doOneCycleFor:
PasteUpMorph>>doOneCycle
[] in Project class>>spawnNewProcess {[[World doOneCycle.  Processor yield.
false] whileFalse.  nil]}
[] in BlockContext>>newProcess {[self value.  Processor terminateActive]}




Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Move method to trait on class-side - problem?

Damien Cassou-3
Hi Sophie,

please open a bug on mantis with the Squeak image version you are
using and all the steps to reproduce.

Thank you

On Sun, Apr 6, 2008 at 3:36 AM, itsme213 <[hidden email]> wrote:

> When I try to move a class-side method to a trait I get this walkback. I
>  accepted the default trait name. Is there something different I should do?
>  Instance-side works fine.
>
>  Thanks - Sophie
>
>  ===============
>
>  VM: Win32 - a SmalltalkImage
>  Image: Squeak3.9.1 [latest update: #7075]
>
>  Metaclass(Object)>>doesNotUnderstand: #category
>   Receiver: MPRepository class
>   Arguments and temporary variables:
>   aMessage:  category
>   Receiver's instance variables:
>   superclass:  MPNamedElement class
>   methodDict:  a MethodDictionary(#allOpenRepos->a CompiledMethod (3013)
>  #metaTree...etc...
>   format:  158
>   instanceVariables:  #('allOpenRepos')
>   organization:  ('as yet unclassified' allOpenRepos metaTreeView)
>
>   thisClass:  MPRepository
>   traitComposition:  nil
>   localSelectors:  nil
>
>  OBCmdMoveMethodToTrait>>askForNewTraitFromClass:
>   Receiver: an OBCmdMoveMethodToTrait
>   Arguments and temporary variables:
>   actualClass:  MPRepository class
>   traitName:  #'TMPRepository class'
>   newTrait:  nil
>   Receiver's instance variables:
>   target:  OBMethodNode<MPRepository class#metaTreeView>
>   requestor:  an OBColumn(metaTreeView)
>
>  OBCmdMoveMethodToTrait>>execute
>   Receiver: an OBCmdMoveMethodToTrait
>   Arguments and temporary variables:
>   actualClass:  MPRepository class
>   aTrait:  nil
>   Receiver's instance variables:
>   target:  OBMethodNode<MPRepository class#metaTreeView>
>   requestor:  an OBColumn(metaTreeView)
>
>  OBCmdMoveMethodToTrait(OBCommand)>>perform:orSendTo:
>   Receiver: an OBCmdMoveMethodToTrait
>   Arguments and temporary variables:
>   aSelector:  #execute
>   anObject:  an OBPluggableListMorph(384)
>   Receiver's instance variables:
>   target:  OBMethodNode<MPRepository class#metaTreeView>
>   requestor:  an OBColumn(metaTreeView)
>
>
>  --- The full stack ---
>  Metaclass(Object)>>doesNotUnderstand: #category
>  OBCmdMoveMethodToTrait>>askForNewTraitFromClass:
>  OBCmdMoveMethodToTrait>>execute
>  OBCmdMoveMethodToTrait(OBCommand)>>perform:orSendTo:
>   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>  [] in MenuItemMorph>>invokeWithEvent: {[(selArgCount := selector numArgs) =
>  0   ifTrue: [target perform: selector] ...]}
>  BlockContext>>ensure:
>  CursorWithMask(Cursor)>>showWhile:
>  MenuItemMorph>>invokeWithEvent:
>  MenuItemMorph>>mouseUp:
>  MenuItemMorph>>handleMouseUp:
>  MouseButtonEvent>>sentTo:
>  MenuItemMorph(Morph)>>handleEvent:
>  MorphicEventDispatcher>>dispatchDefault:with:
>  MorphicEventDispatcher>>dispatchEvent:with:
>  MenuItemMorph(Morph)>>processEvent:using:
>  MorphicEventDispatcher>>dispatchDefault:with:
>  MorphicEventDispatcher>>dispatchEvent:with:
>  MenuMorph(Morph)>>processEvent:using:
>  MenuMorph(Morph)>>processEvent:
>  MenuMorph>>handleFocusEvent:
>  [] in HandMorph>>sendFocusEvent:to:clear: {[ActiveHand := self.  ActiveEvent
>  := anEvent.  result := focusHolder     han...]}
>  [] in PasteUpMorph>>becomeActiveDuring: {[aBlock value]}
>  BlockContext>>on:do:
>  PasteUpMorph>>becomeActiveDuring:
>  HandMorph>>sendFocusEvent:to:clear:
>  HandMorph>>sendEvent:focus:clear:
>  HandMorph>>sendMouseEvent:
>  HandMorph>>handleEvent:
>  HandMorph>>processEvents
>  [] in WorldState>>doOneCycleNowFor: {[:h |  ActiveHand := h.  h
>  processEvents.  capturingGesture := capturingGest...]}
>  Array(SequenceableCollection)>>do:
>  WorldState>>handsDo:
>  WorldState>>doOneCycleNowFor:
>  WorldState>>doOneCycleFor:
>  PasteUpMorph>>doOneCycle
>  [] in Project class>>spawnNewProcess {[[World doOneCycle.  Processor yield.
>  false] whileFalse.  nil]}
>  [] in BlockContext>>newProcess {[self value.  Processor terminateActive]}
>
>
>
>
>


--
Damien Cassou
Peter von der Ahé: «I'm beginning to see why Gilad wished us good
luck». (http://blogs.sun.com/ahe/entry/override_snafu)


Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Re: Move method to trait on class-side - problem?

Sophie424
Done, thanks.

Sophie

"Damien Cassou" <[hidden email]> wrote in message
news:[hidden email]...
> Hi Sophie,
>
> please open a bug on mantis with the Squeak image version you are
> using and all the steps to reproduce.
>
> Thank you
>




Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Move method to trait on class-side - problem?

stephane ducasse
sophie

can you post to the list the bug url?

Stef
On Apr 7, 2008, at 3:56 PM, itsme213 wrote:

> Done, thanks.
>
> Sophie
>
> "Damien Cassou" <[hidden email]> wrote in message
> news:[hidden email]...
>> Hi Sophie,
>>
>> please open a bug on mantis with the Squeak image version you are
>> using and all the steps to reproduce.
>>
>> Thank you
>>
>
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Re: Re: Move method to trait on class-side - problem?

Sophie424
"stephane ducasse" <[hidden email]> wrote

> can you post to the list the bug url?

Sure, http://bugs.squeak.org/view.php?id=7005

Sophie




Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Re: Move method to trait on class-side - problem?

Damien Cassou-3
On Mon, Apr 7, 2008 at 9:44 PM, itsme213 <[hidden email]> wrote:
>  Sure, http://bugs.squeak.org/view.php?id=7005

Fixed in OB-TraitsIntegration-dc.33. Thank you very much.


--
Damien Cassou
Peter von der Ahé: «I'm beginning to see why Gilad wished us good
luck». (http://blogs.sun.com/ahe/entry/override_snafu)