On 8 December 2017 at 00:43, Ben Coman <btc@openinworld.com> wrote:
On 7 Dec 2017, at 16:04, Steven Costiou <steven.costiou@kloum.io> wrote:
Hi,
noob question: i installed bloc and tried to run examples.
It worked well on Fedora 27 but not on latest Debian 64 bits because the path of libcairo.so.2 was wrong.
So i fixed it in the code, but when trying the bloc examples again the lib path is still wrong (in the debugger).
Is there a way to reload the cairo lib or to reset it, so that the path would be right and it would find the lib ?
I've also been frustrated by this, particularly as a supa-fresh-FFI-noob before I understood what was happening. I've found it a minor annoyance but sufficient to to close and reopen an image to reset things, but being able to do it live in-Image is really nice.
On 7 December 2017 at 23:41, Esteban Lorenzano <estebanlm@gmail.com> wrote:
you need to reset FFI:
FFIMethodRegistry resetAll.
That is really nice to know, but by the time I need it I will probably have forgotten it, and closing/reopening the Image will be faster than searching forum.world.st or asking again the mail list. Could we possibly have World > Tools > Reset FFI ?
cheers -ben
Added https://pharo.fogbugz.com/f/cases/20835/Add-World-Tools-Reset-FFI I should have a go at doing it, but I'm not sure which class is preferred to hang the menu pragma on, and also I'm still lagging for contributing to Pharo 7 (not really any technical issue now, but lack of time to practice the workflow) cheers -ben