RejectedSoftware Forums

Sign up

Stuck at chat room tutorial

I'm following https://vibed.org/blog/posts/a-scalable-chat-room-service-in-d.

Here's my app.d: https://gist.github.com/AndrejMitrovic/73a6c256155bf90ea6d3593334a3d662

And room.dt: https://gist.github.com/AndrejMitrovic/a60d1429ec050c694412c32f3c8fb9ab

I get this output when building:

$ Compiling Diet HTML template index.dt...
$ Compiling Diet HTML template room.dt...
$ room.dt(12,15): Error: undefined identifier messages

I thought initially the issue was that messages was private in the Room class, but trying to make it public didn't fix the issue. I think I am missed some step in the tutorial?

Re: Stuck at chat room tutorial

On Tue, 23 Apr 2019 08:55:37 GMT, Andrej Mitrovic wrote:

I think I am missed

I think I also need some coffee. :P

Re: Stuck at chat room tutorial

On Tue, 23 Apr 2019 08:55:37 GMT, Andrej Mitrovic wrote:

I'm following https://vibed.org/blog/posts/a-scalable-chat-room-service-in-d.

Here's my app.d: https://gist.github.com/AndrejMitrovic/73a6c256155bf90ea6d3593334a3d662

And room.dt: https://gist.github.com/AndrejMitrovic/a60d1429ec050c694412c32f3c8fb9ab

I get this output when building:

$ Compiling Diet HTML template index.dt...
$ Compiling Diet HTML template room.dt...
$ room.dt(12,15): Error: undefined identifier messages

I thought initially the issue was that messages was private in the Room class, but trying to make it public didn't fix the issue. I think I am missed some step in the tutorial?

Wait, I see it now. I didn't update getRoom to provide the actual parameters to the template file. Solved!