{"action":"created","issue":{"url":"https://api.github.com/repos/plexus/chestnut/issues/148","labels_url":"https://api.github.com/repos/plexus/chestnut/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/plexus/chestnut/issues/148/comments","events_url":"https://api.github.com/repos/plexus/chestnut/issues/148/events","html_url":"https://github.com/plexus/chestnut/issues/148","id":99832020,"number":148,"title":"Evaluate function in REPL","user":{"login":"edipofederle","id":50778,"avatar_url":"https://avatars.githubusercontent.com/u/50778?v=3","gravatar_id":"","url":"https://api.github.com/users/edipofederle","html_url":"https://github.com/edipofederle","followers_url":"https://api.github.com/users/edipofederle/followers","following_url":"https://api.github.com/users/edipofederle/following{/other_user}","gists_url":"https://api.github.com/users/edipofederle/gists{/gist_id}","starred_url":"https://api.github.com/users/edipofederle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edipofederle/subscriptions","organizations_url":"https://api.github.com/users/edipofederle/orgs","repos_url":"https://api.github.com/users/edipofederle/repos","events_url":"https://api.github.com/users/edipofederle/events{/privacy}","received_events_url":"https://api.github.com/users/edipofederle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-08T20:34:12Z","updated_at":"2015-08-08T20:59:18Z","closed_at":"2015-08-08T20:59:18Z","body":"Hi,\r\nI really don't know is this is a kind of issue or some misunderstood.\r\n\r\nWhat I am doing is:\r\n\r\n1. lein new chestnut demo\r\n2. cd demo\r\n3. edit src/cljs/core.clj to include a function, lets say: ```(defn hello [name] (str \"Hello \" name)```\r\n4. lein repl\r\n5. ```(in-ns 'demo.core)```\r\n6.``` (hello \"Jhon\")```\r\n\r\n```CompilerException java.lang.RuntimeException: Unable to resolve symbol: hello in this context, compiling:(/private/var/folders/rc/y5p0pv054xb20rtgwhzx5pzc0000gn/T/form-init5233994600750508423.clj:1:1)```\r\n\r\nor even\r\n\r\n```(+ 1 1)```\r\n\r\nor any function...\r\n\r\nWhat I missed?\r\n\r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/plexus/chestnut/issues/comments/129044036","html_url":"https://github.com/plexus/chestnut/issues/148#issuecomment-129044036","issue_url":"https://api.github.com/repos/plexus/chestnut/issues/148","id":129044036,"user":{"login":"slester","id":104014,"avatar_url":"https://avatars.githubusercontent.com/u/104014?v=3","gravatar_id":"","url":"https://api.github.com/users/slester","html_url":"https://github.com/slester","followers_url":"https://api.github.com/users/slester/followers","following_url":"https://api.github.com/users/slester/following{/other_user}","gists_url":"https://api.github.com/users/slester/gists{/gist_id}","starred_url":"https://api.github.com/users/slester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slester/subscriptions","organizations_url":"https://api.github.com/users/slester/orgs","repos_url":"https://api.github.com/users/slester/repos","events_url":"https://api.github.com/users/slester/events{/privacy}","received_events_url":"https://api.github.com/users/slester/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T20:59:18Z","updated_at":"2015-08-08T20:59:18Z","body":"For questions like this in the future, please use http://chestnut.aren.io/ -- if it's a real issue, feel free to open one here.\r\n\r\nYou're editing ClojureScript if you're in `src/cljs/appname/core.cljs` not `src/clj/appname/core.clj` -- note the s's -- this will have to be compiled and interacted with by first doing `(run)` then `(browser-repl)` -- then you should be able to run it via the REPL.\r\n\r\ne.g.\r\n\r\nin your `src/cljs/demo/core.cljs`\r\n```clojure\r\n(defn hello [name] (str \"Hello \" name))\r\n(defn hello-alert [name] (js/alert (str \"Hello \" name)))\r\n```\r\n\r\nThen back in the command line,\r\n```\r\nlein repl\r\ndemo.server=> (run)\r\ndemo.server=> (browser-repl) ;; go to localhost:10555\r\ncljs.user=> (in-ns 'demo.core)\r\ndemo.core=> (hello \"edipofederle\")\r\nHello edipofederlenil\r\ndemo.core=> (hello-alert \"edipofederle\") ;; will show up in your browser\r\nnil\r\n```"}}