Mantis - Squeak
Viewing Issue Advanced Details
2309 Morphic major always 12-09-05 01:14 01-18-06 19:17
KenCausey  
 
normal  
closed 3.9  
fixed  
none    
none 3.9  
0002309: Slip in TheWorldMenu>>#openMenu
When ToolBuilder was incorporated (0001915) many methods were changed. An error was made in the changes to TheWorldMenu>>#openMenu. It looks like the definition of the menu entry for 'file...' was kind of merged with that of 'file list'.

I'm including a proposed fix.
8 December 2005 6:04:36 pm

VM: unix - a SmalltalkImage
Image: Squeak3.9alpha [latest update: 0006705]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir /home/ken/projects/squeak/task1
Trusted Dir /home/ken/projects/squeak/task1/secure
Untrusted Dir /home/ken/projects/squeak/task1/My Squeak

TheWorldMenu(Object)>>doesNotUnderstand: #openFileDirectly
    Receiver: a TheWorldMenu
    Arguments and temporary variables:
        aMessage: openFileDirectly
    Receiver's instance variables:
        myProject: a Project(Unnamed1)
        myWorld: a PasteUpMorph(1622) [world]
        myHand: a HandMorph(3216)

TheWorldMenu>>doMenuItem:with:
    Receiver: a TheWorldMenu
    Arguments and temporary variables:
        aCollection: an Array(a TheWorldMenu #openFileDirectly)
        event: [943@694 mouseUp 95614]
        realTarget: a TheWorldMenu
        selector: #openFileDirectly
        nArgs: 0
    Receiver's instance variables:
        myProject: a Project(Unnamed1)
        myWorld: a PasteUpMorph(1622) [world]
        myHand: a HandMorph(3216)

[] in MenuItemMorph>>invokeWithEvent: {[(selArgCount := selector numArgs) = 0 ifTrue: [target perform: selector] ...]}
    Arguments and temporary variables:
        evt: [943@694 mouseUp 95614]
        selArgCount: 2
        w: a PasteUpMorph(1622) [world]

BlockContext>>ensure:
    Receiver: [] in MenuItemMorph>>invokeWithEvent: {[(selArgCount := selector numArgs) = 0 ifTrue: [t...etc...
    Arguments and temporary variables:
        aBlock: [] in CursorWithMask(Cursor)>>showWhile: {[oldcursor show]}
        returnValue: nil
        b: nil
    Receiver's instance variables:
        sender: BlockContext>>ensure:
        pc: 152
        stackp: 0
        nargs: 0
        startpc: 124
        home: MenuItemMorph>>invokeWithEvent:


--- The full stack ---
TheWorldMenu(Object)>>doesNotUnderstand: #openFileDirectly
TheWorldMenu>>doMenuItem:with:
[] 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]}
related to 0001915closed  Integrate PlusTool fixes 
has duplicate 0002530closed  MessageNotUnderstood: TheWorldMenu>>openFileDirectly in 6713 
 TheWorldMenu-openMenu-file-fix.1.cs.gz [^] (621 bytes) 12-09-05 01:14

Notes
(0003252)
Eddie Cottongim   
12-10-05 03:39   
I had the same problem and Ken's fix worked for me. It has my vote.
(0003533)
MarcusDenker   
01-18-06 19:17   
will be fixed in 3.9a6715