From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hull Newsgroups: gmane.emacs.bugs Subject: bug#20242: 24.5; compilation-mode and tramp interaction bug Date: Wed, 01 Apr 2015 10:38:31 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427910023 14310 80.91.229.3 (1 Apr 2015 17:40:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 17:40:23 +0000 (UTC) To: 20242@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 01 19:40:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YdMcd-0007Vm-6d for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 19:40:11 +0200 Original-Received: from localhost ([::1]:54335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdMcc-0005bl-Ca for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 13:40:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdMcY-0005aD-E4 for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 13:40:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdMcU-0003DW-Vg for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 13:40:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdMcU-0003Ct-SL for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 13:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YdMcU-0006Nb-56 for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 13:40:02 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142790995324458 (code B ref -1); Wed, 01 Apr 2015 17:40:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Apr 2015 17:39:13 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101123 Archived-At: 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))