Discussion:
Steps To Get Control Keys To Work On Lein2
Charles Norton
2013-03-09 13:18:12 UTC
Permalink
I'm using lein on Linux, both CentOS and Red Hat.

Lein2 works fine for me except neither delete nor the standard ctrl+a, control+k, control+e keys work at all. The control keys work fine using lein1.

I am looking for suggestions on what to clean up. Should I purge the .lein directory? What else is their to try?


I've tried upgrading existing lein users on my Linux box, and installing lein2 for a user new to leiningen.


lein2 builds and does all that just fine, just like lein1. Only the keys don't work.

I'll use lein2 the way it is, but will just have to get creative.


Thanks.
 
Charles M Norton
Database Programmer/Systems Integrator
Colin Jones
2013-03-09 13:37:10 UTC
Permalink
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
doing the right thing by default on Ubuntu, but
there's a fix for that in my patched jline release,
and copying /etc/inputrc into ~/.inputrc is a
workaround that has worked for others.
Post by Charles Norton
I'm using lein on Linux, both CentOS and Red Hat.
Lein2 works fine for me except neither delete nor the standard ctrl+a,
control+k, control+e keys work at all. The control keys work fine using
lein1.
I am looking for suggestions on what to clean up. Should I purge the .lein
directory? What else is their to try?
I've tried upgrading existing lein users on my Linux box, and installing
lein2 for a user new to leiningen.
lein2 builds and does all that just fine, just like lein1. Only the keys don't work.
I'll use lein2 the way it is, but will just have to get creative.
Thanks.
Charles M Norton
Database Programmer/Systems Integrator
--
Colin Jones
@trptcolin
Charles Norton
2013-03-09 13:52:00 UTC
Permalink
Sorry, I forgot to mention the control key problems are with lein repl.

Here is version and repl information.
***@steamboy:~/projects/clojure/addr-verify$ lein version
Leiningen 2.0.0 on Java 1.6.0_27 OpenJDK Client VM
***@steamboy:~/projects/clojure/addr-verify$

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


________________________________
From: Colin Jones <trptcolin-***@public.gmane.org>
To: leiningen-TBHja+***@public.gmane.org
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 
doing the right thing by default on Ubuntu, but 
there's a fix for that in my patched jline release, 
and copying /etc/inputrc into ~/.inputrc is a 
workaround that has worked for others.





On Saturday, March 9, 2013, Charles Norton wrote:

I'm using lein on Linux, both CentOS and Red Hat.
Post by Charles Norton
Lein2 works fine for me except neither delete nor the standard ctrl+a, control+k, control+e keys work at all. The control keys work fine using lein1.
I am looking for suggestions on what to clean up. Should I purge the .lein directory? What else is their to try?
I've tried upgrading existing lein users on my Linux box, and installing lein2 for a user new to leiningen.
lein2 builds and does all that just fine, just like lein1. Only the keys don't work.
I'll use lein2 the way it is, but will just have to get creative.
Thanks.
 
Charles M Norton
Database Programmer/Systems Integrator
--
Colin Jones
@trptcolin
Colin Jones
2013-03-09 14:09:42 UTC
Permalink
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?
Post by Charles Norton
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
doing the right thing by default on Ubuntu, but
there's a fix for that in my patched jline release,
and copying /etc/inputrc into ~/.inputrc is a
workaround that has worked for others.
I'm using lein on Linux, both CentOS and Red Hat.
Lein2 works fine for me except neither delete nor the standard ctrl+a,
control+k, control+e keys work at all. The control keys work fine using
lein1.
I am looking for suggestions on what to clean up. Should I purge the .lein
directory? What else is their to try?
I've tried upgrading existing lein users on my Linux box, and installing
lein2 for a user new to leiningen.
lein2 builds and does all that just fine, just like lein1. Only the keys don't work.
I'll use lein2 the way it is, but will just have to get creative.
Thanks.
Charles M Norton
Database Programmer/Systems Integrator
--
Colin Jones
@trptcolin
--
Colin Jones
@trptcolin
Charles Norton
2013-03-09 14:49:14 UTC
Permalink
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


________________________________
From: Colin Jones <trptcolin-***@public.gmane.org>
To: leiningen-TBHja+***@public.gmane.org
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? 



On Saturday, March 9, 2013, Charles Norton wrote:

Sorry, I forgot to mention the control key problems are with lein repl.
Post by Charles Norton
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 
doing the right thing by default on Ubuntu, but 
there's a fix for that in my patched jline release, 
and copying /etc/inputrc into ~/.inputrc is a 
workaround that has worked for others.
I'm using lein on Linux, both CentOS and Red Hat.
Post by Charles Norton
Lein2 works fine for me except neither delete nor the standard ctrl+a, control+k, control+e keys work at all. The control keys work fine using lein1.
I am looking for suggestions on what to clean up. Should I purge the .lein directory? What else is their to try?
I've tried upgrading existing lein users on my Linux box, and installing lein2 for a user new to leiningen.
lein2 builds and does all that just fine, just like lein1. Only the keys don't work.
I'll use lein2 the way it is, but will just have to get creative.
Thanks.
 
Charles M Norton
Database Programmer/Systems Integrator
--
Colin Jones
@trptcolin
--
Colin Jones
@trptcolin
Colin Jones
2013-03-09 15:15:45 UTC
Permalink
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
Post by Charles Norton
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
doing the right thing by default on Ubuntu, but
there's a fix for that in my patched jline release,
and copying /etc/inputrc into ~/.inputrc is a
workaround that has worked for others.
I'm using lein on Linux, both CentOS and Red Hat.
Lein2 works fine for me except neither delete nor the standard ctrl+a,
control+k, control+e keys work at all. The control keys work fine using
lein1.
I am looking for suggestions on what to clean up. Should I purge the .lein
directory? What else is their to try?
I've tried upgrading existing lein users on my Linux box, and installing
lein2 for a use
Charles Norton
2013-03-09 15:24:19 UTC
Permalink
Thanks.
I'll go try those things.


 
Charles M Norton
Database Programmer/Systems Integrator


________________________________
From: Colin Jones <trptcolin-***@public.gmane.org>
To: leiningen-TBHja+***@public.gmane.org
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





On Saturday, March 9, 2013, Charles Norton wrote:

contents of .inputrc set blink-matching-paren on
Post by Charles Norton
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.
Post by Charles Norton
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 
doing the right thing by default on Ubuntu, but 
there's a fix for that in my patched jline release, 
and copying /etc/inputrc into ~/.inputrc is a 
workaround that has worked for others.
I'm using lein on Linux, both CentOS and Red Hat.
Post by Charles Norton
Lein2 works fine for me except neither delete nor the standard ctrl+a, control+k, control+e keys work at all. The control keys work fine using lein1.
I am looking for suggestions on what to clean up. Should I purge the .lein directory? What else is their to try?
I've tried upgrading existing lein users on my Linux box, and installing lein2 for a use
Charles Norton
2013-03-09 15:37:04 UTC
Permalink
Colin:

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


________________________________
From: Colin Jones <trptcolin-***@public.gmane.org>
To: leiningen-TBHja+***@public.gmane.org
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





On Saturday, March 9, 2013, Charles Norton wrote:

contents of .inputrc set blink-matching-paren on
Post by Charles Norton
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.
Post by Charles Norton
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 
doing the right thing by default on Ubuntu, but 
there's a fix for that in my patched jline release, 
and copying /etc/inputrc into ~/.inputrc is a 
workaround that has worked for others.
I'm using lein on Linux, both CentOS and Red Hat.
Post by Charles Norton
Lein2 works fine for me except neither delete nor the standard ctrl+a, control+k, control+e keys work at all. The control keys work fine using lein1.
I am looking for suggestions on what to clean up. Should I purge the .lein directory? What else is their to try?
I've tried upgrading existing lein users on my Linux box, and installing lein2 for a use
Colin Jones
2013-03-09 15:42:35 UTC
Permalink
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.
Post by Charles Norton
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
Charles Norton
2013-03-09 17:03:26 UTC
Permalink
jline2 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


________________________________
From: Colin Jones <trptcolin-***@public.gmane.org>
To: leiningen-TBHja+***@public.gmane.org
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.
Post by Charles Norton
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
Post by Charles Norton
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.
Post by Charles Norton
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
Colin Jones
2013-03-09 17:23:58 UTC
Permalink
Let's take this off-list. Emailing you separately, and if/when we find the
solution we can report back to this thread.


On Sat, Mar 9, 2013 at 11:03 AM, Charles Norton
Post by Charles Norton
jline2 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
--
Colin Jones
@trptcolin
Colin Jones
2013-03-09 20:38:49 UTC
Permalink
For posterity, here is the JLine ticket that's coming out of this:
https://github.com/jline/jline2/issues/79
Post by Colin Jones
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 Norton
jline2 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
--
Colin Jones
@trptcolin
--
Colin Jones
@trptcolin
Continue reading on narkive:
Loading...