Error Unknown variable:BouncingAtomsMorph openInWo

2019-01-25 14:42发布

问题:

I'm new to Pharo ,my problem is when I try to run the BouncingAtomsMorph openInWorld example I keep getting the following error message:

Unknown variable:BouncingAtomsMorph openInWorld please correct or cancel

Please help!

回答1:

Sadly Bouncing Atoms are no longer included in the standard distribution of newer Pharo versions.

To load it evaluate in a workspace or playground:

Gofer it 
     url: 'http://smalltalkhub.com/mc/PharoExtras/MorphExamplesAndDemos/main';
     package: 'MorphExamplesAndDemos';
     load.

Then

BouncingAtomsMorph new openInWorld

will work.


Pharo 5 update:

The MorphExamplesAndDemos package does no longer load correctly starting with Pharo 5. As described here, you can still look at the BouncingAtomsMorph by just clicking on Abandon when a debugger message tells you that this message is no longer understood (It's a problem with another example in the same package):

FileList class>>registerFileReader



标签: pharo