This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-31
Channels
- # announcements (1)
- # beginners (171)
- # cider (51)
- # clj-kondo (40)
- # cljsrn (5)
- # clojure (68)
- # clojure-dev (42)
- # clojure-europe (2)
- # clojure-italy (20)
- # clojure-spec (2)
- # clojure-uk (141)
- # clojurescript (19)
- # community-development (4)
- # core-async (17)
- # core-logic (3)
- # cursive (11)
- # data-science (1)
- # datomic (7)
- # defnpodcast (2)
- # figwheel (9)
- # figwheel-main (2)
- # fulcro (15)
- # graphql (21)
- # jackdaw (3)
- # joker (11)
- # juxt (1)
- # luminus (12)
- # off-topic (2)
- # pathom (73)
- # pedestal (2)
- # re-frame (41)
- # reagent (14)
- # reitit (4)
- # shadow-cljs (39)
- # tools-deps (4)
I noticed that when using cider-jack-in (via spacemacs devel) that the java process downloads 4MB every time. How do I prevent this?
/usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} com.billpiel/sayid {:mvn/version "0.0.17"} refactor-nrepl {:mvn/version "2.5.0-SNAPSHOT"} cider/cider-nrepl {:mvn/version "0.22.0-beta8"}}}' -m nrepl.cmdline --middleware '["com.billpiel.sayid.nrepl-middleware/wrap-sayid", "refactor-nrepl.middleware/wrap-refactor", "cider.nrepl/cider-middleware"]'
It's hitting http://clojars.org
Can’t imagine how running the command via Emacs and outside of Emacs would have the same results. Maybe its some side effect of the shell Emacs is using or something like that?
possible its checking for latest snapshots of things? and then when you run on command line it doesnt since you already got the latest snapshot?
setting clojure-enable-clj-refactor to nil prevents the http://clojars.org request.
@dpsutton I suspect you're on the right track. I'd have to look at the clj-refactor project to see when and how it checks for the dependencies that need injecting.
According to cider #1538 one of the refactor-nrepl 2.0.0-SNAPSHOTs should contain code that fixes a crash where http://clojars.org was unreachable.
Ah found that commit (in refactor-nrepl): https://github.com/clojure-emacs/refactor-nrepl/commit/4f9ee4cd832664104121505c7f6dbfe4565fa0ba
Anyway, it seems the issue is that a list of artifacts is cached in an atom (artifacts) and this atom holds metadata on artifacts 'freshness'. But I don't think it's written to disk? so it gets emptied every time?
It downloads https://clojars.org/repo/all-jars.clj which is exactly the size of the network traffic I was seeing 4138159 byets.
How does the inspector decide how many items to show at the start of a sequence? I’m getting the first five and I’d like a few more.
refactor-nrepl feature request: https://github.com/clojure-emacs/refactor-nrepl/issues/263
i have the issue that test-runner prefers tests in test/ instead of src/. if i have test/hello_test.clj open in CIDER (the test suffix also mandated by test-runner), and i do M-x cider-reload, i get "Could not locate hellotest.clj"...
Trying to hack on refactor-nrepl but I get this error when I run
lein with-profile +plugin.mranderson/config test
Exception in thread "main" java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter, compiling:(cljs/util.cljc:1:1)
there's also this [javax.xml.bind/jaxb-api "2.3.1" :scope "provided"]
from the 1.9 profile
@dpsutton all right! i used extra-paths in deps.edn, that seemed to work
i still have the problem that CIDER looks for hello-test and doesn't find hello_test. i didn't see any option to configure this suffix. any tips?
aaah! it is cider-test-default-test-ns-fn
seems like it is not configurable...
ok the underscore was a distraction, looks like it is normal to have the namespace use minus but the file use underscore...
i just wonder what "No test namespace: hello-test" means
i mean, i am doing Control-t-n from inside hello-test...
hey, didn't see this channel or I'd have posted here before taking out an issue, sorry about that. Trying to figure out how cider breakpoints work across threads, hitting some unexpected behavior: https://github.com/clojure-emacs/cider-nrepl/issues/630
Is there a way to switch between simultaneous breakpoints? Thanks!
ah, it seems i have to load hello-test with Control-c-k manually before i can run the tests... strange