small medium large xlarge

Generic-user-small
30 Aug 2015, 17:33
Ben Hsu (3 posts)

Hello

I am on a Mac, with clojure and leinengen installed via homebrew

I am getting an error when I try to require the reducers library


(:require [clojure.core.reducers :as r]) CompilerException java.lang.ClassNotFoundException: clojure.core.reducers, compiling:(NO_SOURCE_PATH:1:1) —

this happened with both clojure 1.4.0 (which is for some reason the default with leinengen) and 1.5.1

Any idea what I’m doing wrong?

Icon_pragsmall
31 Aug 2015, 13:44
Paul Butcher (38 posts)

I don’t know what’s going on here. The fact that Clojure 1.4 is the default makes me think that you might have a very out of date version of Leiningen?

Here’s what I get on my Mac, how does yours compare?

Pauls-MacBook:~ paul$ lein --version
Leiningen 2.5.2 on Java 1.8.0_45 Java HotSpot(TM) 64-Bit Server VM
Pauls-MacBook:~ paul$ lein repl
nREPL server started on port 50647 on host 127.0.0.1 - nrepl://127.0.0.1:50647
REPL-y 0.3.7, nREPL 0.2.10
Clojure 1.7.0
Generic-user-small
31 Aug 2015, 18:10
Ben Hsu (3 posts)

Well, this is interesting

on my work mac I have the same version of leinengen, but clojure 1.7.0…I still get that error message…

Gonna try on some other version

Generic-user-small
01 Sep 2015, 01:28
Ben Hsu (3 posts)

Paul, I figured this out, the problem was I had a stale version of leiningen in ~/bin

Its always something stupid like that, isn’t it

Icon_pragsmall
01 Sep 2015, 11:53
Paul Butcher (38 posts)

Glad you sorted it, Ben!

You must be logged in to comment