{"action":"closed","issue":{"url":"https://api.github.com/repos/magomimmo/modern-cljs/issues/209","labels_url":"https://api.github.com/repos/magomimmo/modern-cljs/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/magomimmo/modern-cljs/issues/209/comments","events_url":"https://api.github.com/repos/magomimmo/modern-cljs/issues/209/events","html_url":"https://github.com/magomimmo/modern-cljs/issues/209","id":68239470,"number":209,"title":"Tutorial 17: `RuntimeException EOF while reading` pasting hiccup example into the REPL","user":{"login":"sumbach","id":11580,"avatar_url":"https://avatars.githubusercontent.com/u/11580?v=3","gravatar_id":"","url":"https://api.github.com/users/sumbach","html_url":"https://github.com/sumbach","followers_url":"https://api.github.com/users/sumbach/followers","following_url":"https://api.github.com/users/sumbach/following{/other_user}","gists_url":"https://api.github.com/users/sumbach/gists{/gist_id}","starred_url":"https://api.github.com/users/sumbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumbach/subscriptions","organizations_url":"https://api.github.com/users/sumbach/orgs","repos_url":"https://api.github.com/users/sumbach/repos","events_url":"https://api.github.com/users/sumbach/events{/privacy}","received_events_url":"https://api.github.com/users/sumbach/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-14T02:07:46Z","updated_at":"2015-12-13T15:24:29Z","closed_at":"2015-12-13T15:24:29Z","body":"The hiccup example in [Tutorial 17](https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-17.md) cannot be pasted as-is into most Clojure REPLs:\r\n\r\n```clj\r\nnREPL server started on port 59955 on host 127.0.0.1 - nrepl://127.0.0.1:59955\r\nREPL-y 0.3.5, nREPL 0.2.6\r\nClojure 1.5.1\r\nJava HotSpot(TM) 64-Bit Server VM 1.8.0_31-b13\r\n    Docs: (doc function-name-here)\r\n          (find-doc \"part-of-name-here\")\r\n  Source: (source function-name-here)\r\n Javadoc: (javadoc java-object-or-class-here)\r\n    Exit: Control+D or (exit) or (quit)\r\n Results: Stored in vars *1, *2, *3, an exception in *e\r\n\r\nuser=> (require '[hiccup.core :refer [html]])\r\nnil\r\nuser=> (html [:div [:label.error {:for \"price\"} \"Price has to be a number\"]\r\n  #_=>             [:input#price {:name \"price\"\r\n\r\nRuntimeException EOF while reading, starting at line 2  clojure.lang.Util.runtimeException (Util.java:219)\r\nuser=>\r\n```\r\n\r\nThis is *not* inherently an issue with the modern-cljs tutorial, but it is an issue newcomers may run into and be confused by. The only way I was able to get this example to work is to place the entire rest of the example onto a single line:\r\n\r\n```clj\r\nuser=> (html [:div [:label.error {:for \"price\"} \"Price has to be a number\"]\r\n  #_=>             [:input#price {:name \"price\" :min \"1\" :value \"foo\" :required \"true\"}]])\r\n\"<div><label class=\\\"error\\\" for=\\\"price\\\">Price has to be a number</label><input id=\\\"price\\\" min=\\\"1\\\" name=\\\"price\\\" required=\\\"true\\\" value=\\\"foo\\\" /></div>\"\r\nuser=>\r\n```\r\n"}}