Giving a script to squeak

Damien Cassou damien.cassou at gmail.com
Tue Nov 20 16:02:00 UTC 2007


Hi,

I can't pass a script to squeak and get it executed:

$ cat test.sq
Transcript cr; show: 'Hello, world'.
$ squeak Squeak3.9-final-7067.image test.sq &

Results in:

CodeLoader(Object)>>error:
	Receiver: a CodeLoader
	Arguments and temporary variables:
		aString: 	'No content to install'
	Receiver's instance variables:
		baseURL: 	''
		sourceFiles: 	an Array(a HTTPDownloadRequest)
		segments: 	nil
		publicKey: 	nil

CodeLoader>>installSourceFile:
	Receiver: a CodeLoader
	Arguments and temporary variables:
		aStream: 	nil
		contents: 	nil
		trusted: 	nil
	Receiver's instance variables:
		baseURL: 	''
		sourceFiles: 	an Array(a HTTPDownloadRequest)
		segments: 	nil
		publicKey: 	nil

[] in CodeLoader>>installSourceFiles {[:req | self installSourceFile:
req contentStream]}
	Arguments and temporary variables:
		req: 	a HTTPDownloadRequest

Array(SequenceableCollection)>>do:
	Receiver: an Array(a HTTPDownloadRequest)
	Arguments and temporary variables:
		aBlock: 	[] in CodeLoader>>installSourceFiles {[:req | self
installSourceFile: r...etc...
		index: 	1
		indexLimiT: 	1
	Receiver's instance variables:
an Array(a HTTPDownloadRequest)


--- The full stack ---
CodeLoader(Object)>>error:
CodeLoader>>installSourceFile:
[] in CodeLoader>>installSourceFiles {[:req | self installSourceFile:
req contentStream]}
Array(SequenceableCollection)>>do:
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CodeLoader>>installSourceFiles
ProjectLauncher>>startUpAfterLogin
ProjectLauncher>>startUp
[] in AutoStart class>>startUp: {[launcher startUp]}
...

-- 
Damien Cassou



More information about the Squeak-dev mailing list