pharo-spec / NewTools

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

latest changes #791

Closed estebanlm closed 1 week ago

Ducasse commented 1 week ago

@estebanlm the tests are green on ubuntu so can we integrate it?

Ducasse commented 1 week ago
ReleaseTest
 ✗ #testUndeclared (132ms)
 ✗ #testThatThereAreNoSelectorsRemainingThatAreSentButNotImplemented (573ms)

NoUnusedVariablesLeftTest
 ✗ #testNoUnusedInstanceVariablesLeft (7000ms)
estebanlm commented 1 week ago

yeah, let's go.

jecisc commented 1 week ago

This is breaking the Spotter and the Inspector

SpPresenterBuilder(Object)>>doesNotUnderstand: #application:
StInspectionContext>>newPresenterBuilder
StInspectionContext>>basicNewInspectionPresenter
OrderedCollection>>DoIt
OCReceiverDoItSemanticScope(OCDoItSemanticScope)>>evaluateDoIt:
OpalCompiler>>evaluate
[
        self announcer announce: (SpCodeWillBeEvaluatedAnnouncement newContent: aString).
        oldBindings := self interactionModel bindings copy.
        result := self interactionModel compiler
            source: aString;
            environment: self environment;
            failBlock:  [ 
                self announcer announce: (SpCodeEvaluationFailedAnnouncement newContent: aString).
                ^ compileErrorBlock value ];
            evaluate.
        oldBindings size = self interactionModel bindings size 
            ifFalse: [ self withAdapterDo: [ :anAdapter | anAdapter refreshStyling ] ].
        self announcer announce: (SpCodeEvaluationSucceedAnnouncement newContent: aString).
        result ] in SpCodePresenter>>evaluate:onCompileError:onError: in Block: [...
FullBlockClosure(BlockClosure)>>on:do:
SpCodePresenter>>evaluate:onCompileError:onError:
SpCodeDoItCommand(SpCodeSelectionCommand)>>evaluate:andDo:
SpCodeDoItCommand(SpCodeSelectionCommand)>>evaluateSelectionAndDo:
SpCodeDoItCommand>>execute
SpCommand(CmCommandDecorator)>>execute
[ self decoratedCommand execute ] in SpToolCurrentApplicationCommand>>execute in Block: [ self decoratedCommand execute ]
[ activeProcess
            psValueAt: index
            put: anObject.
        aBlock value ] in SpToolCurrentApplication(DynamicVariable)>>value:during: in Block: [ activeProcess...
FullBlockClosure(BlockClosure)>>ensure:
SpToolCurrentApplication(DynamicVariable)>>value:during:
SpToolCurrentApplication class(DynamicVariable class)>>value:during:
SpToolCurrentApplicationCommand>>execute
[ self decoratedCommand execute ] in SpToolCurrentApplicationCommand>>execute in Block: [ self decoratedCommand execute ]
[ activeProcess
            psValueAt: index
            put: anObject.
        aBlock value ] in SpToolCurrentApplication(DynamicVariable)>>value:during: in Block: [ activeProcess...
FullBlockClosure(BlockClosure)>>ensure:
SpToolCurrentApplication(DynamicVariable)>>value:during:
SpToolCurrentApplication class(DynamicVariable class)>>value:during:
SpToolCurrentApplicationCommand>>execute
[ 
            aCmCommand canBeExecuted 
                ifTrue: [ aCmCommand execute ] ] in SpKMCategoryBuilder>>visitCommand: in Block: [ ...
FullBlockClosure(BlockClosure)>>cull:
FullBlockClosure(BlockClosure)>>cull:cull:
FullBlockClosure(BlockClosure)>>cull:cull:cull:
KMCategoryBinding>>completeMatch:buffer:
[ :l | l completeMatch: self buffer: aBuffer ] in KMKeymap>>notifyCompleteMatchTo:buffer: in Block: [ :l | l completeMatch: self buffer: aBuffer ]
Array(SequenceableCollection)>>do:
jecisc commented 1 week ago

I'll revert it because it breaks P13 too much