hpi-swa / sandblocks

A projectional editor for Squeak/Smalltalk.
MIT License
35 stars 3 forks source link

`BlockCannotReturn` when cancelling from selector creation #77

Closed LinqLover closed 2 years ago

LinqLover commented 2 years ago
Details
5 January 2022 9:48:03.681897 pm

VM: Win32 - Smalltalk
Image: Squeak6.0alpha [latest update: #20966]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir C:\Users\Christoph\OneDrive\Dokumente\Studium\S21_SS\Sonic Thinking\project\squeak
Trusted Dir C:\Users\Christoph\OneDrive\Dokumente\Studium\S21_SS\Sonic Thinking\project\squeak\Christoph
Untrusted Dir C:\Users\Christoph\OneDrive\Dokumente\My Squeak

Context>>cannotReturn:to:
    Receiver: [] in SBStMessageSend>>fixActions
    Arguments and temporary variables: 
        result:     send add:selector:
        homeContext:    nil
    Receiver's instance variables: 
        sender:     SBCodeAction>>do
        pc:     188
        stackp:     7
        method:     ([] in SBStMessageSend>>#fixActions "a CompiledBlock(3252105)")
        closureOrNil:   [closure] in SBStMessageSend>>fixActions
        receiver:   send add:selector:

Context>>cannotReturn:
    Receiver: [] in SBStMessageSend>>fixActions
    Arguments and temporary variables: 
        result:     send add:selector:
    Receiver's instance variables: 
        sender:     SBCodeAction>>do
        pc:     188
        stackp:     7
        method:     ([] in SBStMessageSend>>#fixActions "a CompiledBlock(3252105)")
        closureOrNil:   [closure] in SBStMessageSend>>fixActions
        receiver:   send add:selector:

[] in SBStMessageSend>>fixActions
    Receiver: send add:selector:
    Arguments and temporary variables: 
        class:  nil
        node:   send add:selector:
        method:     nil
    Receiver's instance variables: 
        bounds:     10@52 corner: 719@78
        owner:  block
        submorphs:  {binding aMenu . a SBStSignature(1525688)}
        fullBounds:     8@50 corner: 721@80
        color:  Color transparent
        extension:  a MorphExtension (3366774) [other:  (layoutProperties -> (TableLayou...etc...
        decorators:     an OrderedCollection()
        colorPolicyCache:   a SBLightPlusTheme
        signature:  a SBStSignature(1525688)
        pc:     96

SBCodeAction>>do
    Receiver: a SBCodeAction
    Arguments and temporary variables: 

    Receiver's instance variables: 
        label:  'Create method on ...'
        target:     send add:selector:
        action:     [closure] in SBStMessageSend>>fixActions

SBStMessageSend(SBBlock)>>proposeCodeActions:for:
    Receiver: send add:selector:
    Arguments and temporary variables: 
        aCollection:    {a SBCodeAction . a SBCodeAction}
        aBlock:     send add:selector:
        index:  1
    Receiver's instance variables: 
        bounds:     10@52 corner: 719@78
        owner:  block
        submorphs:  {binding aMenu . a SBStSignature(1525688)}
        fullBounds:     8@50 corner: 721@80
        color:  Color transparent
        extension:  a MorphExtension (3366774) [other:  (layoutProperties -> (TableLayou...etc...
        decorators:     an OrderedCollection()
        colorPolicyCache:   a SBLightPlusTheme
        signature:  a SBStSignature(1525688)
        pc:     96

[] in SBStMessageSend(SBBlock)>>tryFixIfFail:
    Receiver: send add:selector:
    Arguments and temporary variables: 
        aBlock:     [closure] in [] in SBStMethod(SBStBasicMethod)>>saveTryFixing:quick:
        actions:    {a SBCodeAction . a SBCodeAction}
    Receiver's instance variables: 
        bounds:     10@52 corner: 719@78
        owner:  block
        submorphs:  {binding aMenu . a SBStSignature(1525688)}
        fullBounds:     8@50 corner: 721@80
        color:  Color transparent
        extension:  a MorphExtension (3366774) [other:  (layoutProperties -> (TableLayou...etc...
        decorators:     an OrderedCollection()
        colorPolicyCache:   a SBLightPlusTheme
        signature:  a SBStSignature(1525688)
        pc:     96

Array(Collection)>>ifNotEmpty:
    Receiver: {a SBCodeAction . a SBCodeAction}
    Arguments and temporary variables: 
        aBlock:     [closure] in SBStMessageSend(SBBlock)>>tryFixIfFail:
    Receiver's instance variables: 
{a SBCodeAction . a SBCodeAction}

SBStMessageSend(SBBlock)>>tryFixIfFail:
    Receiver: send add:selector:
    Arguments and temporary variables: 
        aBlock:     [closure] in [] in SBStMethod(SBStBasicMethod)>>saveTryFixing:quick:
    Receiver's instance variables: 
        bounds:     10@52 corner: 719@78
        owner:  block
        submorphs:  {binding aMenu . a SBStSignature(1525688)}
        fullBounds:     8@50 corner: 721@80
        color:  Color transparent
        extension:  a MorphExtension (3366774) [other:  (layoutProperties -> (TableLayou...etc...
        decorators:     an OrderedCollection()
        colorPolicyCache:   a SBLightPlusTheme
        signature:  a SBStSignature(1525688)
        pc:     96

[] in SBStMethod(SBStBasicMethod)>>saveTryFixing:quick:
    Receiver: method addYellowButtonMenuItemsTo:event:
    Arguments and temporary variables: 
        aBoolean:   true
        aQuickBoolean:  false
        text:   nil
        newSelector:    nil
        block:  send add:selector:
    Receiver's instance variables: 
        bounds:     0@0 corner: 732@86
        owner:  a TransformMorph(2074557)
        submorphs:  {a SBRow(240004) . block}
        fullBounds:     -2@ -2 corner: 734@88
        color:  Color transparent
        extension:  a MorphExtension (3071934) [eventHandler = a SBEventBroadcast]  [oth...etc...
        decorators:     an OrderedCollection(a SBForceMoveDecorator a SBResizableDecorator ...etc...
        colorPolicyCache:   a SBLightPlusTheme
        methodClass:    SonyxStudyEventLEDVisualization
        typeCache:  nil
        currentSelector:    #addYellowButtonMenuItemsTo:event:
        currentClass:   SonyxStudyLEDStripVisualization
        body:   nil
        category:   #'-- all --'
        signature:  a SBStSignature(500625)
        classPrefix:    class input SonyxStudyLEDStripVisualization

SBStMessageSend(SBBlock)>>allBlocksDo:
    Receiver: send add:selector:
    Arguments and temporary variables: 
        aBlock:     [closure] in SBStMethod(SBStBasicMethod)>>saveTryFixing:quick:
    Receiver's instance variables: 
        bounds:     10@52 corner: 719@78
        owner:  block
        submorphs:  {binding aMenu . a SBStSignature(1525688)}
        fullBounds:     8@50 corner: 721@80
        color:  Color transparent
        extension:  a MorphExtension (3366774) [other:  (layoutProperties -> (TableLayou...etc...
        decorators:     an OrderedCollection()
        colorPolicyCache:   a SBLightPlusTheme
        signature:  a SBStSignature(1525688)
        pc:     96

[] in SBStBlockBody(SBBlock)>>allBlocksDo:
    Receiver: block
    Arguments and temporary variables: 
        aBlock:     [closure] in SBStMethod(SBStBasicMethod)>>saveTryFixing:quick:
        m:  send add:selector:
    Receiver's instance variables: 
        bounds:     8@25 corner: 721@79
        owner:  method addYellowButtonMenuItemsTo:event:
        submorphs:  {a SBRow(4151811) . send addYellowButtonMenuItemsTo:event: . send ad...etc...
        fullBounds:     6@23 corner: 723@81
        color:  (Color r: 0.304 g: 0.435 b: 0.413)
        extension:  a MorphExtension (3061889) [other:  (layoutProperties -> (TableLayou...etc...
        decorators:     an OrderedCollection()
        colorPolicyCache:   a SBLightPlusTheme
        temporaries:    a SBStTemporaries(1262100)
        bindings:   a SBStBlockBindings(1535128)
        pc:     0
        startPC:    nil
        endPC:  nil

[] in SBStBlockBody(Morph)>>childSandblocksDo:
    Receiver: block
    Arguments and temporary variables: 
        aBlock:     [closure] in SBStBlockBody(SBBlock)>>allBlocksDo:
        morph:  send add:selector:
    Receiver's instance variables: 
        bounds:     8@25 corner: 721@79
        owner:  method addYellowButtonMenuItemsTo:event:
        submorphs:  {a SBRow(4151811) . send addYellowButtonMenuItemsTo:event: . send ad...etc...
        fullBounds:     6@23 corner: 723@81
        color:  (Color r: 0.304 g: 0.435 b: 0.413)
        extension:  a MorphExtension (3061889) [other:  (layoutProperties -> (TableLayou...etc...
        decorators:     an OrderedCollection()
        colorPolicyCache:   a SBLightPlusTheme
        temporaries:    a SBStTemporaries(1262100)
        bindings:   a SBStBlockBindings(1535128)
        pc:     0
        startPC:    nil
        endPC:  nil

Array(SequenceableCollection)>>do:
    Receiver: {a SBRow(4151811) . send addYellowButtonMenuItemsTo:event: . send add:selector:}
    Arguments and temporary variables: 
        aBlock:     [closure] in SBStBlockBody(Morph)>>childSandblocksDo:
        index:  3
        indexLimiT:     3
    Receiver's instance variables: 
{a SBRow(4151811) . send addYellowButtonMenuItemsTo:event: . send add:selector:}

SBStBlockBody(Morph)>>submorphsDo:
    Receiver: block
    Arguments and temporary variables: 
        aBlock:     [closure] in SBStBlockBody(Morph)>>childSandblocksDo:
    Receiver's instance variables: 
        bounds:     8@25 corner: 721@79
        owner:  method addYellowButtonMenuItemsTo:event:
        submorphs:  {a SBRow(4151811) . send addYellowButtonMenuItemsTo:event: . send ad...etc...
        fullBounds:     6@23 corner: 723@81
        color:  (Color r: 0.304 g: 0.435 b: 0.413)
        extension:  a MorphExtension (3061889) [other:  (layoutProperties -> (TableLayou...etc...
        decorators:     an OrderedCollection()
        colorPolicyCache:   a SBLightPlusTheme
        temporaries:    a SBStTemporaries(1262100)
        bindings:   a SBStBlockBindings(1535128)
        pc:     0
        startPC:    nil
        endPC:  nil

SBStBlockBody(Morph)>>childSandblocksDo:
    Receiver: block
    Arguments and temporary variables: 
        aBlock:     [closure] in SBStBlockBody(SBBlock)>>allBlocksDo:
    Receiver's instance variables: 
        bounds:     8@25 corner: 721@79
        owner:  method addYellowButtonMenuItemsTo:event:
        submorphs:  {a SBRow(4151811) . send addYellowButtonMenuItemsTo:event: . send ad...etc...
        fullBounds:     6@23 corner: 723@81
        color:  (Color r: 0.304 g: 0.435 b: 0.413)
        extension:  a MorphExtension (3061889) [other:  (layoutProperties -> (TableLayou...etc...
        decorators:     an OrderedCollection()
        colorPolicyCache:   a SBLightPlusTheme
        temporaries:    a SBStTemporaries(1262100)
        bindings:   a SBStBlockBindings(1535128)
        pc:     0
        startPC:    nil
        endPC:  nil

SBStBlockBody(SBBlock)>>allBlocksDo:
    Receiver: block
    Arguments and temporary variables: 
        aBlock:     [closure] in SBStMethod(SBStBasicMethod)>>saveTryFixing:quick:
    Receiver's instance variables: 
        bounds:     8@25 corner: 721@79
        owner:  method addYellowButtonMenuItemsTo:event:
        submorphs:  {a SBRow(4151811) . send addYellowButtonMenuItemsTo:event: . send ad...etc...
        fullBounds:     6@23 corner: 723@81
        color:  (Color r: 0.304 g: 0.435 b: 0.413)
        extension:  a MorphExtension (3061889) [other:  (layoutProperties -> (TableLayou...etc...
        decorators:     an OrderedCollection()
        colorPolicyCache:   a SBLightPlusTheme
        temporaries:    a SBStTemporaries(1262100)
        bindings:   a SBStBlockBindings(1535128)
        pc:     0
        startPC:    nil
        endPC:  nil

[] in SBStMethod(SBBlock)>>allBlocksDo:
    Receiver: method addYellowButtonMenuItemsTo:event:
    Arguments and temporary variables: 
        aBlock:     [closure] in SBStMethod(SBStBasicMethod)>>saveTryFixing:quick:
        m:  block
    Receiver's instance variables: 
        bounds:     0@0 corner: 732@86
        owner:  a TransformMorph(2074557)
        submorphs:  {a SBRow(240004) . block}
        fullBounds:     -2@ -2 corner: 734@88
        color:  Color transparent
        extension:  a MorphExtension (3071934) [eventHandler = a SBEventBroadcast]  [oth...etc...
        decorators:     an OrderedCollection(a SBForceMoveDecorator a SBResizableDecorator ...etc...
        colorPolicyCache:   a SBLightPlusTheme
        methodClass:    SonyxStudyEventLEDVisualization
        typeCache:  nil
        currentSelector:    #addYellowButtonMenuItemsTo:event:
        currentClass:   SonyxStudyLEDStripVisualization
        body:   nil
        category:   #'-- all --'
        signature:  a SBStSignature(500625)
        classPrefix:    class input SonyxStudyLEDStripVisualization

[] in SBStMethod(Morph)>>childSandblocksDo:
    Receiver: method addYellowButtonMenuItemsTo:event:
    Arguments and temporary variables: 
        aBlock:     [closure] in SBStMethod(SBBlock)>>allBlocksDo:
        morph:  block
    Receiver's instance variables: 
        bounds:     0@0 corner: 732@86
        owner:  a TransformMorph(2074557)
        submorphs:  {a SBRow(240004) . block}
        fullBounds:     -2@ -2 corner: 734@88
        color:  Color transparent
        extension:  a MorphExtension (3071934) [eventHandler = a SBEventBroadcast]  [oth...etc...
        decorators:     an OrderedCollection(a SBForceMoveDecorator a SBResizableDecorator ...etc...
        colorPolicyCache:   a SBLightPlusTheme
        methodClass:    SonyxStudyEventLEDVisualization
        typeCache:  nil
        currentSelector:    #addYellowButtonMenuItemsTo:event:
        currentClass:   SonyxStudyLEDStripVisualization
        body:   nil
        category:   #'-- all --'
        signature:  a SBStSignature(500625)
        classPrefix:    class input SonyxStudyLEDStripVisualization

Array(SequenceableCollection)>>do:
    Receiver: {a SBRow(240004) . block}
    Arguments and temporary variables: 
        aBlock:     [closure] in SBStMethod(Morph)>>childSandblocksDo:
        index:  2
        indexLimiT:     2
    Receiver's instance variables: 
{a SBRow(240004) . block}

--- The full stack ---
Context>>cannotReturn:to:
Context>>cannotReturn:
[] in SBStMessageSend>>fixActions
SBCodeAction>>do
SBStMessageSend(SBBlock)>>proposeCodeActions:for:
[] in SBStMessageSend(SBBlock)>>tryFixIfFail:
Array(Collection)>>ifNotEmpty:
SBStMessageSend(SBBlock)>>tryFixIfFail:
[] in SBStMethod(SBStBasicMethod)>>saveTryFixing:quick:
SBStMessageSend(SBBlock)>>allBlocksDo:
[] in SBStBlockBody(SBBlock)>>allBlocksDo:
[] in SBStBlockBody(Morph)>>childSandblocksDo:
Array(SequenceableCollection)>>do:
SBStBlockBody(Morph)>>submorphsDo:
SBStBlockBody(Morph)>>childSandblocksDo:
SBStBlockBody(SBBlock)>>allBlocksDo:
[] in SBStMethod(SBBlock)>>allBlocksDo:
[] in SBStMethod(Morph)>>childSandblocksDo:
Array(SequenceableCollection)>>do:
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SBStMethod(Morph)>>submorphsDo:
SBStMethod(Morph)>>childSandblocksDo:
SBStMethod(SBBlock)>>allBlocksDo:
SBStMethod(SBStBasicMethod)>>saveTryFixing:quick:
SBBrowserEditor(SBEditor)>>save:tryFixing:quick:
SBBrowserEditor>>save:tryFixing:quick:
[] in SBBrowserEditor(SBEditor)>>save
SBBrowserEditor(SBEditor)>>interruptInputDuring:
SBBrowserEditor(SBEditor)>>save
[] in SBBrowserEditor(SBEditor)>>performForSelection:
OrderedCollection>>do:
SBBrowserEditor(SBEditor)>>performForSelection:
[] in SBBrowserEditor(SBEditor)>>performShortcutFor:
[] in SBTextInputMapping(SBInputMapping)>>actionFor:mode:do:ifNone:
SBTextInputMapping(SBInputMapping)>>shortcut:do:
SBTextInputMapping(SBInputMapping)>>registerShortcut:do:
SBTextInputMapping>>registerDefaultShortcuts
SBTextInputMapping(SBInputMapping)>>registerAllShortcuts
SBTextInputMapping(SBInputMapping)>>actionFor:mode:do:ifNone:
SBBrowserEditor(SBEditor)>>performShortcutFor:
SBBrowserEditor(SBEditor)>>handle:
SBBrowserEditor(SBEditor)>>filterEvent:for:
[] in SBBrowserEditor(Morph)>>sendFilterEvent:for:to:
WeakArray(SequenceableCollection)>>do:
SBBrowserEditor(Morph)>>sendFilterEvent:for:to:
SBBrowserEditor(Morph)>>sendFilterEventCaptureAgain:for:
SBBrowserEditor(Morph)>>sendFilterEventCapture:for:
[] in MorphicEventDispatcher>>doCapturingForFocusEvent:with:
Array(SequenceableCollection)>>reverseDo:
MorphicEventDispatcher>>doCapturingForFocusEvent:with:
MorphicEventDispatcher>>dispatchFocusEvent:with:
SBBrowserEditor(Morph)>>processFocusEvent:using:
SBBrowserEditor(Morph)>>processFocusEvent:
[] in [] in [] in HandMorph>>sendFocusEvent:to:clear:
[] in ActiveEventVariable class(DynamicVariable class)>>value:during:
FullBlockClosure(BlockClosure)>>ensure:
ActiveEventVariable class(DynamicVariable class)>>value:during:
[] in ActiveEventVariable class>>value:during:
FullBlockClosure(BlockClosure)>>ensure:
ActiveEventVariable class>>value:during:
KeyboardEvent(MorphicEvent)>>becomeActiveDuring:
[] in [] in HandMorph>>sendFocusEvent:to:clear:
-- and more not shown -- 
LinqLover commented 2 years ago

Thanks!