Closed kumarshantanu closed 10 years ago
Can you supply the output of lein version
, please? I cannot reproduce that error here on my machine.
Sure, I am on 64-bit Ubuntu.
$ lein version
Leiningen 2.3.4 on Java 1.7.0_45 Java HotSpot(TM) 64-Bit Server VM
I have exactly the same setup (regarding Leiningen, Ubuntu and Java versions) and I don't experience any problems:
$ lein version
Leiningen 2.3.4 on Java 1.7.0_45 Java HotSpot(TM) 64-Bit Server VM
$ lein try riemann-clojure-client 0.2.9
user=> (use 'riemann.client)
nil
Are you inside a project or outside? And if the former, can you give the project.clj
?
I am not inside any project.
Found the cause. It was happening due to https://github.com/jaley/cloc 0.1.0
in my ~/lein/profiles.clj
-- maybe @jaley would know what's going on. When I commented out cloc
, the error went away.
@kumarshantanu Hmm, yes, it does look like cloc
changes the project map under the hood. I'm inclined to point a finger at cloc
as lein-try
is only addititive to the project map, while it looks like cloc
has some business with creating a new project.
When I use
lein-try
with riemann-clojure-client it produces error:This does not happen when using
lein repl
when the library is part ofproject.clj
dependencies.