From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Duncan Greatwood Newsgroups: gmane.emacs.bugs Subject: bug#38718: Emacs `compile' command does not handle remote (over TRAMP) file name correctly Date: Sun, 22 Dec 2019 21:05:08 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000507ef2059a57f977" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="60749"; mail-complaints-to="usenet@blaine.gmane.org" To: 38718@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 23 07:44:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ijHRv-000Fck-G9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Dec 2019 07:44:15 +0100 Original-Received: from localhost ([::1]:54006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijHRu-0000Wm-AX for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Dec 2019 01:44:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51355) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijHRk-0000Ug-WB for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2019 01:44:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ijHRi-0002xy-ME for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2019 01:44:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44533) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ijHRi-0002x0-Ha for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2019 01:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ijHRi-0002VT-Fc for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2019 01:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Duncan Greatwood Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Dec 2019 06:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38718 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15770834359604 (code B ref -1); Mon, 23 Dec 2019 06:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Dec 2019 06:43:55 +0000 Original-Received: from localhost ([127.0.0.1]:50505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ijHRa-0002Up-6Q for submit@debbugs.gnu.org; Mon, 23 Dec 2019 01:43:54 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:36909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ijFuI-0008Mq-Ia for submit@debbugs.gnu.org; Mon, 23 Dec 2019 00:05:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38187) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijFuF-0001Wv-Lq for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2019 00:05:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ijFuD-0005Si-7w for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2019 00:05:23 -0500 Original-Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]:45101) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ijFuC-0005N3-Qb for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2019 00:05:21 -0500 Original-Received: by mail-io1-xd30.google.com with SMTP id i11so14989152ioi.12 for ; Sun, 22 Dec 2019 21:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=nIi0lNi1DeOtrqyQjnGIjlFr6TsRfmNTai90m6Llsb0=; b=UqedesaPzDStfJSE4m3vr9fLxhyTXUrJyflo0J9+tkgQK5ZS0DUC3MtqzRF71IouFL bmMG8NA83i1AKJA6fAbscHtfz7tz1ZHBIEHZBSBRMslI0SjAJ7zU1jJC+gRx9mqfhDg5 9bxc5JFN95wihjV5FYMJGpPyWxb7kbcDt06AhZfYmjRPwW/QQg/7IbHRkhwyR9dJqBOu MpGri126FXR1z+jRylILjh+JfaKd/+e37/F9dTOW5CI13irVo01bOq5r45voUcXIB7sX mjWVMFlJ17G6bjuQbOYY0Y6XiNoh/JwoDK1C9nvGex5ivZ2naLLh8LrkoLpcOjmzWfB4 iJsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nIi0lNi1DeOtrqyQjnGIjlFr6TsRfmNTai90m6Llsb0=; b=AZGnzAFwNxlyny5xLBcICafnsABikgNJsddnrS0tuVnFv8d3/W9fHqhG2Mkw1w2Edf 7TUOoGcfH709brWSxlymsboFYz87oXLSjg9T1ZKXeMmAx5w/+uyDHWrrxKWiuDWzzJbE J8zkIQlstkerYkMjENrNHMuEPw1yK4YdvvQa2Fscl1bbMGtkHnnmaMruwpc5lPnedGHo z/HCx8TU2BT5p80A0lsr43RU5WTtMfHIDaGSnjG34a/cDdIqoMCQvSK2V1QPCuote1al ybRYenV3xN1RQ/HfXpOzi7jgo6+d6ewRjlPbXvPnLQBq8lDEeECZF/jEYHmGdP2aCQP+ LCLQ== X-Gm-Message-State: APjAAAUTxSOHN4Lj8E+lqf9IIBaKq59py5mlmoZn+CunHjJKlr2SBVvF 1ysuV26C5N71vEwTHNqqLEXPt5Vj/7xmYv9mIEPJ55kd X-Google-Smtp-Source: APXvYqz/x9EUsFlMmGyggAnm66FApOVxn0QEr6VVIEDzVJLvR+mrdQbFWBFoNbVCUWUVtkUIpTeur3hD0OgrSyM99sI= X-Received: by 2002:a6b:f802:: with SMTP id o2mr19318437ioh.79.1577077519186; Sun, 22 Dec 2019 21:05:19 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Mon, 23 Dec 2019 01:43:53 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173662 Archived-At: --000000000000507ef2059a57f977 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Emacs version aside, this appears almost identical to the other bug of same name: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D38648 Using tramp, I had a remote cpp file open in a window. I pressed "C-c c", which invokes a function in my .emacs called compile-hereish, which (in this case) invokes the compile command with the remote directory containing the remote cpp. Compilation runs as expected, throwing certain cpp syntax errors. Now, if I click on the red error text in the *compilation* window, I get a prompt like: Find this error in (default ): /ssh:@:/System/Volumes/Data/ If I press enter, to confirm, I get a [No match] error I believe this may be a newly revealed issue under macos Catalina. Of possible note (especially the last), these are the mounts on local (macos) machine: $ sudo mount /dev/disk1s5 on / (apfs, local, read-only, journaled) devfs on /dev (devfs, local, nobrowse) /dev/disk1s1 on /System/Volumes/Data (apfs, local, journaled, nobrowse) /dev/disk1s4 on /private/var/vm (apfs, local, journaled, nobrowse) map auto_home on /System/Volumes/Data/home (autofs, automounted, nobrowse) Might the fix in 27.1 referenced in report #38648 need to be back-ported to 26.x? As per autogenerated report below, I am using emacs 26.2 installed via brew on macos. The remote machine is running Ubuntu and: $ ssh -V OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017 In GNU Emacs 26.2 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109)) of 2019-04-12 built on builder10-14.porkrind.org Windowing system distributor 'Apple', version 10.3.1894 Recent messages: Tramp: Encoding local file =E2=80=98/var/folders/nh/nhxs1bmd3h79lvh_z2lpfl700000gn/T/tramp.KiHs9f.cpp= =E2=80=99 using =E2=80=98(lambda (beg end) (let ((coding-system-for-write (quote binary)) (coding-system-for-read (quote binary))) (apply (quote tramp-call-process-region) (quote (tramp-file-name ssh nil nil /home//Dropbox/progs/FUSEScatterFS/sbshared/src/SB_RemCli.cpp nil)) beg end (car (split-string env GZIP=3D gzip)) t t nil (cdr (split-string env GZIP=3D gzip)))) (base64-encode-region (point-min) (point-max)))=E2=80=99...done Tramp: Decoding remote file =E2=80=98/ssh:@:/home//Dropbox/progs/FUSEScat= terFS/sbshared/src/SB_RemCli.cpp=E2=80=99 using =E2=80=98(base64 -d -i | env GZIP=3D gzip -d >%s)=E2=80=99...done Wrote /ssh:@:/home//Dropbox/progs/FUSEScatterFS/sbs= hared/src/SB_RemCli.cpp Tramp: Opening connection for @ using ssh... Tramp: Sending command =E2=80=98exec ssh -q -l -o ControlMaster= =3Dauto -o ControlPath=3D'tramp.%C' -o ControlPersist=3Dno -e none =E2=80=99 Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on =E2=80=98=E2=80=99 Tramp: Opening connection for @ using ssh...done Compilation finished Wrote /Users//.emacs.d/dotemacs-persistent-scratch.txt Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Compilation Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t global-undo-tree-mode: t undo-tree-mode: t global-auto-complete-mode: t show-paren-mode: t delete-selection-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /Users//.emacs.d/lisp/linum hides /Applications/Emacs.app/Contents/Resources/lisp/linum Features: (shadow sort mail-extr emacsbug message rmc puny seq rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils compile thingatpt linum cus-edit cus-start cus-load wid-edit cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs vc-git diff-mode easymenu make-mode dired dired-loaddefs files-x misearch multi-isearch elec-pair tramp-cmds tramp-cache tramp-sh tramp tramp-compat tramp-loaddefs trampver shell pcomplete comint ansi-color ring parse-time format-spec auth-source cl-seq eieio byte-opt bytecomp byte-compile cconv eieio-core eieio-loaddefs password-cache refill easy-mmode server persistent-todo persistent-scratch solarized-dark-theme solarized color dash advice undo-tree diff auto-complete-config auto-complete popup string-inflection paren unbound cl-macs cl gv delsel edmacro kmacro cl-loaddefs cl-lib time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 579216 42454) (symbols 48 31163 2) (miscs 40 320 1931) (strings 32 240818 5539) (string-bytes 1 2586465) (vectors 16 55106) (vector-slots 8 1767127 124118) (floats 8 330 479) (intervals 56 9362 551) (buffers 992 35)) --000000000000507ef2059a57f977 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Emacs version aside, this appears almost identical to the = other bug=C2=A0
of same name:=C2=A0https://debbugs.gnu.org/cgi/bugreport.cgi?bug= =3D38648

Using tramp, I had a remote cpp file open in a window.<= br>
I pressed "C-c c", which invokes a function in my .emacs c= alled
compile-hereish, which (in this case) invokes the compile command = with
the remote directory containing the remote cpp.

Compilation = runs as expected, throwing certain cpp syntax errors. Now,
if I click on= the red error text in the *compilation* window, I get a
prompt like:Find this error in (default <remote filename>): /ssh:<username>= ;@<hostname>:/System/Volumes/Data/<remote path to file>

= If I press enter, to confirm, I get a [No match] error

I believe thi= s may be a newly revealed issue under macos Catalina. Of
possible note (= especially the last), these are the mounts on local
(macos) machine:
=
$ sudo mount
=C2=A0 /dev/disk1s5 on / (apfs, local, read-only, journ= aled)
=C2=A0 devfs on /dev (devfs, local, nobrowse)
=C2=A0 /dev/disk1= s1 on /System/Volumes/Data (apfs, local, journaled, nobrowse)
=C2=A0 /de= v/disk1s4 on /private/var/vm (apfs, local, journaled, nobrowse) map
=C2= =A0 auto_home on /System/Volumes/Data/home (autofs, automounted, nobrowse)<= br>
Might the fix in 27.1 referenced in report #38648 need to be back-po= rted
to 26.x?

As per autogenerated report below, I am using emacs= 26.2 installed via
brew on macos.

The remote machine is running = Ubuntu and:
$ ssh -V
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n = =C2=A07 Dec 2017


In GNU Emacs 26.2 (build 1, x86_64-apple-darwin= 18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109))
=C2=A0of 2019-= 04-12 built on builder10-14.po= rkrind.org
Windowing system distributor 'Apple', version 10.= 3.1894
Recent messages:
Tramp: Encoding local file =E2=80=98/var/fold= ers/nh/nhxs1bmd3h79lvh_z2lpfl700000gn/T/tramp.KiHs9f.cpp=E2=80=99 using =E2= =80=98(lambda (beg end) (let ((coding-system-for-write (quote binary)) (cod= ing-system-for-read (quote binary))) (apply (quote tramp-call-process-regio= n) (quote (tramp-file-name ssh <username> nil <hostname> nil /h= ome/<username>/Dropbox/progs/FUSEScatterFS/sbshared/src/SB_RemCli.cpp= nil)) beg end (car (split-string env GZIP=3D gzip)) t t nil (cdr (split-st= ring env GZIP=3D gzip)))) (base64-encode-region (point-min) (point-max)))= =E2=80=99...done
Tramp: Decoding remote file=C2=A0
=E2=80=98/s= sh:<username>@<hostname>:/home/<username>/Dropbox/progs/F= USEScatterFS/sbshared/src/SB_RemCli.cpp=E2=80=99 using =E2=80=98(base64 -d = -i | env GZIP=3D gzip -d >%s)=E2=80=99...done
Wrote /ssh:<username= >@<hostname>:/home/<username>/Dropbox/progs/FUSEScatterFS/sb= shared/src/SB_RemCli.cpp
Tramp: Opening connection for <username>@= <hostname> using ssh...
Tramp: Sending command =E2=80=98exec ssh -= q -l <username> =C2=A0-o ControlMaster=3Dauto -o ControlPath=3D't= ramp.%C' -o ControlPersist=3Dno -e none <hostname>=E2=80=99
Tr= amp: Waiting for prompts from remote shell...done
Tramp: Found remote sh= ell prompt on =E2=80=98<hostname>=E2=80=99
Tramp: Opening connecti= on for <username>@<hostname> using ssh...done
Compilation fi= nished
Wrote /Users/<username>/.emacs.d/dotemacs-persistent-scratc= h.txt

Configured using:
=C2=A0'configure --with-ns '--ena= ble-locallisppath=3D/Library/Application
=C2=A0Support/Emacs/${version}/= site-lisp:/Library/Application
=C2=A0Support/Emacs/site-lisp' --with= -modules'

Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB= TOOLKIT_SCROLL_BARS NS MODULES THREADS

Important settings:
=C2= =A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix<= br>
Major mode: Compilation

Minor modes in effect:
=C2=A0 diff= -auto-refine-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 global-undo= -tree-mode: t
=C2=A0 undo-tree-mode: t
=C2=A0 global-auto-complete-mo= de: t
=C2=A0 show-paren-mode: t
=C2=A0 delete-selection-mode: t
= =C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-in= dent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 menu-bar-mode: t
= =C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2= =A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composi= tion-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-m= ode: t
=C2=A0 buffer-read-only: t
=C2=A0 column-number-mode: t
=C2= =A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Load-path s= hadows:
/Users/<username>/.emacs.d/lisp/linum hides /Applications/= Emacs.app/Contents/Resources/lisp/linum

Features:
(shadow sort ma= il-extr emacsbug message rmc puny seq rfc822 mml mml-sec
epa derived epg= epg-config gnus-util rmail rmail-loaddefs mm-decode
mm-bodies mm-encode= mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc= 2045 ietf-drums mm-util mail-prsvr mail-utils
compile thingatpt linum cu= s-edit cus-start cus-load wid-edit cc-mode
cc-fonts cc-guess cc-menus cc= -cmds cc-styles cc-align cc-engine cc-vars
cc-defs vc-git diff-mode easy= menu make-mode dired dired-loaddefs files-x
misearch multi-isearch elec-= pair tramp-cmds tramp-cache tramp-sh tramp
tramp-compat tramp-loaddefs t= rampver shell pcomplete comint ansi-color
ring parse-time format-spec au= th-source cl-seq eieio byte-opt bytecomp
byte-compile cconv eieio-core e= ieio-loaddefs password-cache refill
easy-mmode server persistent-todo pe= rsistent-scratch
solarized-dark-theme solarized color dash advice undo-t= ree diff
auto-complete-config auto-complete popup string-inflection pare= n unbound
cl-macs cl gv delsel edmacro kmacro cl-loaddefs cl-lib time-da= te tooltip
eldoc electric uniquify ediff-hook vc-hooks lisp-float-type m= wheel
term/ns-win ns-win ucs-normalize mule-util term/common-win tool-ba= r dnd
fontset image regexp-opt fringe tabulated-list replace newcomment<= br>text-mode elisp-mode lisp-mode prog-mode register page menu-bar
rfn-e= shadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax f= acemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-l= ang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp= -ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian = cyrillic chinese composite charscript charprop
case-table epa-hook jka-c= mpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice load= defs button faces cus-face macroexp files
text-properties overlay sha1 m= d5 base64 format env code-pages mule
custom widget hashtable-print-reada= ble backquote threads kqueue cocoa ns
multi-tty make-network-process ema= cs)

Memory information: ((conses 16 579216 42454) (symbols 48 31163 = 2)
(miscs 40 320 1931) (strings 32 240818 5539) (string-bytes 1 2586465)=
(vectors 16 55106) (vector-slots 8 1767127 124118) (floats 8 330 479)(intervals 56 9362 551) (buffers 992 35))
--000000000000507ef2059a57f977--