Let's take this off-list. Emailing you separately, and if/when we find the
solution we can report back to this thread.
Post by Charles Nortonjline2 is in your post. I git-cloned and mvn installed according to the
instructions up at git hum.
Charles M Norton
Database Programmer/Systems Integrator
------------------------------
*Sent:* Saturday, March 9, 2013 10:42 AM
*Subject:* Re: [leiningen] Fw: Steps To Get Control Keys To Work On Lein2
I'm not sure what you mean by installing jline2. Lein depends on REPLy
which depends on jline2. These are jarfiles that lein manages, not separate
installs. I don't know what ~/jline2 is.
I've deleted input_rc and installed jline2.
How does jline2 interact with lein2?
I've exported ~/jline2 it in .bashrc.
What else should I do?
Thanks for your help by the way.
cmn
Charles M Norton
Database Programmer/Systems Integrator
------------------------------
*Sent:* Saturday, March 9, 2013 10:15 AM
*Subject:* Re: [leiningen] Fw: Steps To Get Control Keys To Work On Lein2
My mistake, looks like that environment variable only works for
standalone REPLy, so to try that out you'd need to clone
https://github.com/trptcolin/reply, and run `lein trampoline run` in the
REPLy directory. There should be *lots* of output, some errors that won't
end up mattering, etc.
If the output there is the same as usual, jline2 is most likely not on the classpath.
Assuming you *do* see output, jline2 is doing its job, and there's
further debugging you could do, things like hitting ctrl-a and seeing what
jline has that mapped to.
You could also try moving ~/.inputrc to a different filename and/or
copying /etc/inputrc to ~/.inputrc
contents of .inputrc set blink-matching-paren on
Exported JLINE_LOGGING=trace
Where would I find the output?
Charles M Norton
Database Programmer/Systems Integrator
------------------------------
*Sent:* Saturday, March 9, 2013 9:09 AM
*Subject:* Re: [leiningen] Fw: Steps To Get Control Keys To Work On Lein2
Do you have JLINE_LOGGING=trace exported before starting the repl there?
It doesn't look like it - or maybe you have an old version of jline on
your classpath, either via project.clj or other means?
What's in your ~/.inputrc?
Sorry, I forgot to mention the control key problems are with lein repl.
Here is version and repl information.
Leiningen 2.0.0 on Java 1.6.0_27 OpenJDK Client VM
nREPL server started on port 43109
REPL-y 0.1.9
Clojure 1.2.1
Exit: Control+D or (exit) or (quit)
Commands: (user/help)
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
(user/sourcery function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Examples from clojuredocs.org: [clojuredocs or cdoc]
(user/clojuredocs name-here)
(user/clojuredocs "ns-here" "name-here")
Charles M Norton
Database Programmer/Systems Integrator
------------------------------
*Sent:* Saturday, March 9, 2013 8:37 AM
*Subject:* Re: [leiningen] Fw: Steps To Get Control Keys To Work On Lein2
I take it you're referring to the repl task? The rest of this email assumes that you are.
The ~/.inputrc file is where these settings are configured. If so, are
there some keys that do work? Ctrl-p/ctrl-n/ctrl-r/arrows/ctrl-b/ctrl-f?
What exact lein version? 2.0.0 final?
What output do you see when you set this environment variable?
export JLINE_LOGGING=trace
Lein2 repl uses REPLy, which uses jline2, so there is more detail on
their github page: https://github.com/jline/jline2
There is a known issue in 2.0.0 that sometimes
prevents the home/end and arrow keys from
--
Colin Jones
@trptcolin