From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt McClure Newsgroups: gmane.emacs.bugs Subject: bug#12340: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" Date: Mon, 3 Sep 2012 12:34:12 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1346690688 23648 80.91.229.3 (3 Sep 2012 16:44:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Sep 2012 16:44:48 +0000 (UTC) To: 12340@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 03 18:44:46 2012 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 1T8ZlU-0003AB-Et for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Sep 2012 18:44:44 +0200 Original-Received: from localhost ([::1]:32814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8ZlR-0004Th-Ok for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Sep 2012 12:44:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8ZlJ-00049w-FZ for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 12:44:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8ZlE-00086Z-RD for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 12:44:33 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8ZlE-00086V-NM for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 12:44:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T8Zmj-000230-Nf for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 12:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matt McClure Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Sep 2012 16:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12340 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.13466907217816 (code B ref -1); Mon, 03 Sep 2012 16:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Sep 2012 16:45:21 +0000 Original-Received: from localhost ([127.0.0.1]:36575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T8Zm5-000220-0H for submit@debbugs.gnu.org; Mon, 03 Sep 2012 12:45:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39283) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T8Zm1-00021s-TZ for submit@debbugs.gnu.org; Mon, 03 Sep 2012 12:45:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8ZkO-0007no-IE for submit@debbugs.gnu.org; Mon, 03 Sep 2012 12:43:44 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:41695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8ZkO-0007ng-Ed for submit@debbugs.gnu.org; Mon, 03 Sep 2012 12:43:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8ZkM-00044c-TG for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 12:43:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8ZkH-0007mi-V2 for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 12:43:34 -0400 Original-Received: from mail-ie0-f169.google.com ([209.85.223.169]:43082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8ZbK-0005SM-0x for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 12:34:14 -0400 Original-Received: by iec9 with SMTP id 9so4252143iec.0 for ; Mon, 03 Sep 2012 09:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Le1x6S6zegjAWDpGZEUbMP615f1pkyqklkqMlngaIhc=; b=KRH7TfCCGl1wtenh4XorRrJNV4EJk4FeGhYJhq9ezFUKhvdI1QmDokPVRpy9+um97n fmqwUxjhDdNSgBuokUU2de+EwZ8MxQY9vUYx1ujBaXe9J+EqixKm2d4/lviqXTccHqcp uky7zgQ0AoYKpdMHQD9xbyKdfeAYyVeE/TRe7P+5CjbJ+FZgUF+oFxxxNlnPgW6VAUER 5aEEfYOaWhf3cvj4mkILTKlLPUBraUnuZ7FTc/gOJcHfg8fj/nKThKsPW8JxsNnNwNJ0 KuOk6A1jRe1wxEL15rQrIuc+dWiEzPdAJfwdhYoMTtvpxz7HqOdS3nDuSVVhCJNvJGmH ZGAQ== Original-Received: by 10.50.236.65 with SMTP id us1mr11244824igc.17.1346690052931; Mon, 03 Sep 2012 09:34:12 -0700 (PDT) Original-Received: by 10.50.154.225 with HTTP; Mon, 3 Sep 2012 09:34:12 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:63714 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': *** To reproduce: $ open -n -a Emacs --args -Q --no-site-file --eval '(progn (find-file "/@:~/.py") (python-shell-switch-to-shell))' RET n (or y) The *Python* buffer contains: Python 2.4.3 (#1, Jun 18 2012, 08:55:23) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> Traceback (most recent call last): File "", line 1, in ? IOError: [Errno 2] No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT' >>> Traceback (most recent call last): File "", line 1, in ? IOError: [Errno 2] No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333TdZ' >>> Traceback (most recent call last): File "", line 1, in ? IOError: [Errno 2] No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333gnf' >>> Looks to me as though python.el and TRAMP need to use the temporary directory on the remote machine rather than the local machine. I'm able to reproduce the defect in Emacs-2012-07-14-109087-universal-10.6.8 at least through Emacs-2012-08-28-109798-universal-10.6.8 but not in Emacs-2012-06-08-108519-universal-10.6.8. In Emacs-2012-06-08-108519-universal-10.6.8 the equivalent recipe to get to a Python shell is: open -n -a Emacs --args -Q --no-site-file --eval '(progn (find-file "/vagrant@192.168.33.2:~/hello.py") (python-switch-to-python nil))' *** If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /Applications/Emacs.app/Contents/Resources/etc/DEBUG. In GNU Emacs 24.2.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-08-28 on bob.porkrind.org Bzr revision: 109798 dmantipov@yandex.ru-20120828062008-t2jfhu5niq9upru9 Windowing system distributor `Apple', version 10.3.1138 Configured using: `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin' '--with-ns' 'build_alias=i686-apple-darwin' 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.5'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Inferior Python Minor modes in effect: compilation-shell-minor-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-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 line-number-mode: t transient-mark-mode: t Recent input: n C-x h w x r e p o r t Recent messages: Tramp: Waiting for prompts from remote shell Tramp: Sending command `exec ssh -q -l vagrant -o ControlPath=/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/tramp.623335IN.%r@%h:%p -o ControlMaster=yes -e none 192.168.33.2' Tramp: Found remote shell prompt on `192.168.33.2' Tramp: Opening connection for vagrant@192.168.33.2 using scpc...done Sent python-shell-completion-setup-code Sent python-ffap-setup-code Sent python-eldoc-setup-code Mark set [2 times] delete-backward-char: Text is read-only Load-path shadows: None found. Features: (shadow sort mail-extr misearch multi-isearch emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils compile python rx easymenu tramp-cache tramp-sh tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv macroexp gnus-util mm-util mail-prsvr password-cache tramp-loaddefs shell pcomplete comint ansi-color ring format-spec advice help-fns advice-preload time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-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 loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) -- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure