|
From: | Katz, Dan |
Subject: | [h-e-w] Trouble with TRAMP temp files under Windows 7 |
Date: | Tue, 3 Jan 2012 16:49:53 +0000 |
Hi – When I try to access an FTP site through TRAMP on Windows 7, I see problems with temp file deletion. The odd thing, though, is that this problem happens on some FTP directories and not others. For instance, I might start by accessing
“/ftp:address@hidden:/” and get the expected dired view of the world: =================================================================================== /ftp:address@hidden:/: drwxr-xr-x 10 0 0 4096 Sep 27 21:03 . drwxr-xr-x 10 0 0 4096 Sep 27 21:03 .. -rw-r--r-- 1 0 0 580 Aug 17 2004 .message lrwxrwxrwx 1 0 0 8 Aug 20 2004 CRYPTO.README -> .message -rw-r--r-- 1 0 0 17864 Oct 23 2003 MISSING-FILES -rw-r--r-- 1 0 0 4178 Aug 13 2003 MISSING-FILES.README -rw-r--r-- 1 0 0 1765 Feb 20 2007 README -rw-r--r-- 1 0 0 405121 Oct 23 2003 before-2003-08-01.md5sums.asc -rw-r--r-- 1 0 0 182032 Jan 03 11:25 find.txt.gz drwxrwxr-x 284 0 3003 12288 Oct 11 19:00 gnu drwxrwxr-x 3 0 3003 4096 Mar 10 2011 gnu+linux-distros -rw-r--r-- 1 0 0 350667 Jan 03 11:25 ls-lrRt.txt.gz drwxr-xr-x 3 0 0 4096 Apr 20 2005 mirrors lrwxrwxrwx 1 0 0 11 Apr 15 2004 non-gnu -> gnu/non-gnu drwxr-xr-x 81 0 0 4096 Jan 07 2011 old-gnu lrwxrwxrwx 1 0 0 1 Aug 05 2003 pub -> . drwxr-xr-x 2 0 0 4096 Nov 08 2007 savannah drwxr-xr-x 2 0 0 4096 Aug 02 2003 third-party drwxr-xr-x 2 0 0 4096 Apr 07 2009 tmp drwxr-xr-x 2 0 0 4096 Jun 02 2011 video -rw-r--r-- 1 0 0 954 Aug 13 2003 welcome.msg =================================================================================== This will work reliably. But if I then move the point to the entry for the “gnu” folder and hit <RET> or run dired-find-file directly, I get a permission error: =================================================================================== Debugger entered--Lisp error: (file-error "Removing old name" "permission denied" "c:/Users/dpkatz/tmp/ange-ftp2644_Lx") signal(file-error ("Removing old name" "permission denied" "c:/Users/dpkatz/tmp/ange-ftp2644_Lx")) byte-code([…bunch of control codes…] [completion localname operation filename err zerop (file-exists-p file-directory-p) t (expand-file-name file-name-as-directory) signal] 3) tramp-file-name-handler(file-exists-p "/ftp:address@hidden:/gnu/.dired") file-exists-p(".dired") dired-hack-local-variables() dired-extra-startup() run-hooks(change-major-mode-after-body-hook dired-mode-hook) apply(run-hooks (change-major-mode-after-body-hook dired-mode-hook)) run-mode-hooks(dired-mode-hook) dired-mode("/ftp:address@hidden:/gnu/" "-al") dired-internal-noselect("/ftp:address@hidden:/gnu/" nil) dired-noselect("/ftp:address@hidden:/gnu") run-hook-with-args-until-success(dired-noselect "/ftp:address@hidden:/gnu") find-file-noselect("/ftp:address@hidden:/gnu" nil nil nil) find-file("/ftp:address@hidden:/gnu") dired-find-file() call-interactively(dired-find-file t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) =================================================================================== This is also reliable, in the sense that I will get this error every time. Note that the contents of the temp file being deleted seem perfectly reasonable (i.e. they look like the correct and complete dired listing for the “gnu” folder).
Also note that if I navigate over to the temp directory manually, I absolutely CAN delete the file in question via dired. But not every subfolder causes problems – e.g. trying to dired-find-file on the “mirrors” folder works fine: =================================================================================== /ftp:address@hidden:/mirrors: drwxr-xr-x 3 0 0 4096 Apr 20 2005 . drwxr-xr-x 10 0 0 4096 Sep 27 21:03 .. dr-xrwxr-x 2 3003 3003 4096 Oct 05 15:13 dynebolic =================================================================================== Finally, this does seem to be a Windows 7 issue. I’ve tried both Emacs 23.3.1 and Emacs24 pre-release(24.0.92.1) on Windows 7, and both have this problem. I’ve tried both of those versions of emacs on Windows XP and both work fine. In
fact, they even work fine under Windows XP when XP is running as a VM under Windows 7! (I’m afraid that I don’t have Windows Vista available here to check, so I don’t know what’s going on in that version intermediate between XP and W7). Does this ring a bell with anybody? Any known oddities about the FS in Windows 7 that I should be tweaking to get TRAMP to work? Thanks. Dan P.S. I have, of course, done some hunting around for this error on Windows, but most of what I’ve found refers to peculiarities of cygwin. I’m using the native
ftp.exe client underneath all this. P.P.S. Sorry if this is a FAQ. I will happily RTFM if someone will kindly point me to TFM… The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Bain Capital, LLC Boston, MA USA +1 (617) 516 2000 |
[Prev in Thread] | Current Thread | [Next in Thread] |