{"action":"created","issue":{"url":"https://api.github.com/repos/jonase/eastwood/issues/156","labels_url":"https://api.github.com/repos/jonase/eastwood/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/jonase/eastwood/issues/156/comments","events_url":"https://api.github.com/repos/jonase/eastwood/issues/156/events","html_url":"https://github.com/jonase/eastwood/pull/156","id":63575465,"number":156,"title":"Add middleware to store eastwood options in namespace var","user":{"login":"venantius","id":1824859,"avatar_url":"https://avatars.githubusercontent.com/u/1824859?v=3","gravatar_id":"","url":"https://api.github.com/users/venantius","html_url":"https://github.com/venantius","followers_url":"https://api.github.com/users/venantius/followers","following_url":"https://api.github.com/users/venantius/following{/other_user}","gists_url":"https://api.github.com/users/venantius/gists{/gist_id}","starred_url":"https://api.github.com/users/venantius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venantius/subscriptions","organizations_url":"https://api.github.com/users/venantius/orgs","repos_url":"https://api.github.com/users/venantius/repos","events_url":"https://api.github.com/users/venantius/events{/privacy}","received_events_url":"https://api.github.com/users/venantius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jonase/eastwood/milestones/2","html_url":"https://github.com/jonase/eastwood/milestones/Eastwood%200.2.2","labels_url":"https://api.github.com/repos/jonase/eastwood/milestones/2/labels","id":911788,"number":2,"title":"Eastwood 0.2.2","description":"","creator":{"login":"jafingerhut","id":109629,"avatar_url":"https://avatars.githubusercontent.com/u/109629?v=3","gravatar_id":"","url":"https://api.github.com/users/jafingerhut","html_url":"https://github.com/jafingerhut","followers_url":"https://api.github.com/users/jafingerhut/followers","following_url":"https://api.github.com/users/jafingerhut/following{/other_user}","gists_url":"https://api.github.com/users/jafingerhut/gists{/gist_id}","starred_url":"https://api.github.com/users/jafingerhut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jafingerhut/subscriptions","organizations_url":"https://api.github.com/users/jafingerhut/orgs","repos_url":"https://api.github.com/users/jafingerhut/repos","events_url":"https://api.github.com/users/jafingerhut/events{/privacy}","received_events_url":"https://api.github.com/users/jafingerhut/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":9,"state":"open","created_at":"2014-12-22T02:48:31Z","updated_at":"2015-06-22T04:52:37Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-03-22T20:53:09Z","updated_at":"2015-06-22T05:25:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jonase/eastwood/pulls/156","html_url":"https://github.com/jonase/eastwood/pull/156","diff_url":"https://github.com/jonase/eastwood/pull/156.diff","patch_url":"https://github.com/jonase/eastwood/pull/156.patch"},"body":"This commit adds leiningen middleware to store the project's\r\neastwood options in `eastwood.config/options`. This has the advantage\r\nof allowing users and other developers building on top of Eastwood's\r\nREPL functionality to have easy access to a user's eastwood options.\r\n\r\nThis PR addresses https://github.com/jonase/eastwood/issues/155"},"comment":{"url":"https://api.github.com/repos/jonase/eastwood/issues/comments/114009475","html_url":"https://github.com/jonase/eastwood/pull/156#issuecomment-114009475","issue_url":"https://api.github.com/repos/jonase/eastwood/issues/156","id":114009475,"user":{"login":"jafingerhut","id":109629,"avatar_url":"https://avatars.githubusercontent.com/u/109629?v=3","gravatar_id":"","url":"https://api.github.com/users/jafingerhut","html_url":"https://github.com/jafingerhut","followers_url":"https://api.github.com/users/jafingerhut/followers","following_url":"https://api.github.com/users/jafingerhut/following{/other_user}","gists_url":"https://api.github.com/users/jafingerhut/gists{/gist_id}","starred_url":"https://api.github.com/users/jafingerhut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jafingerhut/subscriptions","organizations_url":"https://api.github.com/users/jafingerhut/orgs","repos_url":"https://api.github.com/users/jafingerhut/repos","events_url":"https://api.github.com/users/jafingerhut/events{/privacy}","received_events_url":"https://api.github.com/users/jafingerhut/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T05:25:43Z","updated_at":"2015-06-22T05:25:43Z","body":"I have tried out this change, using the following steps:\r\n\r\n+ created a branch in my repo to modify the 2 files as suggested in your pull request\r\n+ do 'lein install', which installs a version 0.2.2-SNAPSHOT of eastwood in my local Maven repo, i.e. $HOME/.m2/repository/...\r\n+ Edit my file $HOME/.lein/profiles.clj so that it uses eastwood version 0.2.2-SNAPSHOT\r\n+ Change to the directory of another Leiningen project\r\n+ run 'lein eastwood'\r\n\r\nI get the exception shown below when following the steps above, and from trying to add debug print messages in the function eastwood.plugin/middleware, it appears to be thrown during the attempt to call leval/eval-in-project:\r\n\r\nException in thread \"main\" java.lang.RuntimeException: Unable to resolve var: eastwood.config/options in this context, compiling:(/private/var/folders/v5/7hpqbpk51td3v351377gl6yw0000gn/T/form-init3205382460136696906.clj:1:125)\r\n\tat clojure.lang.Compiler.analyzeSeq(Compiler.java:6651)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6445)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6406)\r\n\tat clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5782)\r\n\tat clojure.lang.Compiler$FnMethod.parse(Compiler.java:5217)\r\n\tat clojure.lang.Compiler$FnExpr.parse(Compiler.java:3846)\r\n\tat clojure.lang.Compiler.analyzeSeq(Compiler.java:6642)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6445)\r\n\tat clojure.lang.Compiler.eval(Compiler.java:6700)\r\n\tat clojure.lang.Compiler.eval(Compiler.java:6693)\r\n\tat clojure.lang.Compiler.load(Compiler.java:7130)\r\n\tat clojure.lang.Compiler.loadFile(Compiler.java:7086)\r\n\tat clojure.main$load_script.invoke(main.clj:274)\r\n\tat clojure.main$init_opt.invoke(main.clj:279)\r\n\tat clojure.main$initialize.invoke(main.clj:307)\r\n\tat clojure.main$null_opt.invoke(main.clj:342)\r\n\tat clojure.main$main.doInvoke(main.clj:420)\r\n\tat clojure.lang.RestFn.invoke(RestFn.java:421)\r\n\tat clojure.lang.Var.invoke(Var.java:383)\r\n\tat clojure.lang.AFn.applyToHelper(AFn.java:156)\r\n\tat clojure.lang.Var.applyTo(Var.java:700)\r\n\tat clojure.main.main(main.java:37)\r\nCaused by: java.lang.RuntimeException: Unable to resolve var: eastwood.config/options in this context\r\n\tat clojure.lang.Util.runtimeException(Util.java:221)\r\n\tat clojure.lang.Compiler$TheVarExpr$Parser.parse(Compiler.java:659)\r\n\tat clojure.lang.Compiler.analyzeSeq(Compiler.java:6644)\r\n\t... 21 more\r\nSubprocess failed\r\n"}}