{"action":"created","issue":{"url":"https://api.github.com/repos/BetterThanTomorrow/calva/issues/90","repository_url":"https://api.github.com/repos/BetterThanTomorrow/calva","labels_url":"https://api.github.com/repos/BetterThanTomorrow/calva/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/BetterThanTomorrow/calva/issues/90/comments","events_url":"https://api.github.com/repos/BetterThanTomorrow/calva/issues/90/events","html_url":"https://github.com/BetterThanTomorrow/calva/issues/90","id":385145935,"node_id":"MDU6SXNzdWUzODUxNDU5MzU=","number":90,"title":"Allow for connecting to a repl started with `clj`","user":{"login":"slipset","id":5894926,"node_id":"MDQ6VXNlcjU4OTQ5MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/5894926?v=4","gravatar_id":"","url":"https://api.github.com/users/slipset","html_url":"https://github.com/slipset","followers_url":"https://api.github.com/users/slipset/followers","following_url":"https://api.github.com/users/slipset/following{/other_user}","gists_url":"https://api.github.com/users/slipset/gists{/gist_id}","starred_url":"https://api.github.com/users/slipset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slipset/subscriptions","organizations_url":"https://api.github.com/users/slipset/orgs","repos_url":"https://api.github.com/users/slipset/repos","events_url":"https://api.github.com/users/slipset/events{/privacy}","received_events_url":"https://api.github.com/users/slipset/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-28T08:04:22Z","updated_at":"2018-11-29T19:43:00Z","closed_at":null,"author_association":"NONE","body":"https://github.com/clojure-emacs/cider-nrepl has instructions for how to fire up an cider-nrepl with `deps.edn`\r\n\r\nWhen I try to make Calva connect to such an nrepl-session I get the following:\r\n```\r\nlein repl :connect localhost:50732\r\n✔ ~/Documents/github.com/nrepl-clj\r\n21:22 $ lein repl :connect localhost:50732\r\nConnecting to nREPL at localhost:50732\r\nCompilerException java.lang.ClassNotFoundException: clojure.tools.nrepl, compiling:(null:1:82)\r\n#namespace[user]\r\nError loading namespace; falling back to user\r\nnil\r\nuser=>\r\n```\r\n\r\nin the nrepl terminal.\r\n\r\ndeps.edn:\r\n\r\n```clojure\r\n{\r\n :aliases\r\n {:cider-clj {:extra-deps {org.clojure/clojure {:mvn/version \"1.9.0\"}\r\n                           cider/cider-nrepl {:mvn/version \"0.18.0\"}\r\n                           org.clojure/tools.nrepl {:mvn/version \"0.2.13\"}}\r\n              :main-opts [\"-m\" \"nrepl.cmdline\" \"--middleware\" \"[cider.nrepl/cider-middleware]\"]}}}\r\n```\r\nRun as `clj -A:cider-clj`\r\n"},"comment":{"url":"https://api.github.com/repos/BetterThanTomorrow/calva/issues/comments/442967093","html_url":"https://github.com/BetterThanTomorrow/calva/issues/90#issuecomment-442967093","issue_url":"https://api.github.com/repos/BetterThanTomorrow/calva/issues/90","id":442967093,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mjk2NzA5Mw==","user":{"login":"slipset","id":5894926,"node_id":"MDQ6VXNlcjU4OTQ5MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/5894926?v=4","gravatar_id":"","url":"https://api.github.com/users/slipset","html_url":"https://github.com/slipset","followers_url":"https://api.github.com/users/slipset/followers","following_url":"https://api.github.com/users/slipset/following{/other_user}","gists_url":"https://api.github.com/users/slipset/gists{/gist_id}","starred_url":"https://api.github.com/users/slipset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slipset/subscriptions","organizations_url":"https://api.github.com/users/slipset/orgs","repos_url":"https://api.github.com/users/slipset/repos","events_url":"https://api.github.com/users/slipset/events{/privacy}","received_events_url":"https://api.github.com/users/slipset/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T19:43:00Z","updated_at":"2018-11-29T19:43:00Z","author_association":"NONE","body":"D'oh! I'm not even reading the error message, even though it's right there!\r\n`calva` uses `lein repl :connect` to connect to the nrepl server started with `clj`\r\nIt needs to use `clj` to connect to nrepl.\r\n\r\nSo, I made a `deps.edn` as such:\r\n```\r\n{\r\n :aliases\r\n {:nrepl-server {:extra-deps {org.clojure/tools.nrepl {:mvn/version \"0.2.13\"}\r\n                              cider/cider-nrepl {:mvn/version \"0.19.0-SNAPSHOT\"}\r\n                              refactor-nrepl {:mvn/version \"2.3.1\"}}\r\n                 :main-opts [\"-m\" \"nrepl.cmdline\" \"--middleware\" \"[cider.nrepl/cider-middleware]\"]}\r\n  :nrepl-client {:extra-deps {org.clojure/tools.nrepl {:mvn/version \"0.2.13\"}\r\n                               cider/cider-nrepl {:mvn/version \"0.19.0-SNAPSHOT\"}\r\n                               refactor-nrepl {:mvn/version \"2.3.1\"}}\r\n                  :main-opts [\"-m\" \"nrepl.cmdline\" \"--connect\" \"--host\" \"localhost\" \"--port\"]}}}\r\n```\r\nWhere `clj -A:nrepl-server` starts up a nrepl-server, and `clj -A:nrepl-client 4711` will connect to a nrepl server running on port 4711 on localhost. \r\n\r\nGiven this, I'd suspect that `calva` could choose connection strategy depending on what files are present in the directory where `calva` is started, much like `cider` does."}}
{"actor":{"display_login":"slipset"}}