* bug#71050: Tramp's direct-async-process makes remote IRB be missing prompt and duplicate input
@ 2024-05-19 0:46 Dmitry Gutov
2024-06-03 11:23 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Gutov @ 2024-05-19 0:46 UTC (permalink / raw)
To: 71050
It's not 100% clear to me that the bug is in Tramp and not IRB
(run-python doesn't seem to exhibit the same problems), but it's easy
enough to reproduce, so maybe the cause can be identified and fixed
without too much trouble. It's probably something like the TERM variable
or "is a tty" detection.
Steps:
1. Install inf-ruby from somewhere (e.g. NonGNU ELPA).
2. Connect to a server that has "direct-async-process" configured and
which also has Ruby installed. fencepost has Ruby installed, FWIW.
3. Evaluate this: (run-ruby "irb").
4. The REPL buffer will be created called *ruby* where you can send
input and receive output, but there is no prompt there, and whatever
input you send is first duplicated in the output. Also, the buffer
starts with "Switch to inspect mode", which seems to be related to the
latter (input duplication) but not the former.
If the connection is not "direct-async-process", the REPL functions
normally (prompt visible, no input duplication).
There is also an intermediate situation (with "direct-async-process"
enabled) that happens if you simply run 'M-x inf-ruby' - that calls
'irb' with a certain set of arguments for maximum compatibility. The
result is that the prompt *is* visible, but the input duplication still
happens.
It would be great to fix the bare (run-ruby "irb"), though - because
there are contexts where passing the aforementioned extra arguments is
more difficult. But I'll take any improvements as a win.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#71050: Tramp's direct-async-process makes remote IRB be missing prompt and duplicate input
2024-05-19 0:46 bug#71050: Tramp's direct-async-process makes remote IRB be missing prompt and duplicate input Dmitry Gutov
@ 2024-06-03 11:23 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-03 11:35 ` Dmitry Gutov
0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-06-03 11:23 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: 71050
Dmitry Gutov <dmitry@gutov.dev> writes:
Hi Dmitry,
> It's not 100% clear to me that the bug is in Tramp and not IRB
> (run-python doesn't seem to exhibit the same problems), but it's easy
> enough to reproduce, so maybe the cause can be identified and fixed
> without too much trouble. It's probably something like the TERM
> variable or "is a tty" detection.
Due to bug#71259, handling of tty in direct async processes has been
improved. Could you pls check, whether this helps also in your case?
Best regards, Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#71050: Tramp's direct-async-process makes remote IRB be missing prompt and duplicate input
2024-06-03 11:23 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-06-03 11:35 ` Dmitry Gutov
2024-06-03 13:35 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Gutov @ 2024-06-03 11:35 UTC (permalink / raw)
To: Michael Albinus; +Cc: 71050-done
Hi Michael,
On 03/06/2024 14:23, Michael Albinus wrote:
>> It's not 100% clear to me that the bug is in Tramp and not IRB
>> (run-python doesn't seem to exhibit the same problems), but it's easy
>> enough to reproduce, so maybe the cause can be identified and fixed
>> without too much trouble. It's probably something like the TERM
>> variable or "is a tty" detection.
> Due to bug#71259, handling of tty in direct async processes has been
> improved. Could you pls check, whether this helps also in your case?
It does look fixed. This is great, thank you!
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#71050: Tramp's direct-async-process makes remote IRB be missing prompt and duplicate input
2024-06-03 11:35 ` Dmitry Gutov
@ 2024-06-03 13:35 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-06-03 13:35 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: 71050
Dmitry Gutov <dmitry@gutov.dev> writes:
> Hi Michael,
Hi Dmitry,
>> Due to bug#71259, handling of tty in direct async processes has been
>> improved. Could you pls check, whether this helps also in your case?
>
> It does look fixed. This is great, thank you!
Thanks. I'll merge both bugs.
Best regards, Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-06-03 13:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-19 0:46 bug#71050: Tramp's direct-async-process makes remote IRB be missing prompt and duplicate input Dmitry Gutov
2024-06-03 11:23 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-03 11:35 ` Dmitry Gutov
2024-06-03 13:35 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).