Re: [Pharo-users] can't debug TinyBlog in the Pharo MOOC
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
On 22 Nov 2018, at 17:51, iu136 via Pharo-users <pharo-users@lists.pharo.org> wrote:
From: iu136 <iu136@yahoo.com> Subject: can't debug TinyBlog in the Pharo MOOC Date: 22 November 2018 at 17:51:12 CET To: pharo-users@lists.pharo.org
hi guys I'm following the Pharo MOOC and I'm at Week 4. the other day, I was trying to implement TinyBlog: Data Persistency using Voyage and Mongo, when I tried to compile the code, I've got an Error. the title of Error says: "MessageNotUnderstood: receiver of "save:" is nil", and it refers to TBMBlog>>writeBlogPost.
TBMBlog>>writeBlogPost: aTBMPost posts add: aTBMPost. aTBMPost save. self save .
thanks for your answers!
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
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". thanks anyway! -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
participants (2)
-
Esteban Lorenzano -
iu136