hi Andrea, although we had a chat on slack around this I guess it is nice to have a follow up/summary here as well.
> but the weird thing I don't have that plugin declared as SNAPSHOT version anywhere, and in fact doing a "lein repl" from the terminal works fine instead. both cider an clj-refactor in their latest versions (0.11 and 2.2 respectively) inject their own dependencies when you use `cider-jack-in` via the command you actually quoted. See discussion about this new feature here: https://github.com/clojure-emacs/cider/issues/1531. Using the command line like this is perhaps not the cleanest but also possibly the best available option at the moment. This might improve if this issue gets resolved in leiningen: https://github.com/technomancy/leiningen/issues/2074 The upside of this feature is obviously that you don't need to edit your profiles.clj file to add the cider and refactor-nrepl plugins anymore and the right versions will be used when you change the version of cider or clj-refactor as well. > Sometimes on train/plane I try to work on some Clojure project and I normally don't manage to start the REPL inside Emacs. As for starting up the REPL without internet connection: I suppose if you don't have a copy of the plugins in your local cache at least that is unfortunate. You can always switch this injection feature off with setting `cider-inject-dependencies-at-jack-in` (for cider) and `cljr-inject-dependencies-at-jack-in` (for clj-refactor) to nil. But at least cider won't be much help without its plugin... (clj-refactor has quite a few features which work fine without the plugin). My best guess would be to give a try to inf-clojure (https://github.com/clojure-emacs/inf-clojure) on those occasions you don't have an internet connection and you don't have the plugins in your local cache. Hope this helps and clarifies your issues a bit. On Saturday, February 20, 2016 at 7:28:03 PM UTC, Andrea Crotti wrote: > > This might be a Cider issue more than Clojure but I'm not sure. > > Sometimes on train/plane I try to work on some Clojure project and I > normally don't manage to start the REPL inside Emacs. > > The issue calling (cider-jack-in) is the following: > > Starting nREPL server via lein update-in :dependencies conj > \[org.clojure/tools.nrepl\ \"0.2.12\"\] -- update-in :plugins conj > \[refactor-nrepl\ \"2.2.0-SNAPSHOT\"\] -- update-in :plugins conj > \[cider/cider-nrepl\ \"0.11.0-SNAPSHOT\"\] -- repl :headless... > > error in process sentinel: nrepl-server-sentinel: Could not start > nREPL server: Could not transfer artifact > refactor-nrepl:refactor-nrepl:pom:2.2.0-SNAPSHOT from/to clojars > (https://clojars.org/repo/): clojars.org > > but the weird thing I don't have that plugin declared as SNAPSHOT > version anywhere, and in fact doing a "lein repl" from the terminal > works fine instead. > > I tried to look in the Cider code and can't find anything there > either, so any idea where that comes from? > And a more general question there unless I use -SNAPSHOT versions, > there should be no case when lein needs to reconnect to clojars if all > the dependencies were already downloaded right? > > Thanks > > PS. this is my .lein/profiles_clj btw: > > {:user > {:dependencies > [[pjstadig/humane-test-output "0.6.0"] > [org.clojure/tools.nrepl "0.2.12"] > [acyclic/squiggly-clojure "0.1.4"] > [spyscope "0.1.5"] > [org.clojure/tools.namespace "0.2.4"] > [io.aviso/pretty "0.1.8"] > [im.chit/vinyasa "0.1.2"] > [org.clojure/tools.trace "0.7.8"]] > > :plugins > [[cider/cider-nrepl "0.10.2"] > [lein-annotations "0.1.0"] > [com.jakemccrary/lein-test-refresh "0.7.0"] > [lein-checkall "0.1.1"] > [lein-droid "0.3.5"] > [lein-githooks "0.1.0"] > [lein-shell "0.4.0"] > [lein-ancient "0.6.7" :exclusions [org.clojure/core.cache]] > [lein-try "0.4.3"] > [lein-midje "3.1.3"] > [nodisassemble "0.1.3"] > [lein-cloverage "1.0.3"] > [refactor-nrepl "2.0.0"] > ]} > } > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.