tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tramp behavior differs in gnu and cygwin emacs


From: Frederick Bartlett
Subject: Tramp behavior differs in gnu and cygwin emacs
Date: Thu, 23 Mar 2017 09:20:53 -0400

I've been using tramp via plink in cygwin's 32-bit emacs without any trouble and recently downloaded the 64-bit version from gnu.org.

That version doesn't connect using the same setup in my .emacs:

(require 'tramp)
(set-default 'tramp-default-method "plink")
(setq tramp-remote-path (append '("<MYREMOTEPATH>"
 ) tramp-remote-path  ))
(setq shell-prompt-pattern "^[^#$%>\n]*[#$%>] *")
(set-default 'tramp-auto-save-directory "<MYLOCALPATH>")
(set-default 'tramp-default-user "<ME>")
(set-default 'tramp-default-host "<REMOTESERVER>")

When I attempt to connect, I get the message

Tramp: Opening connection for <me>@<there> using plink...
Couldn’t find local shell prompt for C:\Windows\system32\cmd.exe
Tramp: Opening connection for <me>@<there> using plink...failed
tramp-file-name-handler: Couldn’t find local shell prompt for C:\Windows\system32\cmd.exe

And yet I do get a prompt in the *tramp/plink <me>@<there>* window:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >

I've played around with shell-prompt-pattern, to no avail.

The (munged) result of setting debug to 10 is below.

Thanks!
Fred

;; GNU Emacs: 25.1.1 Tramp: 2.2.13.25.1 -*- mode: outline; -*-
;; Location: c:/bin/emacs/share/emacs/25.1/lisp/net/tramp.elc Git: nil
09:12:46.348416 tramp-get-file-property (8) # <myremotepath><myfilename> file-directory-p undef
09:12:46.349416 tramp-get-connection-property (7) # test test
09:12:46.349416 tramp-get-connection-property (7) # process-name nil
09:12:46.349416 tramp-get-connection-property (7) # process-name nil
09:12:46.349416 tramp-get-connection-property (7) # process-buffer nil
09:12:46.349416 tramp-maybe-open-connection (3) # Opening connection for <me>@<there> using plink...
09:12:46.350416 tramp-get-local-locale (7) # locale C
09:12:46.350416 tramp-get-connection-property (7) # login-args undef
09:12:46.350416 tramp-get-connection-property (7) # login-args undef
09:12:46.350416 tramp-get-connection-property (7) # process-name nil
09:12:46.350416 tramp-get-connection-property (7) # process-buffer nil
09:12:46.382617 tramp-set-connection-property (7) # vector [plink <me> <there> <myremotepath><myfilename> nil]
09:12:46.382617 tramp-maybe-open-connection (6) # C:\Windows\system32\cmd.exe
09:12:46.382617 tramp-get-connection-property (7) # vector [plink <me> <there> <myremotepath><myfilename> nil]
09:12:46.382617 tramp-get-connection-property (7) # check-remote-echo nil
09:12:46.382617 tramp-get-connection-property (7) # check-remote-echo nil
09:12:46.382617 tramp-get-connection-property (7) # gateway nil
09:12:46.460620 tramp-accept-process-output (10) # *tramp/plink <me>@<there>* run *tramp/plink <me>@<there>*
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >
09:12:46.460620 tramp-get-connection-property (7) # check-remote-echo nil
09:12:46.460620 tramp-get-connection-property (7) # check-remote-echo nil
09:12:46.460620 tramp-get-connection-property (7) # gateway nil
09:12:47.496254 tramp-accept-process-output (10) # *tramp/plink <me>@<there>* run *tramp/plink <me>@<there>*
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >
09:12:47.496254 tramp-get-connection-property (7) # check-remote-echo nil
09:12:47.496254 tramp-get-connection-property (7) # check-remote-echo nil
09:12:47.496254 tramp-get-connection-property (7) # gateway nil
09:12:48.510286 tramp-accept-process-output (10) # *tramp/plink <me>@<there>* run *tramp/plink <me>@<there>*
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >
09:12:48.510286 tramp-get-connection-property (7) # check-remote-echo nil
09:12:48.510286 tramp-get-connection-property (7) # check-remote-echo nil
09:12:48.510286 tramp-get-connection-property (7) # gateway nil
09:12:49.512718 tramp-accept-process-output (10) # *tramp/plink <me>@<there>* run *tramp/plink <me>@<there>*
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >
09:12:49.512718 tramp-get-connection-property (7) # check-remote-echo nil
09:12:49.512718 tramp-get-connection-property (7) # check-remote-echo nil
09:12:49.512718 tramp-get-connection-property (7) # gateway nil
09:12:50.546352 tramp-accept-process-output (10) # *tramp/plink <me>@<there>* run *tramp/plink <me>@<there>*
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >
09:12:50.546352 tramp-get-connection-property (7) # check-remote-echo nil
09:12:50.546352 tramp-get-connection-property (7) # check-remote-echo nil
09:12:50.546352 tramp-get-connection-property (7) # gateway nil
09:12:51.547185 tramp-accept-process-output (10) # *tramp/plink <me>@<there>* run *tramp/plink <me>@<there>*
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >
09:12:51.547185 tramp-get-connection-property (7) # check-remote-echo nil
09:12:51.547185 tramp-get-connection-property (7) # check-remote-echo nil
09:12:51.547185 tramp-get-connection-property (7) # gateway nil
09:12:52.550618 tramp-accept-process-output (10) # *tramp/plink <me>@<there>* run *tramp/plink <me>@<there>*
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >
09:12:52.550618 tramp-get-connection-property (7) # check-remote-echo nil
09:12:52.550618 tramp-get-connection-property (7) # check-remote-echo nil
09:12:52.550618 tramp-get-connection-property (7) # gateway nil
09:12:53.566854 tramp-accept-process-output (10) # *tramp/plink <me>@<there>* run *tramp/plink <me>@<there>*
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >
09:12:53.566854 tramp-get-connection-property (7) # check-remote-echo nil
09:12:53.566854 tramp-get-connection-property (7) # check-remote-echo nil
09:12:53.566854 tramp-get-connection-property (7) # gateway nil
09:12:54.601487 tramp-accept-process-output (10) # *tramp/plink <me>@<there>* run *tramp/plink <me>@<there>*
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >
09:12:54.601487 tramp-get-connection-property (7) # check-remote-echo nil
09:12:54.601487 tramp-get-connection-property (7) # check-remote-echo nil
09:12:54.601487 tramp-get-connection-property (7) # gateway nil
09:12:55.602919 tramp-accept-process-output (10) # *tramp/plink <me>@<there>* run *tramp/plink <me>@<there>*
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >
09:12:55.602919 tramp-get-connection-property (7) # check-remote-echo nil
09:12:55.602919 tramp-get-connection-property (7) # check-remote-echo nil
09:12:55.602919 tramp-get-connection-property (7) # gateway nil
09:12:56.461947 tramp-wait-for-regexp (6) # 
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >
09:12:56.461947 tramp-wait-for-regexp (10) # 
  backtrace()
  tramp-wait-for-regexp(#<process *tramp/plink <me>@<there>*> 10 "\\(^[^#$%>
]*[#$%>] *\\|\\(?:^\\|
\\)[^]#$%>
]*#?[]#$%>] *\\( \\[[0-9;]*[a-zA-Z] *\\)*\\)\\'")
  tramp-barf-if-no-shell-prompt(#<process *tramp/plink <me>@<there>*> 10 "Couldn't find local shell prompt for %s" "C:\\Windows\\system32\\cmd.exe")
  tramp-maybe-open-connection(["plink" "<me>" "<there>" "<myremotepath><myfilename>" nil])
  tramp-send-command(["plink" "<me>" "<there>" "<myremotepath><myfilename>" nil] "test -d <myremotepath><myfilename> 2>/dev/null; echo tramp_exit_status $?")
  tramp-send-command-and-check(["plink" "<me>" "<there>" "<myremotepath><myfilename>" nil] "test -d <myremotepath><myfilename>")
  tramp-run-test("-d" "/plink:<me>@<there>:<myremotepath><myfilename>")
  tramp-sh-handle-file-directory-p("/plink:<me>@<there>:<myremotepath><myfilename>")
  apply(tramp-sh-handle-file-directory-p "/plink:<me>@<there>:<myremotepath><myfilename>")
  tramp-sh-file-name-handler(file-directory-p "/plink:<me>@<there>:<myremotepath><myfilename>")
  apply(tramp-sh-file-name-handler file-directory-p "/plink:<me>@<there>:<myremotepath><myfilename>")
  tramp-file-name-handler(file-directory-p "/plink:<me>@<there>:<myremotepath><myfilename>")
  file-directory-p("/plink:<me>@<there>:<myremotepath><myfilename>")
  find-file-noselect("/plink:<me>@<there>:<myremotepath><myfilename>" nil nil t)
  find-file("/plink:<me>@<there>:<myremotepath><myfilename>" t)
  funcall-interactively(find-file "/plink:<me>@<there>:<myremotepath><myfilename>" t)
  apply(funcall-interactively find-file ("/plink:<me>@<there>:<myremotepath><myfilename>" t))
  repeat-complex-command(1)
  funcall-interactively(repeat-complex-command 1)
  call-interactively(repeat-complex-command nil nil)
  command-execute(repeat-complex-command)
09:12:56.461947 tramp-wait-for-regexp (1) # File error: [[Regexp ‘\(^[^#$%>
]*[#$%>] *\|\(?:^\|
\)[^]#$%>
]*#?[]#$%>] *\( \[[0-9;]*[a-zA-Z] *\)*\)\'’ not found in 10 secs]]
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >
09:12:56.461947 tramp-get-connection-property (7) # vector [plink <me> <there> <myremotepath><myfilename> nil]
09:12:56.461947 tramp-process-sentinel (5) # Sentinel called: ‘#<process *tramp/plink <me>@<there>*>’ ‘killed
09:12:56.461947 tramp-flush-connection-property (7) # *tramp/plink <me>@<there>* (vector)
09:12:56.461947 tramp-get-file-property (8) #  file-truename nil
09:12:56.461947 tramp-flush-directory-property (8) # 
09:12:56.493148 tramp-get-connection-property (7) # process-buffer nil
09:12:56.493148 tramp-barf-if-no-shell-prompt (10) # 
  backtrace()
  tramp-error(["plink" "<me>" "<there>" "<myremotepath><myfilename>" nil] file-error "Couldn't find local shell prompt for %s" "C:\\Windows\\system32\\cmd.exe")
  apply(tramp-error ["plink" "<me>" "<there>" "<myremotepath><myfilename>" nil] file-error "Couldn't find local shell prompt for %s" "C:\\Windows\\system32\\cmd.exe")
  tramp-error-with-buffer(#<buffer *tramp/plink <me>@<there>*> ["plink" "<me>" "<there>" "<myremotepath><myfilename>" nil] file-error "Couldn't find local shell prompt for %s" "C:\\Windows\\system32\\cmd.exe")
  apply(tramp-error-with-buffer #<buffer *tramp/plink <me>@<there>*> ["plink" "<me>" "<there>" "<myremotepath><myfilename>" nil] file-error ("Couldn't find local shell prompt for %s" "C:\\Windows\\system32\\cmd.exe"))
  tramp-barf-if-no-shell-prompt(#<process *tramp/plink <me>@<there>*> 10 "Couldn't find local shell prompt for %s" "C:\\Windows\\system32\\cmd.exe")
  tramp-maybe-open-connection(["plink" "<me>" "<there>" "<myremotepath><myfilename>" nil])
  tramp-send-command(["plink" "<me>" "<there>" "<myremotepath><myfilename>" nil] "test -d <myremotepath><myfilename> 2>/dev/null; echo tramp_exit_status $?")
  tramp-send-command-and-check(["plink" "<me>" "<there>" "<myremotepath><myfilename>" nil] "test -d <myremotepath><myfilename>")
  tramp-run-test("-d" "/plink:<me>@<there>:<myremotepath><myfilename>")
  tramp-sh-handle-file-directory-p("/plink:<me>@<there>:<myremotepath><myfilename>")
  apply(tramp-sh-handle-file-directory-p "/plink:<me>@<there>:<myremotepath><myfilename>")
  tramp-sh-file-name-handler(file-directory-p "/plink:<me>@<there>:<myremotepath><myfilename>")
  apply(tramp-sh-file-name-handler file-directory-p "/plink:<me>@<there>:<myremotepath><myfilename>")
  tramp-file-name-handler(file-directory-p "/plink:<me>@<there>:<myremotepath><myfilename>")
  file-directory-p("/plink:<me>@<there>:<myremotepath><myfilename>")
  find-file-noselect("/plink:<me>@<there>:<myremotepath><myfilename>" nil nil t)
  find-file("/plink:<me>@<there>:<myremotepath><myfilename>" t)
  funcall-interactively(find-file "/plink:<me>@<there>:<myremotepath><myfilename>" t)
  apply(funcall-interactively find-file ("/plink:<me>@<there>:<myremotepath><myfilename>" t))
  repeat-complex-command(1)
  funcall-interactively(repeat-complex-command 1)
  call-interactively(repeat-complex-command nil nil)
  command-execute(repeat-complex-command)
09:12:56.493148 tramp-barf-if-no-shell-prompt (1) # File error: Couldn’t find local shell prompt for C:\Windows\system32\cmd.exe
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\Users\<me>\AppData\Local\Temp - Thu 03/23/2017 -  9:12:46.39 >
09:13:01.199702 tramp-maybe-open-connection (3) # Opening connection for <me>@<there> using plink...failed

reply via email to

[Prev in Thread] Current Thread [Next in Thread]