Fork me on GitHub
#cider
<
2019-07-31
>
pauld15:07:40

I noticed that when using cider-jack-in (via spacemacs devel) that the java process downloads 4MB every time. How do I prevent this?

pauld15:07:06

Canadians pay up to $2 per MB because we're awesome.

pauld15:07:51

lein repl or clj doesn't do this on its own.

dpsutton15:07:18

check in *Messages* for the jack in command. then run that?

pauld15:07:37

I did run that seperately but no download occurs then.

pauld15:07:53

/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"]'

dpsutton15:07:03

jack in with M-x toggle-nrepl-message-loggging and see the commands going over

dpsutton15:07:17

see if something is standard.

dpsutton15:07:49

also, are you using any java.URI or URLs?

pauld15:07:59

I'm using a blank project vie lein new (and / or clj -Anew).

pauld15:07:53

nrepl-toggle-message-logging is not giving me more info

pauld15:07:01

can anyone replicate? I'm using nethogs to show the network traffic (ubuntu).

dpsutton15:07:07

can you see where its going?

pauld15:07:39

I tried using tcptrack but I couldn't figure out how to use it properly.

pauld15:07:05

It would be nice if top could show network connections.

pauld15:07:51

iftop is probably what I want

pauld16:07:31

Now how do I get the URL it's hitting?

pauld16:07:58

temporary workaround: iptables -A OUTPUT -d 202.54.1.22 -j DROP

bozhidar16:07:42

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?

dpsutton16:07:12

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?

pauld16:07:52

It's clj-refactor

pauld16:07:15

setting clojure-enable-clj-refactor to nil prevents the http://clojars.org request.

pauld16:07:00

reading cider #1538 gave me the clue.

pauld16:07:58

But very strange why the difference between inside vs outside emacs?

pauld17:07:11

@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.

pauld17:07:37

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.

pauld17:07:49

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?

pauld17:07:16

It downloads https://clojars.org/repo/all-jars.clj which is exactly the size of the network traffic I was seeing 4138159 byets.

simonkatz17:07:32

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.

Janus Troelsen18:07:10

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"...

dpsutton19:07:00

is test/ on your classpath?

pauld19:07:50

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)

dpsutton19:07:52

best thing is to read the makefile and make sure you're doing what it does

dpsutton19:07:23

there's also this [javax.xml.bind/jaxb-api "2.3.1" :scope "provided"] from the 1.9 profile

pauld19:07:45

ah thanks!

pauld19:07:18

I think I just forgot to cd to target/srcdeps

pauld19:07:58

actually what you said... thanks @dpsutton I had used the wrong profile

cider 4
Janus Troelsen21:07:16

@dpsutton all right! i used extra-paths in deps.edn, that seemed to work

Janus Troelsen21:07:45

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?

Janus Troelsen21:07:46

aaah! it is cider-test-default-test-ns-fn

Janus Troelsen21:07:45

seems like it is not configurable...

Janus Troelsen22:07:55

ok the underscore was a distraction, looks like it is normal to have the namespace use minus but the file use underscore...

Janus Troelsen22:07:15

i just wonder what "No test namespace: hello-test" means

Janus Troelsen22:07:28

i mean, i am doing Control-t-n from inside hello-test...

timsgardner22:07:20

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

timsgardner22:07:52

Is there a way to switch between simultaneous breakpoints? Thanks!

Janus Troelsen22:07:51

ah, it seems i have to load hello-test with Control-c-k manually before i can run the tests... strange