GNU bug report logs -
#71259
29.1; Tramp connection property "direct-async-process" causes job control not to work in M-x shell buffers
Previous Next
Reported by: Alex Hutcheson <alexhutcheson <at> google.com>
Date: Wed, 29 May 2024 13:57:01 UTC
Severity: normal
Found in version 29.1
Fixed in version 30.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 71259 in the body.
You can then email your comments to 71259 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71259
; Package
emacs
.
(Wed, 29 May 2024 13:57:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Alex Hutcheson <alexhutcheson <at> google.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 29 May 2024 13:57:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
To reproduce:
1. Start emacs with emacs -Q
2. Eval the following:
(require 'tramp)
;; Enable direct-async-process for all SSH connections
(add-to-list 'tramp-connection-properties
(list "/ssh:.*" "direct-async-process" t))
3. Start a Tramp SSH connection: C-x C-f /ssh:some.host.com:
4. Start a shell buffer with M-x shell. Choose sh or bash as remote
shell (haven't tested with others)
Expected behavior:
Shell buffer shows a shell on the remote host. Job control (C-c C-z),
fg, bg, etc. all work.
Actual behavior:
Shell buffer starts a shell, but shows errors at the top of the buffer:
sh: cannot set terminal process group (128765): Inappropriate ioctl for
device
sh: no job control in this shell
Shell mostly works, but job control features don't work.
C-c C-z does nothing
C-c C-c kills the shell, rather than the currently running job
fg and bg give errors like:
sh: fg: no job control
In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
version 1.18.0, Xaw3d scroll bars) of 2024-01-22, modified by Debian
built on kokoro-ubuntu
System Description: Debian GNU/Linux rodete
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM
LUCID ZLIB
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71259
; Package
emacs
.
(Thu, 30 May 2024 17:01:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 71259 <at> debbugs.gnu.org (full text, mbox):
Alex Hutcheson via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:
Hi Alex,
> Actual behavior:
>
> Shell buffer starts a shell, but shows errors at the top of the buffer:
>
> sh: cannot set terminal process group (128765): Inappropriate ioctl
> for device
> sh: no job control in this shell
>
> Shell mostly works, but job control features don't work.
> C-c C-z does nothing
> C-c C-c kills the shell, rather than the currently running job
> fg and bg give errors like:
> sh: fg: no job control
I could reproduce & fix it in recent Tramp sources. Pushed to the
repositories.
Unfortunately, the fix cannot be backported to Emacs 29 trivially. So
you might try either Emacs 30 or Tramp 2.7 from the respective git
repositories. Or you wait a little bit, until Tramp 2.7.1 appears on GNU
ELPA. Planned for end of June.
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71259
; Package
emacs
.
(Thu, 30 May 2024 17:03:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71259
; Package
emacs
.
(Thu, 30 May 2024 17:04:02 GMT)
Full text and
rfc822 format available.
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Great, thanks for the quick fix!
On Thu, May 30, 2024 at 1:00 PM Michael Albinus <michael.albinus <at> gmx.de>
wrote:
> Alex Hutcheson via "Bug reports for GNU Emacs, the Swiss army knife of
> text editors" <bug-gnu-emacs <at> gnu.org> writes:
>
> Hi Alex,
>
> > Actual behavior:
> >
> > Shell buffer starts a shell, but shows errors at the top of the buffer:
> >
> > sh: cannot set terminal process group (128765): Inappropriate ioctl
> > for device
> > sh: no job control in this shell
> >
> > Shell mostly works, but job control features don't work.
> > C-c C-z does nothing
> > C-c C-c kills the shell, rather than the currently running job
> > fg and bg give errors like:
> > sh: fg: no job control
>
> I could reproduce & fix it in recent Tramp sources. Pushed to the
> repositories.
>
> Unfortunately, the fix cannot be backported to Emacs 29 trivially. So
> you might try either Emacs 30 or Tramp 2.7 from the respective git
> repositories. Or you wait a little bit, until Tramp 2.7.1 appears on GNU
> ELPA. Planned for end of June.
>
> Best regards, Michael.
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71259
; Package
emacs
.
(Thu, 30 May 2024 17:04:03 GMT)
Full text and
rfc822 format available.
Reply sent
to
Michael Albinus <michael.albinus <at> gmx.de>
:
You have taken responsibility.
(Sun, 30 Jun 2024 07:39:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Alex Hutcheson <alexhutcheson <at> google.com>
:
bug acknowledged by developer.
(Sun, 30 Jun 2024 07:39:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 71259-done <at> debbugs.gnu.org (full text, mbox):
Version: 30.1
Michael Albinus <michael.albinus <at> gmx.de> writes:
> I could reproduce & fix it in recent Tramp sources. Pushed to the
> repositories.
>
> Unfortunately, the fix cannot be backported to Emacs 29 trivially. So
> you might try either Emacs 30 or Tramp 2.7 from the respective git
> repositories. Or you wait a little bit, until Tramp 2.7.1 appears on GNU
> ELPA. Planned for end of June.
Tramp 2.7.1 has appeared on GNU ELPA. I'm closing this bug therefore.
Best regards, Michael.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 28 Jul 2024 11:24:14 GMT)
Full text and
rfc822 format available.
This bug report was last modified 121 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.