[BUG] Smalltalk vmVersion isNil and prevents me to mail out thisbugreport automatically... ;-)

Bob Arning arning at charm.net
Thu Apr 5 22:23:49 UTC 2001


On Fri, 06 Apr 2001 00:13:20 +0200 Markus <gaelli at emergent.de> wrote:
>I wanted to send a bugreport to the list out of the debugger, which gave me
>another one, which was due to "Smalltalk vmVersion isNil" in my current
>system. 
>(SystemVersion current versionString gives me
>'''Squeak3.1alpha'' of 7 March 2001 update 3892',
>on a powerbook with OS9.01, my VM is named "Squeak 3.0Alpha8MT")
>
>Any hints? 
>Is "mail out bug report" ready for "primetime" or should one be carefull
>with it?

Markus,

That's one of those things that's a little different from VM to VM. The Mac seems to return nil here and whoever did the bug report code was probably running a Linux or Windows VM which returns something non-nil. You can get around this by changing #vmVersion to:

vmVersion	"Smalltalk vmVersion"
	"Return a string identifying the interpreter version"
	^(self getSystemAttribute: 1004) ifNil: ['']

Cheers,
Bob





More information about the Squeak-dev mailing list