Error Unknown variable:BouncingAtomsMorph openInWorld please correct or cancel

女生的网名这么多〃 提交于 2019-11-30 08:43:52

问题


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



来源:https://stackoverflow.com/questions/26197480/error-unknown-variablebouncingatomsmorph-openinworld-please-correct-or-cancel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!