This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-09
Channels
- # beginners (140)
- # boot (163)
- # cider (43)
- # cljs-dev (50)
- # cljsjs (5)
- # cljsrn (38)
- # clojure (152)
- # clojure-austria (10)
- # clojure-berlin (9)
- # clojure-dev (11)
- # clojure-japan (1)
- # clojure-miami (2)
- # clojure-russia (147)
- # clojure-sg (12)
- # clojurescript (244)
- # code-reviews (3)
- # cursive (104)
- # data-science (5)
- # datavis (15)
- # datomic (35)
- # editors (4)
- # hoplon (1)
- # ldnclj (11)
- # lein-figwheel (14)
- # leiningen (22)
- # off-topic (53)
- # om (373)
- # omnext (2)
- # onyx (67)
- # parinfer (193)
- # re-frame (23)
- # reagent (89)
- # yada (7)
I know I’m not the first one asking this: but I feel something definitely not right on my machine. lein repl startup time not just slow. it’s painfully, unacceptably slow. I’ve tried all sorts of things. nothing seems to be helping. are there things that need to/can be done on os x?
Do other Java command line programs run quickly for you?
Do you see slow lein repl
inside a project? Outside a project?
Do you have anything in your ~/.lein/profiles.clj
file?
@seancorfield: I’m trying to load repl without lein. How can I do that if I installed clojure through installing lein via brew?
I think it has something to do with my profiles.clj, which looks like this:
{:user {:plugins [[cider/cider-nrepl "0.11.0-SNAPSHOT"]
[refactor-nrepl "1.2.0-SNAPSHOT"]
[lein-cljsbuild "1.1.1"]]
:dependencies [[alembic "0.3.2"]
[org.clojure/tools.nrepl "0.2.11"]]}
:repl-options {
:nrepl-middleware [io.aviso.nrepl/pretty-middleware]
}
}
Yeah, that would cause a slow REPL startup. We only put those plugins and dependencies in projects where we want full CIDER functionality etc.
Comment that all out and see how fast lein repl
comes up.
So lein repl
outside a project with all your ~/.lein/profiles.clj
commented out is still slow? That is odd. Is it faster if you do lein -o repl
(to run offline).
I just did this
java -cp ~/.m2/repository/org/clojure/clojure/1.7.0/clojure-1.7.0.jar clojure.main
wow.. I just tried removing ~/.m2
completely and then run lein repl
it seems to be tiny bit faster. yet still a lot slower than just running it directly
Sorry, I'm at a loss. Maybe asking on the Clojure Google Group will yield a more helpful answer?