Fork me on GitHub
#cider
<
2019-09-17
>
magnars06:09:32

Why is my cider suddenly trying to connect to http://clojuredocs-edn.netlify.com?

bozhidar06:09:57

@magnars It’s downloading from there an export of the clojuredocs database.

bozhidar06:09:16

Generally it should do it only once and cache it afterwards.

magnars06:09:47

Aha. I’m currently on a train with no network, so it’s a bit inconvenient that it stops my repl from working. :)

bozhidar06:09:40

Previously the Grimoire integration was doing http requests on demand, but when we swapped this for ClojureDocs there wasn’t a real API so we cooked this service that generates an EDN export of all data every day from the official json export.

magnars06:09:18

I see. That makes sense. I’ll tether my phone to get the update.

bozhidar06:09:33

Yeah, we obviously missed this part. 🙂 People behind firewalls were also in for a surprise.

bozhidar06:09:57

I guess we should try to do something sensible in the absence of internet connection.

👍 1
dominicm06:09:27

Also make it background

bozhidar07:09:07

Yeah, that’s a good point.

jumar08:09:32

@U051BLM8F I also hit this issue today while travelling. It was in a project where everything already worked for a few days before so not sure how many times it tries to update the cache... But it basically made repl experience very poor - no docs showing (for fns at least, Java classes seemed to work), couldn't jump to function definition (`cider-find-var`), etc.

simonkatz20:09:36

Is there a good way to cider-jack-in using a Leiningen profile? I’ve defined my own variable in .dir-locals.el with value “with-profile +clj”, and added advice to cider-jack-in-params to prepend this value (if the variable is defined). This feels like a nasty hack.

simonkatz20:09:34

Ah — I’ve dumped that and defined an alias in project.clj as follows: {"repl" ["with-profile" "+clj" "repl"]}.