Fork me on GitHub
#leiningen
<
2016-04-22
>
eggsyntax13:04:28

Has anyone here ever run into a problem where lein goes entirely haywire, such that any and every lein call errors out?

java.lang.IllegalArgumentException: No matching ctor found for class org.sonatype.aether.repository.Authentication at clojure.lang.Reflector.invokeConstructor (Reflector.java:183)
(Can post full stack trace if it'd be helpful, I couldn't find anything useful in it) This is after about 18 months of faithful service. Tried reinstalling lein, ditching my profiles.clj, rebooting the box, prob some other stuff, and no love. Anyone have guess of any sort? Haven't found anything that seemed relevant on google.

eggsyntax13:04:36

Leiningen 2.6.1 on Java 1.8.0_60 64-Bit VM (on OS X)

bostonaholic13:04:48

@eggsyntax: have you tried blowing away your ~/.m2 (backing up first)?

eggsyntax13:04:21

No, but I will, thanks!

eggsyntax13:04:39

Well, now! Apparently the problem is only in certain directories. At least (and maybe only) ~/tmp. Which is where I put throwaway projects, so it took me quite a while to discover that...

eggsyntax13:04:42

Problem solved -- stray copy of profiles.clj in ~/tmp. I must have stuck it there as a temporary backup. TIL

bostonaholic13:04:32

glad you figured it out

eggsyntax13:04:52

Yeah, who knew? Thanks for the help!