From unknown Sat Aug 16 14:31:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20242: 24.5; compilation-mode and tramp interaction bug Resent-From: David Hull Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Apr 2015 17:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20242 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20242@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.142790995324458 (code B ref -1); Wed, 01 Apr 2015 17:40:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Apr 2015 17:39:13 +0000 Received: from localhost ([127.0.0.1]:42650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdMbg-0006MP-66 for submit@debbugs.gnu.org; Wed, 01 Apr 2015 13:39:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59904) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdMbd-0006MB-O2 for submit@debbugs.gnu.org; Wed, 01 Apr 2015 13:39:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdMbX-0002Od-2U for submit@debbugs.gnu.org; Wed, 01 Apr 2015 13:39:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdMbX-0002OU-0D for submit@debbugs.gnu.org; Wed, 01 Apr 2015 13:39:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdMbV-0005YM-Hg for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 13:39:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdMbS-0002Ma-7A for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 13:39:01 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:32926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdMbR-0002MO-TV for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 13:38:58 -0400 Received: by pacgg7 with SMTP id gg7so58435617pac.0 for ; Wed, 01 Apr 2015 10:38:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=olhNHShWNRlSlVALeH6oqxKycLzLah3unJNuaZiCdZo=; b=AE/Ha+k6w3kDYIEftpORp14TPuvo8zg1oAVA0pyVdSfRP8GeieGMQGSJLdOe0k9py+ 2mMtngoeN+u4waTQqxy/PWm9a2vgJVrl+ti0V3y6UOu3ym9bAGl89YpqdLyPrUsoxE8J TsY7JKuWS4sm2/5OrGgiyS1sWbExTJtYpBQyy4XsT48jTKciIzL3Dmsm5cwMG/aN/eQu cIGSuDB6nYxLvfifA3bGRuWydMIoSitEUNJ/IX6nzWkgv+3F1ORzvxTN8qAKrqfrJgpE NoFUZ4WSQ4DIdPe0UY/GDnglGRMdFnsabviYVohJF49LcDDhTcOKkv6Z+mPMbkDKWQZW Y9Zg== X-Gm-Message-State: ALoCoQlHc2Khg2RE1Q0r+6Mea4nXLSXMfYrJOaqMXcgiDWoiWc6qFjOjQAdSFfJJd2YOg0/X6baP X-Received: by 10.66.66.196 with SMTP id h4mr78572579pat.127.1427909936551; Wed, 01 Apr 2015 10:38:56 -0700 (PDT) Received: from mbp-109-op-04.corp.openx.com ([206.169.198.1]) by mx.google.com with ESMTPSA id gl2sm2716852pbc.52.2015.04.01.10.38.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 10:38:55 -0700 (PDT) From: David Hull Date: Wed, 01 Apr 2015 10:38:31 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I believe that there is a bug in the interaction between compilation-mode and tramp. This bug exists in 24.5rc1, but also exists in the previous emacs version, 24.4.1. This is the situation: I am running emacs on a Mac. On the Mac, "/var" is a symlink to "private/var". I am using tramp to visit a project on a CentOS 6 VM. The project on the VM is in "/var/home/david.hull/src/ds-advertiser-server/src". I run "M-x compile", and run "make -k" as the compilation command. Compile creates a "*compilation*" buffer with the error messages. Here are the partial contents, prefixed with ">": > -*- mode: compilation; default-directory: "/scp:cos6:/var/home/david.hull/src/ds-advertiser-server/src/" -*- > Compilation started at Wed Apr 1 10:18:47 > > ds_adv_ox3_ad_v5.erl:44: syntax error before: '}' When I press Enter on this error line to run compile-goto-error, I get the following message in the minibuffer: Find this error in (default ds_adv_ox3_ad_v5.erl): /scp:cos6:/private/var/home/david.hull/src/ds-advertiser-server/src Note that the file path begins with "/private/var" instead of "/var". I believe that either compilation-mode or tramp is attempting to expand the symlinks, but is incorrectly expanding "/var" to "/private/var", which would be correct on the Mac but is incorrect on the CentOS VM. If I edit the path to remove "/private" then emacs is able to successfully open the source file and position the cursor at the line with the error. Thanks. -- David Hull In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-03-27 on builder10-9.porkrind.org Windowing system distributor `Apple', version 10.3.1344 Configured using: `configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp'' Important settings: locale-coding-system: utf-8-unix Major mode: Erlang Minor modes in effect: magit-auto-revert-mode: t shell-dirtrack-mode: t diff-auto-refine-mode: t show-paren-mode: t icomplete-mode: t dtrt-indent-mode: t which-function-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Mark set Saving file /scp:cos6:/var/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_ad_v5.erl... Copying /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.24678j1V.erl to /scp:cos6:/var/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_ad_v5.erl... Tramp: Waiting for prompts from remote shell... Tramp: Process has finished. Tramp: Waiting for prompts from remote shell...done Copying /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.24678j1V.erl to /scp:cos6:/var/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_ad_v5.erl...done Wrote /scp:cos6:/var/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_ad_v5.erl Quit [2 times] Making completion list... Load-path shadows: /Users/david.hull/.emacs.d/elpa/tabulated-list-20120406.1351/tabulated-list hides /Users/david.hull/Applications/Emacs-25.1rc1.app/Contents/Resources/lisp/emacs-lisp/tabulated-list Features: (shadow sort mail-extr emacsbug sendmail debug misearch multi-isearch vc-git tempo etags erlang tramp-sh tramp-cache mule-util magit-key-mode magit view tramp cl-macs cl gv tramp-compat auth-source gnus-util password-cache tramp-loaddefs trampver shell pcomplete help-mode grep compile comint epa derived epg diff-mode autorevert filenotify ansi-color git-rebase-mode thingatpt git-commit-mode server log-edit message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader ring pcvs-util add-log paren eieio byte-opt bytecomp byte-compile cl-extra cl-loaddefs cl-lib cconv eieio-core info easymenu protobuf-mode-autoloads thrift-autoloads unbound-autoloads icomplete dtrt-indent advice help-fns easy-mmode which-func imenu package epg-config time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 204500 21401) (symbols 48 28308 0) (miscs 40 269 466) (strings 32 50267 4851) (string-bytes 1 1423905) (vectors 16 24983) (vector-slots 8 732657 8353) (floats 8 1299 66) (intervals 56 3140 281) (buffers 960 25)) From unknown Sat Aug 16 14:31:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20242: 24.5; compilation-mode and tramp interaction bug Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Apr 2015 09:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20242 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: David Hull Cc: 20242@debbugs.gnu.org Received: via spool by 20242-submit@debbugs.gnu.org id=B20242.142831231927430 (code B ref 20242); Mon, 06 Apr 2015 09:26:01 +0000 Received: (at 20242) by debbugs.gnu.org; 6 Apr 2015 09:25:19 +0000 Received: from localhost ([127.0.0.1]:45860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yf3HS-00078M-Vp for submit@debbugs.gnu.org; Mon, 06 Apr 2015 05:25:19 -0400 Received: from mout.gmx.net ([212.227.15.19]:55421) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yf3HQ-000786-Fy for 20242@debbugs.gnu.org; Mon, 06 Apr 2015 05:25:18 -0400 Received: from detlef.gmx.de ([87.146.48.150]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Lb4vZ-1Z86d51HIH-00kc0Q; Mon, 06 Apr 2015 11:25:10 +0200 From: Michael Albinus References: Date: Mon, 06 Apr 2015 11:25:09 +0200 In-Reply-To: (David Hull's message of "Wed, 01 Apr 2015 10:38:31 -0700") Message-ID: <87r3rxsj62.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:Ig2j9Hz3n8l9DGdsHW21Km87hToMs/hpQn5c+Ph3GyOHl0k0wT+ h8HaP9PvSWX0qYhsx6xTFFzeqUYbQad8HHcR6yjWBaV91OQDKnqkb3hp8GfHA/CDZyreCLf AQB3EAt/JUrf1bdKpnkGNjntQISkscfAvHoaE2q11V86rJgEiMjE8Dx/iA9SO8OlEWMqQ+X 5CvsX4mtAJ5j/PmmeHRDw== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) David Hull writes: Hi David, > I believe that there is a bug in the interaction between > compilation-mode and tramp. This bug exists in 24.5rc1, but also exists > in the previous emacs version, 24.4.1. This is the situation: > > I am running emacs on a Mac. On the Mac, "/var" is a symlink to > "private/var". > > I am using tramp to visit a project on a CentOS 6 VM. The project on > the VM is in "/var/home/david.hull/src/ds-advertiser-server/src". > > I run "M-x compile", and run "make -k" as the compilation command. > Compile creates a "*compilation*" buffer with the error messages. Here > are the partial contents, prefixed with ">": > >> -*- mode: compilation; default-directory: >> "/scp:cos6:/var/home/david.hull/src/ds-advertiser-server/src/" -*- >> Compilation started at Wed Apr 1 10:18:47 >> >> ds_adv_ox3_ad_v5.erl:44: syntax error before: '}' > > When I press Enter on this error line to run compile-goto-error, I get > the following message in the minibuffer: > > Find this error in (default ds_adv_ox3_ad_v5.erl): > /scp:cos6:/private/var/home/david.hull/src/ds-advertiser-server/src > > Note that the file path begins with "/private/var" instead of "/var". I > believe that either compilation-mode or tramp is attempting to expand > the symlinks, but is incorrectly expanding "/var" to "/private/var", > which would be correct on the Mac but is incorrect on the CentOS VM. I cannot reproduce the error, neither with Emacs 24.5 RC3, nor with Emacs 25.0.50. I have applied the following steps: - On the local machine: mkdir /tmp/foo ln -s /tmp/foo /foo - On the remote machine: mkdir /foo echo "(require 'foo)" >/foo/foo.el - Then I have opened /scp:machine:/foo/foo.el. I have applied "M-x compile RET emacs --no-site-file -batch -l bytecomp -f batch-byte-compile foo.el". The result was the *compilation* buffer --8<---------------cut here---------------start------------->8--- -*- mode: compilation; default-directory: "/scp:machine:/foo/" -*- Compilation started at Mon Apr 6 11:18:14 emacs --no-site-file -batch -l bytecomp -f batch-byte-compile foo.el In toplevel form: foo.el:1:1:Error: Cannot open load file: foo Compilation exited abnormally with code 1 at Mon Apr 6 11:18:15 --8<---------------cut here---------------end--------------->8--- When I apply "M-x compile-goto-error" on the error line, file /scp:machine:/foo/foo.el is opened as expected. Maybe you have some nasty local settings? Could you reproduce the problem when starting "emacs -Q"? > Thanks. Best regards, Michael. From unknown Sat Aug 16 14:31:36 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: David Hull Subject: bug#20242: closed (Re: bug#20242: 24.5; compilation-mode and tramp interaction bug) Message-ID: References: <87oa4r20mr.fsf@gmx.de> X-Gnu-PR-Message: they-closed 20242 X-Gnu-PR-Package: emacs Reply-To: 20242@debbugs.gnu.org Date: Wed, 17 Aug 2016 09:42:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1471426922-32238-1" This is a multi-part message in MIME format... ------------=_1471426922-32238-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #20242: 24.5; compilation-mode and tramp interaction bug which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 20242@debbugs.gnu.org. --=20 20242: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20242 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1471426922-32238-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 20242-done) by debbugs.gnu.org; 17 Aug 2016 09:41:44 +0000 Received: from localhost ([127.0.0.1]:59781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZxM0-0008NT-H5 for submit@debbugs.gnu.org; Wed, 17 Aug 2016 05:41:44 -0400 Received: from mout.gmx.net ([212.227.15.19]:55584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZxLy-0008NG-P7 for 20242-done@debbugs.gnu.org; Wed, 17 Aug 2016 05:41:43 -0400 Received: from detlef.gmx.de ([87.146.48.158]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M9JYE-1bSmsy2XNe-00CiLS; Wed, 17 Aug 2016 11:41:34 +0200 From: Michael Albinus To: David Hull Subject: Re: bug#20242: 24.5; compilation-mode and tramp interaction bug References: <87r3rxsj62.fsf@gmx.de> Date: Wed, 17 Aug 2016 11:41:32 +0200 In-Reply-To: <87r3rxsj62.fsf@gmx.de> (Michael Albinus's message of "Mon, 06 Apr 2015 11:25:09 +0200") Message-ID: <87oa4r20mr.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:3SlXBQNhzD5nfRgIgIPa3mC02uxHOsLA5Ac7RP4uIt2H0Swm6jl MqpV0kPvGBcDMp4jdGAZ92gDvqP2qtoLakPY0Q9GGGv4FUXI0KRGkSJcZQYFvJoMVfgsLgA xg8TGg80md7MOKbf2vGAc96GMKQS15PGe/+yjbIsSKD0nh+C1Gz4l3PsJ81BqdRO1dgjUOp V8QFrlqySSkTYiTJKDC5Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:uQ3h6Jf13EU=:Ue5yVkVTEkOaE+S9VNRF39 0mJzmW7YMgRXGoZdmHrjchk9wfP6Xx3xld+a2U/SCxSD0nNxqns0XrWWSIAZcI/g5PG3H1Vel TlRtwCsXWhjR+v/XxLJEmvEP+HHcoM+raKkD4TMY7e+mmZ5Q+9gU7+F3A0UxMjeB+g3xt3B6F bmyaJixooH4sGe3COLPJ5A5gq9FjT0XmhUAO8qwPLwD+w0aSIAHvgjALkKVFP/ARlW2X2HDIM UhR6zevkHxGoUXeA8bhla7iycbd1YQDmiOF8HKqPlCfF6ukILI6OZtPk4+l5+0WNjwM4IGtMt pCMaiz0USiIExR630JT96N2lYS8Gclcrjx9F7lUMek7dB235qPghrDP9yTQpwMdx6wEmvo5ar DkVF7fdz+JfBjQMHwl81fxYPmyvn99/LmOCQHsdJAIpgaFpHdqF8r5N2OhEl8roq3579iAX62 q2L3jD7A6btCzPz6lkAjhIUED/6a3ow9pYw9djR0ox6T4UHSA6Zmtvf7KvZGYkpQqppRejbFT bKRFxz06/bHqmfufrsnBwwwiQqvKYMYeUDB1ydnE5EBDL02hB+eP/AHd9pnvEeKgFWj9OeGfB la8sCclyvdwYV5myDmy7mF+g/cw4iSOU3DW76ko9ZiiuxF0Rqrq7lxh2ZkhDd40a0k4U/KiYc micoVsBaGXoaV0drT7L2JvHZqBhqtdmYSAVq5uNjEm4FP/Lj4BwJmlwUd7F+cwzaSTiGGfl9H A9pZ90FyHxZhFx56TlolezBfNIl4ohDmsiSoti09Xeb4aTGz16qYUNobfvAGtY9cd462C7tNy ds6V7Rv X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20242-done Cc: 20242-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Michael Albinus writes: Hi David, >> I believe that there is a bug in the interaction between >> compilation-mode and tramp. This bug exists in 24.5rc1, but also exists >> in the previous emacs version, 24.4.1. This is the situation: >> >> I am running emacs on a Mac. On the Mac, "/var" is a symlink to >> "private/var". >> >> I am using tramp to visit a project on a CentOS 6 VM. The project on >> the VM is in "/var/home/david.hull/src/ds-advertiser-server/src". >> >> I run "M-x compile", and run "make -k" as the compilation command. >> Compile creates a "*compilation*" buffer with the error messages. Here >> are the partial contents, prefixed with ">": >> >>> -*- mode: compilation; default-directory: >>> "/scp:cos6:/var/home/david.hull/src/ds-advertiser-server/src/" -*- >>> Compilation started at Wed Apr 1 10:18:47 >>> >>> ds_adv_ox3_ad_v5.erl:44: syntax error before: '}' >> >> When I press Enter on this error line to run compile-goto-error, I get >> the following message in the minibuffer: >> >> Find this error in (default ds_adv_ox3_ad_v5.erl): >> /scp:cos6:/private/var/home/david.hull/src/ds-advertiser-server/src >> >> Note that the file path begins with "/private/var" instead of "/var". I >> believe that either compilation-mode or tramp is attempting to expand >> the symlinks, but is incorrectly expanding "/var" to "/private/var", >> which would be correct on the Mac but is incorrect on the CentOS VM. > > I cannot reproduce the error, neither with Emacs 24.5 RC3, nor with > Emacs 25.0.50. I have applied the following steps: > > - On the local machine: > > mkdir /tmp/foo > ln -s /tmp/foo /foo > > - On the remote machine: > > mkdir /foo > echo "(require 'foo)" >/foo/foo.el > > - Then I have opened /scp:machine:/foo/foo.el. I have applied "M-x compile RET > emacs --no-site-file -batch -l bytecomp -f batch-byte-compile foo.el". > > The result was the *compilation* buffer > > -*- mode: compilation; default-directory: "/scp:machine:/foo/" -*- > Compilation started at Mon Apr 6 11:18:14 > > emacs --no-site-file -batch -l bytecomp -f batch-byte-compile foo.el > > In toplevel form: > foo.el:1:1:Error: Cannot open load file: foo > > Compilation exited abnormally with code 1 at Mon Apr 6 11:18:15 > > When I apply "M-x compile-goto-error" on the error line, file > /scp:machine:/foo/foo.el is opened as expected. > > Maybe you have some nasty local settings? Could you reproduce the > problem when starting "emacs -Q"? There hasn't been a reaction for more than a year. I'm closing the bug; feel free to reopen if there are more evidences. Best regards, Michael. ------------=_1471426922-32238-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Apr 2015 17:39:13 +0000 Received: from localhost ([127.0.0.1]:42650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdMbg-0006MP-66 for submit@debbugs.gnu.org; Wed, 01 Apr 2015 13:39:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59904) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdMbd-0006MB-O2 for submit@debbugs.gnu.org; Wed, 01 Apr 2015 13:39:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdMbX-0002Od-2U for submit@debbugs.gnu.org; Wed, 01 Apr 2015 13:39:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdMbX-0002OU-0D for submit@debbugs.gnu.org; Wed, 01 Apr 2015 13:39:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdMbV-0005YM-Hg for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 13:39:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdMbS-0002Ma-7A for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 13:39:01 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:32926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdMbR-0002MO-TV for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 13:38:58 -0400 Received: by pacgg7 with SMTP id gg7so58435617pac.0 for ; Wed, 01 Apr 2015 10:38:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=olhNHShWNRlSlVALeH6oqxKycLzLah3unJNuaZiCdZo=; b=AE/Ha+k6w3kDYIEftpORp14TPuvo8zg1oAVA0pyVdSfRP8GeieGMQGSJLdOe0k9py+ 2mMtngoeN+u4waTQqxy/PWm9a2vgJVrl+ti0V3y6UOu3ym9bAGl89YpqdLyPrUsoxE8J TsY7JKuWS4sm2/5OrGgiyS1sWbExTJtYpBQyy4XsT48jTKciIzL3Dmsm5cwMG/aN/eQu cIGSuDB6nYxLvfifA3bGRuWydMIoSitEUNJ/IX6nzWkgv+3F1ORzvxTN8qAKrqfrJgpE NoFUZ4WSQ4DIdPe0UY/GDnglGRMdFnsabviYVohJF49LcDDhTcOKkv6Z+mPMbkDKWQZW Y9Zg== X-Gm-Message-State: ALoCoQlHc2Khg2RE1Q0r+6Mea4nXLSXMfYrJOaqMXcgiDWoiWc6qFjOjQAdSFfJJd2YOg0/X6baP X-Received: by 10.66.66.196 with SMTP id h4mr78572579pat.127.1427909936551; Wed, 01 Apr 2015 10:38:56 -0700 (PDT) Received: from mbp-109-op-04.corp.openx.com ([206.169.198.1]) by mx.google.com with ESMTPSA id gl2sm2716852pbc.52.2015.04.01.10.38.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 10:38:55 -0700 (PDT) From: David Hull To: bug-gnu-emacs@gnu.org Subject: 24.5; compilation-mode and tramp interaction bug Date: Wed, 01 Apr 2015 10:38:31 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I believe that there is a bug in the interaction between compilation-mode and tramp. This bug exists in 24.5rc1, but also exists in the previous emacs version, 24.4.1. This is the situation: I am running emacs on a Mac. On the Mac, "/var" is a symlink to "private/var". I am using tramp to visit a project on a CentOS 6 VM. The project on the VM is in "/var/home/david.hull/src/ds-advertiser-server/src". I run "M-x compile", and run "make -k" as the compilation command. Compile creates a "*compilation*" buffer with the error messages. Here are the partial contents, prefixed with ">": > -*- mode: compilation; default-directory: "/scp:cos6:/var/home/david.hull/src/ds-advertiser-server/src/" -*- > Compilation started at Wed Apr 1 10:18:47 > > ds_adv_ox3_ad_v5.erl:44: syntax error before: '}' When I press Enter on this error line to run compile-goto-error, I get the following message in the minibuffer: Find this error in (default ds_adv_ox3_ad_v5.erl): /scp:cos6:/private/var/home/david.hull/src/ds-advertiser-server/src Note that the file path begins with "/private/var" instead of "/var". I believe that either compilation-mode or tramp is attempting to expand the symlinks, but is incorrectly expanding "/var" to "/private/var", which would be correct on the Mac but is incorrect on the CentOS VM. If I edit the path to remove "/private" then emacs is able to successfully open the source file and position the cursor at the line with the error. Thanks. -- David Hull In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-03-27 on builder10-9.porkrind.org Windowing system distributor `Apple', version 10.3.1344 Configured using: `configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp'' Important settings: locale-coding-system: utf-8-unix Major mode: Erlang Minor modes in effect: magit-auto-revert-mode: t shell-dirtrack-mode: t diff-auto-refine-mode: t show-paren-mode: t icomplete-mode: t dtrt-indent-mode: t which-function-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Mark set Saving file /scp:cos6:/var/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_ad_v5.erl... Copying /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.24678j1V.erl to /scp:cos6:/var/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_ad_v5.erl... Tramp: Waiting for prompts from remote shell... Tramp: Process has finished. Tramp: Waiting for prompts from remote shell...done Copying /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.24678j1V.erl to /scp:cos6:/var/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_ad_v5.erl...done Wrote /scp:cos6:/var/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_ad_v5.erl Quit [2 times] Making completion list... Load-path shadows: /Users/david.hull/.emacs.d/elpa/tabulated-list-20120406.1351/tabulated-list hides /Users/david.hull/Applications/Emacs-25.1rc1.app/Contents/Resources/lisp/emacs-lisp/tabulated-list Features: (shadow sort mail-extr emacsbug sendmail debug misearch multi-isearch vc-git tempo etags erlang tramp-sh tramp-cache mule-util magit-key-mode magit view tramp cl-macs cl gv tramp-compat auth-source gnus-util password-cache tramp-loaddefs trampver shell pcomplete help-mode grep compile comint epa derived epg diff-mode autorevert filenotify ansi-color git-rebase-mode thingatpt git-commit-mode server log-edit message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader ring pcvs-util add-log paren eieio byte-opt bytecomp byte-compile cl-extra cl-loaddefs cl-lib cconv eieio-core info easymenu protobuf-mode-autoloads thrift-autoloads unbound-autoloads icomplete dtrt-indent advice help-fns easy-mmode which-func imenu package epg-config time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 204500 21401) (symbols 48 28308 0) (miscs 40 269 466) (strings 32 50267 4851) (string-bytes 1 1423905) (vectors 16 24983) (vector-slots 8 732657 8353) (floats 8 1299 66) (intervals 56 3140 281) (buffers 960 25)) ------------=_1471426922-32238-1-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 17 05:43:04 2016 Received: (at control) by debbugs.gnu.org; 17 Aug 2016 09:43:04 +0000 Received: from localhost ([127.0.0.1]:59788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZxNH-0008Q8-Rt for submit@debbugs.gnu.org; Wed, 17 Aug 2016 05:43:04 -0400 Received: from mout.gmx.net ([212.227.15.18]:62240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZxNG-0008Pe-Gw for control@debbugs.gnu.org; Wed, 17 Aug 2016 05:43:02 -0400 Received: from detlef.gmx.de ([87.146.48.158]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LsCAp-1bBfWJ0jsd-013zYo for ; Wed, 17 Aug 2016 11:42:56 +0200 Date: Wed, 17 Aug 2016 11:42:55 +0200 Message-Id: <87mvkb20kg.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #20242 X-Provags-ID: V03:K0:aHwlraU1a7aD3WyXIIyJ5X3jWC5ueNXZMN4lug7vppl3mbNhpdd 3LCswN+0VWcooLqYDvkYgRVEu/OJW90v12DQRIAIRdIMQSHXjY0VuCCau0bHZVkGDjZY9oY t2fw2KleHva1j5ScfZG1WEskIjTM+Qi3+fGvzPjZ9dxfDZPYxdqvGnKm85WW2Xwt1X6R3ux qjNUkE0nIlUDjz3uukfSQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:JkynGv3iUqM=:QmYP6EezSfLKMT6p3S+RpY COuKm+jZgzeM/BGr5FiGB50HcU3hABKaVkW512Z8336tHPHFPwmclSsrV6I8qywy6vjivuzg1 LWaAGWPx7tls4dDKies0Fgf58HXvCFFThdSN9n9YJv6m0zWrxff8zc6dg3J0xWJnUvmuDQGOF 0zJ34T3NGfAacVEqk9HZpnyjDxY6BkqbkBAo4oorVtiGCahU9iOwQ0xFrfM1raEzZwu0ac6+W vzCxnTwvH1C1vVcvj5FQN900WRHq25XAQ+veCPazaFqcTMQh3NLcp5+SbT4qcpSAKcY3lb1D+ r6BX9JTBOVLWYaMv6ck6oxbycq857GdeDaMCzMTuOEQYnwMdKw1rlKXXKnep6JenpTBvVRSI3 eRb4rPjIWmWw7vZf5vvN+bt6IzdPJaYjP9GHGnNH+sQFQBH9cRHefDWzBfC82YTmIfNCbA6+B /LI98rEB5dqqcUvE+RC84jZNyW4G5ZDwOIJESyeIAdatGHxznyvgov6CNDVFhaOE78B4eQkFi 1304S0X75ZMj5aN3SO9OzpsP8oMEui/WVzztNUFj+qQJCR13KYZY0nRImOJR/L/zRwprAIBT/ An902iOBhecdIu66X4otszV3yNEdgvRX/EQNUQjkTXjw66CeWAcAYZDu11iviAW69wGxgldks i9orAmD2gjrHpYVuptCt2wWiXUtPn9grZlADJaUKOTkKPtkCHiwQ20OMca6SOQANK1g3mkOE8 qmz0eRKFT/VZaRv04irx9jDcbovuuEtCGKnFIKBKg0vz4u9wutgIzKkerXo= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tags 20242 unreproducible