Fork me on GitHub
#yada
<
2016-06-20
>
shaun-mahood20:06:36

@malcolmsparks: Just starting to work through the manual, found a couple issues on https://yada.juxt.pro/manual/020_install.md as-resource doesn't seem to be referred in the code, and referring it and running it throws the error

CompilerException clojure.lang.ExceptionInfo: Cannot turn resource-model into resource, because it doesn't conform to a resource-model schema {:resource-model {:last-modified #inst "2016-06-20T20:15:50.595-00:00", :version "Hello World!"}, :error {:methods missing-required-key, (not (namespace :last-modified)) invalid-key, (not (namespace :version)) invalid-key}}, compiling:(core.clj:6:5) 

malcolmsparks20:06:25

Thanks @shaun-mahood - i'll fix that asap

shaun-mahood20:06:57

@malcolmsparks: I'm also getting an error trying to run (.close svr) based on that same section

shaun-mahood20:06:38

I've updated all my dependencies to the newest versions and am planning to keep working through the manual, so if there's a better place to report issues let me know otherwise I'll keep posting them here if I run into them

malcolmsparks20:06:48

Yes. Please do. Try the new quickstart chapter at http://juxt.pro/yada

malcolmsparks20:06:44

We've tested with http://github.com/juxt/edge recently - those docs are much more recent. Sorry for the issues!

shaun-mahood20:06:43

Oh cool, I will! I'm working with Leiningen and bringing Yada into a small existing JS app, so I'll probably run into a bunch of edge cases for you - it's self inflicted and expected pain, so you definitely don't need to apologize for anything!

shaun-mahood22:06:51

@malcolmsparks: Seems like a minor issue in https://yada.juxt.pro/manual/030_hello.md, not technical though. The statement Once we have bound this handler to the path /hello, we're able to make the following HTTP request: could be a bit confusing, since nowhere is it actually bound in the example code and when run the handler is accessible from any path on the server from what I can tell.