This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-07
Channels
- # adventofcode (38)
- # aleph (1)
- # bangalore-clj (3)
- # beginners (126)
- # boot (165)
- # boulder-clojurians (5)
- # cider (42)
- # cljsrn (11)
- # clojure (203)
- # clojure-greece (6)
- # clojure-hk (1)
- # clojure-italy (11)
- # clojure-new-zealand (1)
- # clojure-nl (1)
- # clojure-russia (112)
- # clojure-spec (86)
- # clojure-uk (176)
- # clojurescript (38)
- # code-reviews (2)
- # core-async (2)
- # cryogen (2)
- # cursive (16)
- # datascript (2)
- # datomic (80)
- # events (2)
- # garden (28)
- # hoplon (115)
- # jobs (1)
- # jobs-discuss (7)
- # klipse (50)
- # lein-figwheel (15)
- # liberator (17)
- # luminus (6)
- # off-topic (8)
- # om (31)
- # onyx (26)
- # parinfer (4)
- # planck (35)
- # protorepl (26)
- # quil (2)
- # re-frame (50)
- # reagent (21)
- # ring (5)
- # rum (2)
- # schema (1)
- # untangled (29)
- # vim (10)
- # yada (40)
hey yall, has anyone else gotten this message when trying to use cider-jack-in with boot?
Starting nREPL server via /usr/local/bin/boot -d org.clojure/tools.nrepl\:0.2.12 -d refactor-nrepl\:2.3.0-SNAPSHOT -d cider/cider-nrepl\:0.14.0 repl -m refactor-nrepl.middleware/wrap-refactor -m cider.nrepl/cider-middleware -s wait...
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at Boot.main(Boot.java:258)
Caused by: java.lang.IllegalArgumentException: Bad artifact coordinates org.clojure:clojure:jar:, expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>
works ok with lein
i tried running /usr/local/bin/boot -d org.clojure/tools.nrepl\:0.2.12 -d refactor-nrepl\:2.3.0-SNAPSHOT -d cider/cider-nrepl\:0.14.0 repl -m refactor-nrepl.middleware/wrap-refactor -m cider.nrepl/cider-middleware -s
fromt he command line and that works fine too
also, from your message, Bad artifact coordinates org.clojure:clojure:jar:,
that looks a little malformed
hmmm yeah, I just can’t figure out where that might be coming from
also, do you have any profile files lying around? ~/.boot or whatever boots config file is?
(set-env!
:source-paths #{"src"}
:resource-paths #{}
:target-path "target/build"
:dependencies '[[org.clojure/clojure "1.9.0-alpha14" :scope "provided"]
[boot/core "2.5.5" :scope "provided"]
[adzerk/boot-test "1.1.1" :scope "test"]
[adzerk/bootlaces "0.1.13" :scope "test"]
[org.clojure/test.check "0.9.0" :scope "test"]
[org.clojure/tools.namespace "0.2.11" :scope "test"]
[aysylu/loom "0.6.0"]
[medley "0.8.3"]])
(require '[adzerk.bootlaces :refer :all]
'[adzerk.boot-test :refer :all])
(def +version+ "0.1.0")
(bootlaces! +version+)
also, is this a project that has been working and recently stopped? is it a new project from a template or cloned from someone?
it hasn’t worked, and it seems I can’t boot jack in with other projects where I was able to previously
it might be something I changed in one of my .boot files
it’s looking like it has to do with the boot.properties file
ok I think I figured it out
my emacs config was set to copy BOOT_CLOJURE_VERSION
from the environment, but that wasn’t actually set in my environment, so in the emacs environment I essentially had BOOT_CLOJURE_VERSION=””
that’s why the artifact was coordinates were bad, because the clojure version was missing
thanks for helping me figure it out 🙂 🙂 🙂
hmm, maybe CIDER should default to 1.7 (its minimum supported version) if this is the case
it seems like a weird edge case, I wonder if it might be better have some kind of error message. or maybe print a message and default to 1.7
this may be useful too?! https://github.com/clojure-emacs/cider/blob/master/cider.el#L268-L284
When I use cider-jack-in
, eldoc works (i.e. shows me function info in the minibuffer), but when I cider-connect
to a repl started with clojure.tools.nrepl.server/start-server
, I don’t see anything in the minibuffer
any ideas why? or can anyone point me in the right direction?
oh. passing the handler here as an option worked: https://github.com/clojure-emacs/cider-nrepl
(clojure.tools.nrepl.server/start-server :handler cider.nrepl/cider-nrepl-handler)