Fork me on GitHub
#cider
<
2016-02-02
>
jasonbell11:02:49

Does anyone else have issues with CIDER/Emacs on Ubuntu? cider-jack-in taking an absolute age to startup.

bozhidar12:02:49

@jasonbell: how long exactly?

jasonbell12:02:12

couple of minutes sometimes

jasonbell12:02:20

lein repl from the terminal is fine

bozhidar12:02:29

hmm, doesn’t sound right for sure

bozhidar12:02:52

what do you have in your lein profiles?

jasonbell12:02:57

there’s nothing in Messages warning me, just wondered if it was something obivous.

jasonbell12:02:27

@bozhidar: I’ll have to paste them in later, on a different machine at the moment

jasonbell12:02:38

wondered if there was any known issue

jasonbell12:02:49

will try during my lunch

bozhidar12:02:06

there are no known issues

bozhidar12:02:20

so it’s likely some problem with your setup

jasonbell12:02:38

I thought that would be the case as I don’t have problems on Mac OSX

agile_geek13:02:30

@jasonbell: I'd be interested to know what the issue is when you find out. I assume @otfrom doesn't have this problem?

jasonbell13:02:36

@agile_geek: I’ve not spoken to him, i) he’s very busy and ii) it’s not a work matter…. this is my lunctime/evening learning machine simple_smile

jasonbell13:02:08

ason@jason-MacBookPro:~$ cat ~/.lein/profiles.clj 
{:repl {:dependencies [[org.clojure/tools.nrepl "0.2.12"]]
    :plugins [[cider/cider-nrepl "0.10.2"]
          [refactor-nrepl "1.2.0-SNAPSHOT"]]
    :repl-options {:init (set! *print-length* 200)}}}
; CIDER 0.10.1 (Java 1.8.0_66-internal, Clojure 1.7.0, nREPL 0.2.12)
WARNING: CIDER's version (0.10.1) does not match cider-nrepl's version (0.10.2). Things will break!
testrepl.core> 

jasonbell13:02:46

Now I do wonder if the slowness is also down to my Spark code trying to connect to Cassandra on Docker at compile time?

jasonbell13:02:15

@agile_geek: this is my lunch…. simple_smile

jasonbell13:02:56

@bozhidar: Emacs 24.3 btw if that counts for anything.

agile_geek13:02:25

@jasonbell: fair enough. My lunch too. I would put money on your Cassandra connection on Docker. Why not create a minimal project with no Cassandra/Docker and see what JVM start up time is like?

jasonbell13:02:42

Still way over a minute even with an empty application. I’ll look this evening though I’m now convinced that the docker image stuff is definitely causing problems. Thanks for you help, I’ll report later on this evening.

bozhidar13:02:52

try removing refactor-nrepl

bozhidar13:02:04

1.2 is not compantible with cider 0.10 anyways

bozhidar13:02:34

but your setup looks fine overall

bozhidar13:02:42

except of the cider version mismatch

bozhidar13:02:01

likely it’s really something to do with the docker image

jasonbell13:02:14

removing refactor-nrepl certainly speeded things up, thanks!

benedek18:02:01

@jasonbell try refactor-nrepl 2.0.0-snapshot (need update both the emacs package and edit your profiles.clj unfortunately)

benedek18:02:13

should be faster