Skip to content

Commit

Permalink
Merge pull request #910 from hernanmd/p13-new-finder-timeout-errors
Browse files Browse the repository at this point in the history
Discard Finder unnecessary evaluation with time out in the Compiler
  • Loading branch information
jecisc authored Nov 22, 2024
2 parents c0b604c + bef549d commit ba0b3ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/NewTools-Finder/OpalCompiler.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ Extension { #name : 'OpalCompiler' }
{ #category : '*NewTools-Finder' }
OpalCompiler >> evaluateWithTimeOut: anInteger [

| runner |
"| runner |
runner := TKTLocalProcessTaskRunner new.
^ runner
schedule: [ self evaluate ] asTask
timeout: anInteger milliSeconds.
timeout: anInteger milliSeconds."

"See issue https://github.com/pharo-project/pharo/issues/16759"
self flag: #ToDo.
^ self evaluate

]
7 changes: 7 additions & 0 deletions src/NewTools-Finder/StFinderSearch.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ Class {
#tag : 'Search'
}

{ #category : 'accessing' }
StFinderSearch >> application [

^ application
ifNil: [ StPharoApplication current ]
]

{ #category : 'accessing' }
StFinderSearch >> application: anApplication [
application := anApplication
Expand Down

0 comments on commit ba0b3ec

Please sign in to comment.