Skip to content

Instantly share code, notes, and snippets.

@daveray
Created May 10, 2012 12:11
Show Gist options
  • Save daveray/2652644 to your computer and use it in GitHub Desktop.
Save daveray/2652644 to your computer and use it in GitHub Desktop.
lein2-preview3 repl issue
$ lein2 version
Leiningen 2.0.0-preview3 on Java 1.6.0_29 Java HotSpot(TM) 64-Bit Server VM
$ lein2 new hi
Generating a project called hi based on the 'default' template.
$ cd hi
$ lein2 deps
$ lein2 repl
Retrieving org/clojure/tools.nrepl/0.2.0-beta1/tools.nrepl-0.2.0-beta1.pom
from http://repo1.maven.org/maven2/
Could not find artifact org.thnetos:cd-client:pom:0.3.3 in central (http://repo1.maven.org/maven2)
Retrieving org/thnetos/cd-client/0.3.3/cd-client-0.3.3.pom (2k)
from http://clojars.org/repo/
Could not find artifact org.thnetos:cd-client:jar:0.3.3 in central (http://repo1.maven.org/maven2)
Retrieving org/clojure/tools.nrepl/0.2.0-beta1/tools.nrepl-0.2.0-beta1.jar
from http://repo1.maven.org/maven2/
Retrieving org/thnetos/cd-client/0.3.3/cd-client-0.3.3.jar (3k)
from http://clojars.org/repo/
nREPL server started on port 55894
IllegalArgumentException No enum const class jline.console.Operation.EDIT_AND_EXECUTE_COMMAND
java.lang.Enum.valueOf (Enum.java:196)
jline.console.Operation.valueOf (Operation.java:24)
jline.console.ConsoleKeys.loadKeys (ConsoleKeys.java:252)
jline.console.ConsoleKeys.loadKeys (ConsoleKeys.java:80)
jline.console.ConsoleKeys.<init> (ConsoleKeys.java:42)
jline.console.ConsoleReader.<init> (ConsoleReader.java:204)
jline.console.ConsoleReader.<init> (ConsoleReader.java:175)
reply.reader.jline/make-reader (jline.clj:16)
reply.reader.jline/setup-reader! (jline.clj:46)
reply.reader.jline/prepare-for-read (jline.clj:70)
reply.main/launch-nrepl/fn--874 (main.clj:60)
clojure.core/with-redefs-fn (core.clj:6483)
Bye for now!
@trptcolin
Copy link

This is fixed in master, will be in preview4. It's a jline2 thing - jline/jline2#41
Commenting out the offending line in ~/.inputrc is a short-term fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment