{"action":"created","issue":{"url":"https://api.github.com/repos/cemerick/piggieback/issues/48","labels_url":"https://api.github.com/repos/cemerick/piggieback/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/cemerick/piggieback/issues/48/comments","events_url":"https://api.github.com/repos/cemerick/piggieback/issues/48/events","html_url":"https://github.com/cemerick/piggieback/issues/48","id":59588023,"number":48,"title":"Can't change/establish root binding of: *cljs-repl-options* with set","user":{"login":"EduardoMRB","id":2163269,"avatar_url":"https://avatars.githubusercontent.com/u/2163269?v=3","gravatar_id":"","url":"https://api.github.com/users/EduardoMRB","html_url":"https://github.com/EduardoMRB","followers_url":"https://api.github.com/users/EduardoMRB/followers","following_url":"https://api.github.com/users/EduardoMRB/following{/other_user}","gists_url":"https://api.github.com/users/EduardoMRB/gists{/gist_id}","starred_url":"https://api.github.com/users/EduardoMRB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EduardoMRB/subscriptions","organizations_url":"https://api.github.com/users/EduardoMRB/orgs","repos_url":"https://api.github.com/users/EduardoMRB/repos","events_url":"https://api.github.com/users/EduardoMRB/events{/privacy}","received_events_url":"https://api.github.com/users/EduardoMRB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-03-03T02:59:37Z","updated_at":"2015-03-11T17:58:45Z","closed_at":null,"body":"I'm trying to get piggieback to work on my project and I just can't.\r\n\r\nI think that it has something to do with `nrepl-middleware` in `project.clj` so I'll post it here to see if I'm doing something stupid.\r\n\r\n```clojure\r\n(defproject tasks \"0.0.1-SNAPSHOT\"\r\n  :description \"FIXME: write description\"\r\n  :url \"http://example.com/FIXME\"\r\n  :license {:name \"Eclipse Public License\"\r\n            :url \"http://www.eclipse.org/legal/epl-v10.html\"}\r\n  :dependencies [[org.clojure/clojure \"1.6.0\"]\r\n                 [org.clojure/clojurescript \"0.0-2913\"]\r\n                 [org.clojure/core.async \"0.1.346.0-17112a-alpha\"]\r\n                 [io.pedestal/pedestal.service \"0.3.1\"]\r\n\r\n                 ;; Remove this line and uncomment one of the next lines to\r\n                 ;; use Tomcat or Immutant instead of Jetty:\r\n                 [io.pedestal/pedestal.jetty \"0.3.1\"]\r\n                 ;; [io.pedestal/pedestal.tomcat \"0.3.1\"]\r\n                 ;; [io.pedestal/pedestal.immutant \"0.3.1\"]\r\n\r\n                 [com.datomic/datomic-pro \"0.9.5078\" :exclusions [org.slf4j/slf4j-nop\r\n                                                                  joda-time]]\r\n\r\n                 [ch.qos.logback/logback-classic \"1.1.2\" :exclusions [org.slf4j/slf4j-api]]\r\n                 [org.slf4j/jul-to-slf4j \"1.7.7\"]\r\n                 [org.slf4j/jcl-over-slf4j \"1.7.7\"]\r\n                 [org.slf4j/log4j-over-slf4j \"1.7.7\"]\r\n                 \r\n                 [ns-tracker \"0.2.2\"]\r\n                 \r\n                 [org.omcljs/om \"0.8.6\"]\r\n                 [com.cemerick/piggieback \"0.1.5\"]]\r\n  :min-lein-version \"2.0.0\"\r\n  :resource-paths [\"config\", \"resources\"]\r\n  :datomic {:schemas [\"resources/datomic/schema.edn\"]}\r\n  :repositories {\"my.datomic.com\" {:url \"https://my.datomic.com\"\r\n                                   :creds :gpg}}\r\n  :repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}\r\n  :profiles {:dev {:aliases {\"run-dev\" [\"trampoline\" \"run\" \"-m\" \"tasks.server/run-dev\"]}\r\n                   :dependencies [[io.pedestal/pedestal.service-tools \"0.3.1\"]\r\n                                  [midje \"1.6.3\"]\r\n                                  [figwheel \"0.2.3-SNAPSHOT\"]]}}\r\n  :plugins [[lein-cljsbuild \"1.0.5\"]\r\n            [lein-figwheel \"0.2.3-SNAPSHOT\"]]\r\n  :cljsbuild {:builds [{:id \"dev\"\r\n                        :source-paths [\"src-cljs\"]\r\n                        :compiler {:optimizations :none\r\n                                   :output-to \"resources/public/js/tasks.js\"\r\n                                   :output-dir \"resources/public/js/out\"\r\n                                   :source-map true\r\n                                   :pretty-print true}}]}\r\n  :main ^{:skip-aot true} tasks.server)\r\n\r\n```\r\n\r\nError output\r\n\r\n```bash\r\nCompiling client js ...\r\nWaiting for browser to connect ...\r\n\r\njava.lang.IllegalStateException: Can't change/establish root binding of: *cljs-repl-options* with set\r\ntasks.server=> \r\n```"},"comment":{"url":"https://api.github.com/repos/cemerick/piggieback/issues/comments/78321895","html_url":"https://github.com/cemerick/piggieback/issues/48#issuecomment-78321895","issue_url":"https://api.github.com/repos/cemerick/piggieback/issues/48","id":78321895,"user":{"login":"cemerick","id":47489,"avatar_url":"https://avatars.githubusercontent.com/u/47489?v=3","gravatar_id":"","url":"https://api.github.com/users/cemerick","html_url":"https://github.com/cemerick","followers_url":"https://api.github.com/users/cemerick/followers","following_url":"https://api.github.com/users/cemerick/following{/other_user}","gists_url":"https://api.github.com/users/cemerick/gists{/gist_id}","starred_url":"https://api.github.com/users/cemerick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cemerick/subscriptions","organizations_url":"https://api.github.com/users/cemerick/orgs","repos_url":"https://api.github.com/users/cemerick/repos","events_url":"https://api.github.com/users/cemerick/events{/privacy}","received_events_url":"https://api.github.com/users/cemerick/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T17:58:45Z","updated_at":"2015-03-11T17:58:45Z","body":"This seems like a longshot, but could someone who is affected by this try requiring nREPL 0.2.7? It looks like Leiningen is currently defaulting to `0.2.6`; `0.2.7` fixes the topological sort applied to REPL middleware. To do this, add `[org.clojure/tools.nrepl \"0.2.7\"]` to your `:dev` profile's `:dependencies`, and try to start a ClojureScript REPL via piggieback: `(cemerick.piggieback/cljs-repl)`\r\n\r\n(FWIW, `clojure.tools.nrepl/version` will indicate `0.2.7` if the explicit nREPL dependency has properly overridden Leinigen's default.)"}}