[squeak-dev] problem with Omnibrowser and Refactoring engine

Levente Uzonyi leves at elte.hu
Sat Mar 2 02:06:55 UTC 2013


Uh, late response. Optimist used to be a global defined by OCompletion. I 
removed it long ago.


Levente

On Mon, 28 Jan 2013, Frank Shearar wrote:

> Right. OBDefinitionPanel >> createCompletionController looks like this:
>
> createCompletionController
> 	^ (Optimist ifTrue: [OController] ifFalse: [ECController]) model: self
>
> and Optimist is nil. I don't know what Optimist is meant to be. It's
> certainly not a class variable of OBDefinitionPanel and friends.
>
> frank
>
> On 25 January 2013 19:09, Raymond Asselin <asselinraymond at videotron.ca> wrote:
>> I just loaded OmniBrowser with Refactoring engine from the menu Help-> Extending the system
>>
>> Everything seems o.k. for the loading and installing
>> But when I tried to change the name of the Class (in the Class template of Omnibrowser) I had an error style "Undefined object >> mustBeBooleanIn:
>>
>> This error does not appear if we don't load Omnibrowser and Refactoring engine.
>>
>>
>> On OSX 10.7.5, keyboard:  français-canada
>> Cog vm of 2013-01-13
>>
>> ==== SqueakDebug.log ====
>>
>>
>> NonBooleanReceiver: proceed for truth.
>> 25 January 2013 1:47:25.557 pm
>>
>> VM: Mac OS  - Smalltalk
>> Image: Squeak4.4 [latest update: #12327]
>>
>> SecurityManager state:
>> Restricted: false
>> FileAccess: true
>> SocketAccess: true
>> Working Dir /Users/ray1/Documents/PROGRAMMATION/Squeak4.4-12327
>> Trusted Dir /foobar/tooBar/forSqueak/bogus/
>> Untrusted Dir /Users/ray1/Library/Preferences/Croquet/Internet/Untrusted
>>
>> UndefinedObject(Object)>>mustBeBooleanIn:
>>         Receiver: nil
>>         Arguments and temporary variables:
>>                 context:        OBDefinitionPanel>>createCompletionController
>>                 proceedValue:   nil
>>         Receiver's instance variables:
>> nil
>> UndefinedObject(Object)>>mustBeBoolean
>>         Receiver: nil
>>         Arguments and temporary variables:
>>
>>         Receiver's instance variables:
>> nil
>> OBDefinitionPanel>>createCompletionController
>>         Receiver: an OBDefinitionPanel
>>         Arguments and temporary variables:
>>
>>         Receiver's instance variables:
>>                 browser:        an OBSystemBrowser
>>                 definition:     an OBClassDefinition
>>                 selection:      (1 to: 0)
>>
>> OBDefinitionPanel(OBTextPanel)>>initializeCompletionController
>>         Receiver: an OBDefinitionPanel
>>         Arguments and temporary variables:
>>                 controller:     nil
>>         Receiver's instance variables:
>>                 browser:        an OBSystemBrowser
>>                 definition:     an OBClassDefinition
>>                 selection:      (1 to: 0)
>>
>> OBDefinitionPanel>>completionController
>>         Receiver: an OBDefinitionPanel
>>         Arguments and temporary variables:
>>                 controller:     nil
>>         Receiver's instance variables:
>>                 browser:        an OBSystemBrowser
>>                 definition:     an OBClassDefinition
>>                 selection:      (1 to: 0)
>>
>> ECToolSet class>>codeCompletionAround:textMorph:keyStroke:
>>         Receiver: ECToolSet
>>         Arguments and temporary variables:
>>                 aBlock:         [closure] in OBTextMorphWithShout(TextMorph)>>keyStroke:
>>                 aTextMorph:     an OBTextMorphWithShout(1373)
>>                 evt:    [keystroke 'C']
>>                 completionAllowed:      true
>>                 editor:         an OBTextMorphEditorWithShout
>>                 stringHolder:   an OBDefinitionPanel
>>         Receiver's instance variables:
>>                 superclass:     StandardToolSet
>>                 methodDict:     a MethodDictionary()
>>                 format:         2
>>                 instanceVariables:      nil
>>                 organization:   ('as yet unclassified')
>>
>>                 subclasses:     nil
>>                 name:   #ECToolSet
>>                 classPool:      nil
>>                 sharedPools:    nil
>>                 environment:    Smalltalk globals "a SystemDictionary with lots of globals"
>>                 category:       #'Ocompletion-ECSqueak'
>>
>> ToolSet class>>codeCompletionAround:textMorph:keyStroke:
>>         Receiver: ToolSet
>>         Arguments and temporary variables:
>>                 aBlock:         [closure] in OBTextMorphWithShout(TextMorph)>>keyStroke:
>>                 aTextMorph:     an OBTextMorphWithShout(1373)
>>                 evt:    [keystroke 'C']
>>         Receiver's instance variables:
>>                 superclass:     AppRegistry
>>                 methodDict:     a MethodDictionary()
>>                 format:         2
>>                 instanceVariables:      nil
>>                 organization:   ('as yet unclassified')
>>
>>                 subclasses:     nil
>>                 name:   #ToolSet
>>                 classPool:      nil
>>                 sharedPools:    nil
>>                 environment:    Smalltalk globals "a SystemDictionary with lots of globals"
>>                 category:       #'System-Applications'
>>                 registeredClasses:      an OrderedCollection(StandardToolSet ECToolSet)
>>                 default:        ECToolSet
>>
>> OBTextMorphWithShout(TextMorph)>>keyStroke:
>>         Receiver: an OBTextMorphWithShout(1373)
>>         Arguments and temporary variables:
>>                 evt:    [keystroke 'C']
>>         Receiver's instance variables:
>>                 bounds:         0 at 0 corner: 569 at 82
>>                 owner:  a TransformMorph(2856)
>>                 submorphs:      #()
>>                 fullBounds:     0 at 0 corner: 569 at 82
>>                 color:  Color black
>>                 extension:      a MorphExtension (1654) [other:  (blinkStart -> 898669)]
>>                 borderWidth:    0
>>                 borderColor:    Color black
>>                 textStyle:      a TextStyle Bitmap DejaVu Sans 9
>>                 text:   a Text for 'Object subclass: #NameOfSubclass
>>         instanceVariableNames: ''''...etc...
>>                 wrapFlag:       true
>>                 paragraph:      a MultiNewParagraph
>>                 editor:         an OBTextMorphEditorWithShout
>>                 container:      nil
>>                 predecessor:    nil
>>                 successor:      nil
>>                 backgroundColor:        nil
>>                 margins:        nil
>>                 editHistory:    nil
>>                 editView:       an OBPluggableTextMorphWithShout(2236)
>>                 acceptOnCR:     false
>>
>> OBTextMorphWithShout(TextMorphForEditView)>>keyStroke:
>>         Receiver: an OBTextMorphWithShout(1373)
>>         Arguments and temporary variables:
>>                 evt:    [keystroke 'C']
>>                 view:   an OBPluggableTextMorphWithShout(2236)
>>         Receiver's instance variables:
>>                 bounds:         0 at 0 corner: 569 at 82
>>                 owner:  a TransformMorph(2856)
>>                 submorphs:      #()
>>                 fullBounds:     0 at 0 corner: 569 at 82
>>                 color:  Color black
>>                 extension:      a MorphExtension (1654) [other:  (blinkStart -> 898669)]
>>                 borderWidth:    0
>>                 borderColor:    Color black
>>                 textStyle:      a TextStyle Bitmap DejaVu Sans 9
>>                 text:   a Text for 'Object subclass: #NameOfSubclass
>>         instanceVariableNames: ''''...etc...
>>                 wrapFlag:       true
>>                 paragraph:      a MultiNewParagraph
>>                 editor:         an OBTextMorphEditorWithShout
>>                 container:      nil
>>                 predecessor:    nil
>>                 successor:      nil
>>                 backgroundColor:        nil
>>                 margins:        nil
>>                 editHistory:    nil
>>                 editView:       an OBPluggableTextMorphWithShout(2236)
>>                 acceptOnCR:     false
>>
>> OBTextMorphWithShout(TextMorph)>>handleKeystroke:
>>         Receiver: an OBTextMorphWithShout(1373)
>>         Arguments and temporary variables:
>>                 anEvent:        [keystroke 'C']
>>                 pasteUp:        nil
>>         Receiver's instance variables:
>>                 bounds:         0 at 0 corner: 569 at 82
>>                 owner:  a TransformMorph(2856)
>>                 submorphs:      #()
>>                 fullBounds:     0 at 0 corner: 569 at 82
>>                 color:  Color black
>>                 extension:      a MorphExtension (1654) [other:  (blinkStart -> 898669)]
>>                 borderWidth:    0
>>                 borderColor:    Color black
>>                 textStyle:      a TextStyle Bitmap DejaVu Sans 9
>>                 text:   a Text for 'Object subclass: #NameOfSubclass
>>         instanceVariableNames: ''''...etc...
>>                 wrapFlag:       true
>>                 paragraph:      a MultiNewParagraph
>>                 editor:         an OBTextMorphEditorWithShout
>>                 container:      nil
>>                 predecessor:    nil
>>                 successor:      nil
>>                 backgroundColor:        nil
>>                 margins:        nil
>>                 editHistory:    nil
>>                 editView:       an OBPluggableTextMorphWithShout(2236)
>>                 acceptOnCR:     false
>>
>> KeyboardEvent>>sentTo:
>>         Receiver: [keystroke 'C']
>>         Arguments and temporary variables:
>>                 anObject:       an OBTextMorphWithShout(1373)
>>         Receiver's instance variables:
>>                 timeStamp:      898169
>>                 source:         a HandMorph(3216)
>>                 type:   #keystroke
>>                 buttons:        8
>>                 position:       17 at 13
>>                 handler:        nil
>>                 wasHandled:     true
>>                 keyValue:       67
>>
>> OBTextMorphWithShout(Morph)>>handleEvent:
>>         Receiver: an OBTextMorphWithShout(1373)
>>         Arguments and temporary variables:
>>                 anEvent:        [keystroke 'C']
>>         Receiver's instance variables:
>>                 bounds:         0 at 0 corner: 569 at 82
>>                 owner:  a TransformMorph(2856)
>>                 submorphs:      #()
>>                 fullBounds:     0 at 0 corner: 569 at 82
>>                 color:  Color black
>>                 extension:      a MorphExtension (1654) [other:  (blinkStart -> 898669)]
>>                 borderWidth:    0
>>                 borderColor:    Color black
>>                 textStyle:      a TextStyle Bitmap DejaVu Sans 9
>>                 text:   a Text for 'Object subclass: #NameOfSubclass
>>         instanceVariableNames: ''''...etc...
>>                 wrapFlag:       true
>>                 paragraph:      a MultiNewParagraph
>>                 editor:         an OBTextMorphEditorWithShout
>>                 container:      nil
>>                 predecessor:    nil
>>                 successor:      nil
>>                 backgroundColor:        nil
>>                 margins:        nil
>>                 editHistory:    nil
>>                 editView:       an OBPluggableTextMorphWithShout(2236)
>>                 acceptOnCR:     false
>>
>> OBTextMorphWithShout(Morph)>>handleFocusEvent:
>>         Receiver: an OBTextMorphWithShout(1373)
>>         Arguments and temporary variables:
>>                 anEvent:        [keystroke 'C']
>>         Receiver's instance variables:
>>                 bounds:         0 at 0 corner: 569 at 82
>>                 owner:  a TransformMorph(2856)
>>                 submorphs:      #()
>>                 fullBounds:     0 at 0 corner: 569 at 82
>>                 color:  Color black
>>                 extension:      a MorphExtension (1654) [other:  (blinkStart -> 898669)]
>>                 borderWidth:    0
>>                 borderColor:    Color black
>>                 textStyle:      a TextStyle Bitmap DejaVu Sans 9
>>                 text:   a Text for 'Object subclass: #NameOfSubclass
>>         instanceVariableNames: ''''...etc...
>>                 wrapFlag:       true
>>                 paragraph:      a MultiNewParagraph
>>                 editor:         an OBTextMorphEditorWithShout
>>                 container:      nil
>>                 predecessor:    nil
>>                 successor:      nil
>>                 backgroundColor:        nil
>>                 margins:        nil
>>                 editHistory:    nil
>>                 editView:       an OBPluggableTextMorphWithShout(2236)
>>                 acceptOnCR:     false
>>
>> [] in HandMorph>>sendFocusEvent:to:clear:
>>         Receiver: a HandMorph(3216)
>>         Arguments and temporary variables:
>> <<error during printing>
>>         Receiver's instance variables:
>>                 bounds:         747 at 431 corner: 763 at 447
>>                 owner:  a PasteUpMorph(1622) [world]
>>                 submorphs:      #()
>>                 fullBounds:     747 at 431 corner: 763 at 447
>>                 color:  Color blue
>>                 extension:      a MorphExtension (539) [eventHandler = an EventHandler]
>>                 mouseFocus:     nil
>>                 keyboardFocus:  an OBTextMorphWithShout(1373)
>>                 eventListeners:         nil
>>                 mouseListeners:         nil
>>                 keyboardListeners:      a WeakArray(a DockingBarMorph(3368))
>>                 mouseClickState:        nil
>>                 mouseOverHandler:       a MouseOverHandler
>>                 lastMouseEvent:         [747 at 431 747 at 431 mouseMove SHIFT 898004]
>>                 targetOffset:   17 at 13
>>                 damageRecorder:         a DamageRecorder
>>                 cacheCanvas:    nil
>>                 cachedCanvasHasHoles:   true
>>                 temporaryCursor:        nil
>>                 temporaryCursorOffset:  nil
>>                 hardwareCursor:         nil
>>                 hasChanged:     true
>>                 savedPatch:     nil
>>                 userInitials:   ''
>>                 lastEventBuffer:        #(1 898004 747 431 0 1 0 1)
>>                 genieGestureProcessor:  nil
>>                 keyboardInterpreter:    a MacUnicodeInputInterpreter
>>
>> BlockClosure>>on:do:
>>         Receiver: [closure] in HandMorph>>sendFocusEvent:to:clear:
>>         Arguments and temporary variables:
>>                 exception:      Error
>>                 handlerAction:  [closure] in PasteUpMorph>>becomeActiveDuring:
>>                 handlerActive:  false
>>         Receiver's instance variables:
>>                 outerContext:   HandMorph>>sendFocusEvent:to:clear:
>>                 startpc:        63
>>                 numArgs:        0
>>
>> PasteUpMorph>>becomeActiveDuring:
>>         Receiver: a PasteUpMorph(1622) [world]
>>         Arguments and temporary variables:
>>                 aBlock:         [closure] in HandMorph>>sendFocusEvent:to:clear:
>>                 priorWorld:     a PasteUpMorph(1622) [world]
>>                 priorHand:      a HandMorph(3216)
>>                 priorEvent:     nil
>>         Receiver's instance variables:
>>                 bounds:         0 at 0 corner: 1600 at 952
>>                 owner:  nil
>>                 submorphs:      {a SystemWindow(418) . a DockingBarMorph(3368) . a PluggableSystemWi...etc...
>>                 fullBounds:     0 at 0 corner: 1600 at 952
>>                 color:  an InfiniteForm
>>                 extension:      a MorphExtension (2543) [eventHandler = an EventHandler]  [other:  (...etc...
>>                 borderWidth:    0
>>                 borderColor:    (Color r: 0.515 g: 0.181 b: 0.263)
>>                 presenter:      an EtoysPresenter (2627)
>>                 model:  a MorphicModel(3376)
>>                 cursor:         1
>>                 padding:        3
>>                 backgroundMorph:        nil
>>                 turtleTrailsForm:       nil
>>                 turtlePen:      nil
>>                 lastTurtlePositions:    nil
>>                 isPartsBin:     nil
>>                 indicateCursor:         nil
>>                 wantsMouseOverHalos:    nil
>>                 worldState:     a WorldState
>>                 griddingOn:     nil
>>
>> HandMorph>>sendFocusEvent:to:clear:
>>         Receiver: a HandMorph(3216)
>>         Arguments and temporary variables:
>>                 anEvent:        [keystroke 'C']
>>                 focusHolder:    an OBTextMorphWithShout(1373)
>>                 aBlock:         [closure] in HandMorph>>sendKeyboardEvent:
>>                 w:      a PasteUpMorph(1622) [world]
>>                 result:         #(nil)
>>         Receiver's instance variables:
>>                 bounds:         747 at 431 corner: 763 at 447
>>                 owner:  a PasteUpMorph(1622) [world]
>>                 submorphs:      #()
>>                 fullBounds:     747 at 431 corner: 763 at 447
>>                 color:  Color blue
>>                 extension:      a MorphExtension (539) [eventHandler = an EventHandler]
>>                 mouseFocus:     nil
>>                 keyboardFocus:  an OBTextMorphWithShout(1373)
>>                 eventListeners:         nil
>>                 mouseListeners:         nil
>>                 keyboardListeners:      a WeakArray(a DockingBarMorph(3368))
>>                 mouseClickState:        nil
>>                 mouseOverHandler:       a MouseOverHandler
>>                 lastMouseEvent:         [747 at 431 747 at 431 mouseMove SHIFT 898004]
>>                 targetOffset:   17 at 13
>>                 damageRecorder:         a DamageRecorder
>>                 cacheCanvas:    nil
>>                 cachedCanvasHasHoles:   true
>>                 temporaryCursor:        nil
>>                 temporaryCursorOffset:  nil
>>                 hardwareCursor:         nil
>>                 hasChanged:     true
>>                 savedPatch:     nil
>>                 userInitials:   ''
>>                 lastEventBuffer:        #(1 898004 747 431 0 1 0 1)
>>                 genieGestureProcessor:  nil
>>                 keyboardInterpreter:    a MacUnicodeInputInterpreter
>>
>> HandMorph>>sendEvent:focus:clear:
>>         Receiver: a HandMorph(3216)
>>         Arguments and temporary variables:
>>                 anEvent:        [keystroke 'C']
>>                 focusHolder:    an OBTextMorphWithShout(1373)
>>                 aBlock:         [closure] in HandMorph>>sendKeyboardEvent:
>>                 result:         nil
>>         Receiver's instance variables:
>>                 bounds:         747 at 431 corner: 763 at 447
>>                 owner:  a PasteUpMorph(1622) [world]
>>                 submorphs:      #()
>>                 fullBounds:     747 at 431 corner: 763 at 447
>>                 color:  Color blue
>>                 extension:      a MorphExtension (539) [eventHandler = an EventHandler]
>>                 mouseFocus:     nil
>>                 keyboardFocus:  an OBTextMorphWithShout(1373)
>>                 eventListeners:         nil
>>                 mouseListeners:         nil
>>                 keyboardListeners:      a WeakArray(a DockingBarMorph(3368))
>>                 mouseClickState:        nil
>>                 mouseOverHandler:       a MouseOverHandler
>>                 lastMouseEvent:         [747 at 431 747 at 431 mouseMove SHIFT 898004]
>>                 targetOffset:   17 at 13
>>                 damageRecorder:         a DamageRecorder
>>                 cacheCanvas:    nil
>>                 cachedCanvasHasHoles:   true
>>                 temporaryCursor:        nil
>>                 temporaryCursorOffset:  nil
>>                 hardwareCursor:         nil
>>                 hasChanged:     true
>>                 savedPatch:     nil
>>                 userInitials:   ''
>>                 lastEventBuffer:        #(1 898004 747 431 0 1 0 1)
>>                 genieGestureProcessor:  nil
>>                 keyboardInterpreter:    a MacUnicodeInputInterpreter
>>
>> HandMorph>>sendKeyboardEvent:
>>         Receiver: a HandMorph(3216)
>>         Arguments and temporary variables:
>>                 anEvent:        [keystroke 'C']
>>         Receiver's instance variables:
>>                 bounds:         747 at 431 corner: 763 at 447
>>                 owner:  a PasteUpMorph(1622) [world]
>>                 submorphs:      #()
>>                 fullBounds:     747 at 431 corner: 763 at 447
>>                 color:  Color blue
>>                 extension:      a MorphExtension (539) [eventHandler = an EventHandler]
>>                 mouseFocus:     nil
>>                 keyboardFocus:  an OBTextMorphWithShout(1373)
>>                 eventListeners:         nil
>>                 mouseListeners:         nil
>>                 keyboardListeners:      a WeakArray(a DockingBarMorph(3368))
>>                 mouseClickState:        nil
>>                 mouseOverHandler:       a MouseOverHandler
>>                 lastMouseEvent:         [747 at 431 747 at 431 mouseMove SHIFT 898004]
>>                 targetOffset:   17 at 13
>>                 damageRecorder:         a DamageRecorder
>>                 cacheCanvas:    nil
>>                 cachedCanvasHasHoles:   true
>>                 temporaryCursor:        nil
>>                 temporaryCursorOffset:  nil
>>                 hardwareCursor:         nil
>>                 hasChanged:     true
>>                 savedPatch:     nil
>>                 userInitials:   ''
>>                 lastEventBuffer:        #(1 898004 747 431 0 1 0 1)
>>                 genieGestureProcessor:  nil
>>                 keyboardInterpreter:    a MacUnicodeInputInterpreter
>>
>>
>> --- The full stack ---
>> UndefinedObject(Object)>>mustBeBooleanIn:
>> UndefinedObject(Object)>>mustBeBoolean
>> OBDefinitionPanel>>createCompletionController
>> OBDefinitionPanel(OBTextPanel)>>initializeCompletionController
>> OBDefinitionPanel>>completionController
>> ECToolSet class>>codeCompletionAround:textMorph:keyStroke:
>> ToolSet class>>codeCompletionAround:textMorph:keyStroke:
>> OBTextMorphWithShout(TextMorph)>>keyStroke:
>> OBTextMorphWithShout(TextMorphForEditView)>>keyStroke:
>> OBTextMorphWithShout(TextMorph)>>handleKeystroke:
>> KeyboardEvent>>sentTo:
>> OBTextMorphWithShout(Morph)>>handleEvent:
>> OBTextMorphWithShout(Morph)>>handleFocusEvent:
>> [] in HandMorph>>sendFocusEvent:to:clear:
>> BlockClosure>>on:do:
>> PasteUpMorph>>becomeActiveDuring:
>> HandMorph>>sendFocusEvent:to:clear:
>> HandMorph>>sendEvent:focus:clear:
>> HandMorph>>sendKeyboardEvent:
>>  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> HandMorph>>handleEvent:
>> HandMorph>>processEvents
>> [] in WorldState>>doOneCycleNowFor:
>> Array(SequenceableCollection)>>do:
>> WorldState>>handsDo:
>> WorldState>>doOneCycleNowFor:
>> WorldState>>doOneCycleFor:
>> PasteUpMorph>>doOneCycle
>> [] in Project class>>spawnNewProcess
>> [] in BlockClosure>>newProcess
>>
>>
>
>


More information about the Squeak-dev mailing list