Error Unknown variable:BouncingAtomsMorph openInWo

2019-01-25 14:57发布

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!

标签: pharo
1条回答
何必那么认真
2楼-- · 2019-01-25 15:24

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

查看更多
登录 后发表回答