pharo-spec / NewTools

All development tools for Pharo, developed with Spec
21 stars 52 forks source link

Debugger can create a morphic error when saving new code #465

Open jecisc opened 1 year ago

jecisc commented 1 year ago

It happens often to me that when I save new code, a red square of death appears. Then I get a new debugger about that.

image

UndefinedObject(Object)>>doesNotUnderstand: #startIndex
UndefinedObject>>doesNotUnderstand: #startIndex
RubSmalltalkEditor(RubTextEditor)>>startIndex
RubSmalltalkEditor(RubTextEditor)>>caret
SpMorphicCodeCompletionEngine(CompletionEngine)>>replaceTokenInEditorWith:
CoCompletionContext>>replaceTokenInEditorWith:
NECSelectorEntry(NECEntry)>>activateOn:
CoCompletionContext>>activateEntryAt:
NECMenuMorph>>insertSelected
NECMenuMorph>>mouseDown:
NECMenuMorph(Morph)>>handleMouseDown:
MouseButtonEvent>>sentTo:
NECMenuMorph(Morph)>>handleEvent:
MorphicEventDispatcher>>dispatchMouseDown:with:
MorphicEventDispatcher>>handleMouseDown:
MouseButtonEvent>>sentTo:
[ ^ anEvent sentTo: self ] in MorphicEventDispatcher>>dispatchEvent:with: in Block: [ ^ anEvent sentTo: self ]
FullBlockClosure(BlockClosure)>>ensure:
MorphicEventDispatcher>>dispatchEvent:with:
NECMenuMorph(Morph)>>processEvent:using:
MorphicEventDispatcher>>dispatchMouseDown:with:
MorphicEventDispatcher>>handleMouseDown:
MouseButtonEvent>>sentTo:
[ ^ anEvent sentTo: self ] in MorphicEventDispatcher>>dispatchEvent:with: in Block: [ ^ anEvent sentTo: self ]
FullBlockClosure(BlockClosure)>>ensure:
MorphicEventDispatcher>>dispatchEvent:with:
WorldMorph(Morph)>>processEvent:using:
WorldMorph(Morph)>>processEvent:
HandMorph>>sendEvent:focus:clear:
HandMorph>>sendMouseEvent:
adri09070 commented 1 year ago

I think there is a very old issue about that. If this is the one I'm thinking about, we are not able to reproduce it on Mac.

What OS do you use ?

jecisc commented 1 year ago

I was using Windows, and it’s true that I do not get this error anymore since I have a mac

adri09070 commented 1 year ago

Maybe we could investigate this during the sprint on Windows.

This happens when you save the code while the code completion popup is open