{"action":"created","issue":{"url":"https://api.github.com/repos/vert-x3/vertx-lang-ceylon/issues/2","labels_url":"https://api.github.com/repos/vert-x3/vertx-lang-ceylon/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/vert-x3/vertx-lang-ceylon/issues/2/comments","events_url":"https://api.github.com/repos/vert-x3/vertx-lang-ceylon/issues/2/events","html_url":"https://github.com/vert-x3/vertx-lang-ceylon/issues/2","id":123142060,"number":2,"title":"Ceylon Vert.x docs contain errors","user":{"login":"lukehutch","id":811305,"avatar_url":"https://avatars.githubusercontent.com/u/811305?v=3","gravatar_id":"","url":"https://api.github.com/users/lukehutch","html_url":"https://github.com/lukehutch","followers_url":"https://api.github.com/users/lukehutch/followers","following_url":"https://api.github.com/users/lukehutch/following{/other_user}","gists_url":"https://api.github.com/users/lukehutch/gists{/gist_id}","starred_url":"https://api.github.com/users/lukehutch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukehutch/subscriptions","organizations_url":"https://api.github.com/users/lukehutch/orgs","repos_url":"https://api.github.com/users/lukehutch/repos","events_url":"https://api.github.com/users/lukehutch/events{/privacy}","received_events_url":"https://api.github.com/users/lukehutch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-20T07:54:23Z","updated_at":"2015-12-21T23:34:33Z","closed_at":null,"body":"The docs for using Vert.x in Ceylon docs have numerous omissions and errors.\r\n\r\n1. The required imports are not listed (and the Ceylon Vert.x class names are often the same as the ceylon.http class names)\r\n2. Imports need to be renamed currently (I'm not sure of the reason why) -- i.e. you can't use `value vertx = vertx.vertx();` as suggested in the vertex.core docs, you need `import io.vertx.ceylon.core { vertx_=vertx }` then `value vertx = vertx_.vertx();`.\r\n3. You can't use `=>` and `{}` together in lambda expressions, e.g. `(RoutingContext routingContext) => { }` should actually be `(RoutingContext routingContext) { }`.\r\n4. The code in the section \"Handling requests and calling the next handler\" is wrong -- only the handler defined for route1 is ever called, the timer that calls `.next()` never ends up calling the code for route2. I haven't figured out why yet.\r\n\r\nHas anybody actually tried to work through these examples from beginning to end? It seems like there's something wrong with every example I have tried so far."},"comment":{"url":"https://api.github.com/repos/vert-x3/vertx-lang-ceylon/issues/comments/166458339","html_url":"https://github.com/vert-x3/vertx-lang-ceylon/issues/2#issuecomment-166458339","issue_url":"https://api.github.com/repos/vert-x3/vertx-lang-ceylon/issues/2","id":166458339,"user":{"login":"lukehutch","id":811305,"avatar_url":"https://avatars.githubusercontent.com/u/811305?v=3","gravatar_id":"","url":"https://api.github.com/users/lukehutch","html_url":"https://github.com/lukehutch","followers_url":"https://api.github.com/users/lukehutch/followers","following_url":"https://api.github.com/users/lukehutch/following{/other_user}","gists_url":"https://api.github.com/users/lukehutch/gists{/gist_id}","starred_url":"https://api.github.com/users/lukehutch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukehutch/subscriptions","organizations_url":"https://api.github.com/users/lukehutch/orgs","repos_url":"https://api.github.com/users/lukehutch/repos","events_url":"https://api.github.com/users/lukehutch/events{/privacy}","received_events_url":"https://api.github.com/users/lukehutch/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T23:34:33Z","updated_at":"2015-12-21T23:34:33Z","body":"Interesting approach to doc creation! Makes sense that these should be generated automatically from a set of canonical examples in Java.\r\n\r\nI suggest working through the examples from top to bottom at some point... there are lots of gotchas!"}}