On 22 Nov 2018, at 21:48, iu136 via Pharo-users <pharo-users@lists.pharo.org> wrote:
From: iu136 <iu136@yahoo.com> Subject: Re: can't debug TinyBlog in the Pharo MOOC Date: 22 November 2018 at 21:48:52 CET To: pharo-users@lists.pharo.org
EstebanLM wrote
Hi,
You are missing to initialise the Voyage repository. I donât know how is explained in the Mooc, but you will probably need to do something like:
VOMemoryRepository new enableSingleton.
Cheers, Esteban
Hi Esteban.
actually I'm using an External Mongo database and in the MOOC the initialization of Voyage Mongo repository, is done like:
TBBlog class >> initializeLocalhostMongoDB | repository | repository := VOMongoRepository database: 'tinyblog'. repository enableSingleton.
TBBlog class >> reset self initializeLocalhostMongoDB
and in my code I'm doing exactly like above. but interestingly when I wanted to reset the cache of Voyage by: VORepository current reset
again I've got another Error saying: "MessageNotUnderstood: receiver of "reset" is nillâ.
Which again, should means you never executed initializeLocalhostMongoDB method. Can you try doing: TBBlock initializeLocalhostMongoDB. Esteban
thanks anyway!
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html