Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rlwrap: error: My terminal reports width=0 (is it emacs?) #3

Closed
kforner opened this issue Dec 7, 2015 · 17 comments
Closed

rlwrap: error: My terminal reports width=0 (is it emacs?) #3

kforner opened this issue Dec 7, 2015 · 17 comments

Comments

@kforner
Copy link

kforner commented Dec 7, 2015

on ubuntu 14.04, with gnome-terminal and bash:

docker run -ti rakudo-star
rlwrap: error: My terminal reports width=0 (is it emacs?) I can't handle this, sorry!

@bhtek
Copy link

bhtek commented Apr 8, 2016

I am having the same issue on Ubuntu as well as OpenSUSE.

@hoelzro
Copy link
Contributor

hoelzro commented Apr 8, 2016

@bhtek Which versions of Ubuntu/OpenSUSE? Are you also using gnome-terminal and bash?

@kforner @bhtek Which version of docker are you using?

@kforner
Copy link
Author

kforner commented Apr 11, 2016

> docker version 
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:12:04 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:12:04 UTC 2015
 OS/Arch:      linux/amd64

@hoelzro
Copy link
Contributor

hoelzro commented Apr 12, 2016

@kforner I tried spinning up an Ubuntu VM to test this out, but installing docker via apt gives me Docker 1.6.2. Did you build docker yourself, or is there a more up-to-date package I should try?

@kforner
Copy link
Author

kforner commented Apr 12, 2016

Which Ubuntu version ? Have you updated the package list ? The crurent
version is 1.10 i think
Le 12 avr. 2016 05:56, "Rob Hoelz" notifications@github.com a écrit :

@kforner https://github.com/kforner I tried spinning up an Ubuntu VM to
test this out, but installing docker via apt gives me Docker 1.6.2. Did you
build docker yourself, or is there a more up-to-date package I should try?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#3 (comment)

@moritz
Copy link
Contributor

moritz commented Apr 12, 2016

@hoelzro https://docs.docker.com/engine/installation/linux/ubuntulinux/ has instructions for adding a package source which is more up-to-date.

@hoelzro
Copy link
Contributor

hoelzro commented Apr 12, 2016

@kforner The current version is something like 1.10, but that's what I have on my machine (Arch), so I want to try to be as precise as possible to try and duplicate this.
@moritz Thanks for the link; I'll try that out!

@hoelzro
Copy link
Contributor

hoelzro commented Apr 12, 2016

@kforner Alright; I've updated docker according to @moritz' instructions; this is what I have on my Ubuntu VM:

Client:
 Version:      1.10.3
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   20f81dd
 Built:        Thu Mar 10 15:54:52 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.10.3
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   20f81dd
 Built:        Thu Mar 10 15:54:52 2016
 OS/Arch:      linux/amd64

This is on 14.04 and this setup works for me; would you mind upgrading to docker 1.10 to see if that resolves your issue?

@hoelzro
Copy link
Contributor

hoelzro commented Apr 27, 2016

@kforner Have you tried docker 1.10 to see if that fixes the problem?

@kforner
Copy link
Author

kforner commented Apr 27, 2016

Hi. No I can't. The 1.10 version is not compatible with my docker registry.

On Wed, Apr 27, 2016 at 2:02 AM, Rob Hoelz notifications@github.com wrote:

@kforner https://github.com/kforner Have you tried docker 1.10 to see
if that fixes the problem?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#3 (comment)

@washort
Copy link

washort commented May 3, 2016

I am seeing the same behavior on Docker 1.11.1.

@hoelzro
Copy link
Contributor

hoelzro commented May 3, 2016

For better or for worse, I was finally just able to reproduce this myself. Now hopefully I can actually fix it!

@washort
Copy link

washort commented May 3, 2016

I discovered this after creating my own docker image that uses rlwrap. Problem gets worse: I've tried it under docker 1.8.3 and docker 1.10.3 on a Debian host (both succeed), and under docker 1.10.3 (success) and 1.11.1 (failure) on Ubuntu. So I don't think it's: an rlwrap bug, a kernel bug, or a docker version-specific bug.

@hoelzro
Copy link
Contributor

hoelzro commented May 3, 2016

@washort The more I dig into this, the more I'm convinced it's a Docker bug. rlwrap is just asking the kernel for its terminal size; I'm guessing that Docker isn't properly initializing the terminal size for some reason.

@washort
Copy link

washort commented May 3, 2016

That's my impression. I did find that if I ran rlwrap from a bash prompt launched with docker run, it works. (But using bash -c did not.)

hoelzro added a commit that referenced this issue May 4, 2016
Since Linenoise ships with Star now, we don't need rlwrap.  Not
to mention that rlwrap causes problems for some versions of Docker:

    #3
hoelzro added a commit to hoelzro/docker-library-official-images that referenced this issue May 4, 2016
The latest commit fixes a problem that some people are having with
rlwrap (Raku/docker#3), and is no longer
needed because Rakudo Star includes line editor functionality
@hoelzro
Copy link
Contributor

hoelzro commented May 6, 2016

The docker image no longer uses rlwrap, so this should be fixed now.

@bhtek
Copy link

bhtek commented May 6, 2016

Awesome. Thanks.
On 6/05/2016 10:34 AM, "Rob Hoelz" notifications@github.com wrote:

The docker image no longer uses rlwrap, so this should be fixed now.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#3 (comment)

@hoelzro hoelzro closed this as completed May 9, 2016
RichardScothern pushed a commit to RichardScothern/official-images that referenced this issue Jun 14, 2016
The latest commit fixes a problem that some people are having with
rlwrap (Raku/docker#3), and is no longer
needed because Rakudo Star includes line editor functionality
xiongtx pushed a commit to xiongtx/cider that referenced this issue Feb 3, 2018
`clj` is just `rlwrap` around `clojure`. `rlwrap` can produce the `My terminal
reports width=0` error. We don't need `rlwrap` anyways because we're hosting the
REPL in an Emacs buffer.

See: Raku/docker#3
xiongtx pushed a commit to xiongtx/cider that referenced this issue Feb 3, 2018
`clj` is just `rlwrap` around `clojure`. `rlwrap` can produce the `My terminal
reports width=0` error. We don't need `rlwrap` anyways because we're hosting the
REPL in an Emacs buffer.

See: Raku/docker#3
bbatsov pushed a commit to clojure-emacs/cider that referenced this issue Feb 3, 2018
`clj` is just `rlwrap` around `clojure`. `rlwrap` can produce the `My terminal
reports width=0` error. We don't need `rlwrap` anyways because we're hosting the
REPL in an Emacs buffer.

See: Raku/docker#3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants