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

emacs 26.3: inf-ruby hangs with downward-triangle prompt #130

Closed
stuart-little opened this issue Mar 1, 2020 · 4 comments
Closed

emacs 26.3: inf-ruby hangs with downward-triangle prompt #130

stuart-little opened this issue Mar 1, 2020 · 4 comments

Comments

@stuart-little
Copy link

stuart-little commented Mar 1, 2020

I am running emacs 26.3 on Arch linux, and have installed ruby 2.7.0p0 and irb 1.2.1 from that distro's repos. Running irb in a terminal works fine.

I have inf-ruby installed from MELPA.

In emacs, run-ruby opens a buffer but the prompt is not the usual

irb(main):001:0>

Rather, it's a single triangle pointing down. Entering arbitrary commands simply moves me to the next line producing no output.

If I try to exit with C-x C-c I get a warning that a process is running, started with the expected command

irb --prompt default --noreadline -r irb/completion

This looks in order, and that command runs fine in a terminal. It's also identical to what I see on systems where inf-ruby does work.


Edit:

I think this is along the lines of #128: the same triangle prompt is mentioned there.

Neither the --legacy option nor --inf-ruby-mode for irb help.

@dgutov
Copy link
Collaborator

dgutov commented Mar 1, 2020

Like mentioned in the comments in the other issue, --nomultiline should work.

@stuart-little
Copy link
Author

stuart-little commented Mar 1, 2020

It did, thank you!

The prompt appears now, and one can interact with the REPL. There's a small annoyance in that after the print stage of the loop you're not returned to the prompt: you have to press an extra enter..

It's much better than before though, thanks!

@dgutov
Copy link
Collaborator

dgutov commented Mar 1, 2020

There's a small annoyance in that after the print stage of the loop you're not returned to the prompt: you have to press an extra enter

Yup! And I have no idea what to do with that one.

If anybody has a suggestion, or can liaison with irb developer(s), that would be welcome.

@dgutov
Copy link
Collaborator

dgutov commented Mar 1, 2020

In the meantime, I'll push a patch that should take care of the hanging problem.

Please feel free to create a new issue for the "extra enter" one.

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

2 participants