[squeak-dev] The Trunk: Files-cmm.196.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Sep 8 04:50:11 UTC 2022


Chris Muller uploaded a new version of Files to project The Trunk:
http://source.squeak.org/trunk/Files-cmm.196.mcz

==================== Summary ====================

Name: Files-cmm.196
Author: cmm
Time: 7 September 2022, 11:50:10.459154 pm
UUID: b951789a-e601-41bc-98ba-e4fb60d5ad4b
Ancestors: Files-eem.195

When running Squeak headless, don't let it get hung up in its startup sequence due to a missing .sources file.

=============== Diff against Files-eem.195 ===============

Item was changed:
  ----- Method: FileDirectory class>>startUp (in category 'system start up') -----
  startUp
- 
  	self startUpDefaultDirectory.
+ 	[ Smalltalk openSourceFiles ]
+ 		on: ProvideAnswerNotification
+ 		do:
+ 			[ : noti | Smalltalk isHeadless
+ 				ifTrue: [ "Cannot warn terminal, stdout isn't initialized because FileStream class>>#startUp: hasn't been called yet."
+ 					"FileStream stdout nextPutAll: noti messageText."
+ 					"Since we're headless anyway, source likely won't matter.  Continue."
+ 					noti resume: true ]
+ 				ifFalse: [ noti pass ] ]!
- 	Smalltalk openSourceFiles.!



More information about the Squeak-dev mailing list