CodeEffect / RemoteEdit

An SFTP plugin for Sublime Text 3 that makes editing remote files fast and pain free
18 stars 1 forks source link

SSH will not list on OSX targets (SFTP mode only at present) #5

Closed CodeEffect closed 11 years ago

CodeEffect commented 11 years ago

Opening this issue to replace https://github.com/CodeEffect/RemoteEdit/issues/2 as it's about something else entirely. Have included Jiang's comments below:

bianjiang commented 5 hours ago sublime.platform() shows 'osx' on mac.

but here is uname

uname -sr Darwin 12.4.0

uname -s Darwin

here is "ls -lapT"

jiangs-mac-pro:RemoteEdit jiangbian$ ls -lapT total 408 drwxr-xr-x 23 jiangbian staff 782 Jun 16 13:32:41 2013 ./ drwx------ 7 jiangbian staff 238 Jun 16 13:32:41 2013 ../ drwxr-xr-x 13 jiangbian staff 442 Jun 16 13:32:41 2013 .git/ -rw-r--r-- 1 jiangbian staff 191 Jun 16 13:32:41 2013 .gitignore -rw-r--r-- 1 jiangbian staff 481 Jun 16 13:32:41 2013 Default (Linux).sublime-keymap -rw-r--r-- 1 jiangbian staff 119 Jun 16 13:32:41 2013 Default (Linux).sublime-mousemap -rw-r--r-- 1 jiangbian staff 482 Jun 16 13:32:41 2013 Default (OSX).sublime-keymap -rw-r--r-- 1 jiangbian staff 118 Jun 16 13:32:41 2013 Default (OSX).sublime-mousemap -rw-r--r-- 1 jiangbian staff 481 Jun 16 13:32:41 2013 Default (Windows).sublime-keymap -rw-r--r-- 1 jiangbian staff 118 Jun 16 13:32:41 2013 Default (Windows).sublime-mousemap -rw-r--r-- 1 jiangbian staff 256 Jun 16 13:32:41 2013 Default.sublime-commands -rw-r--r-- 1 jiangbian staff 6017 Jun 16 13:32:41 2013 Main.sublime-menu -rw-r--r-- 1 jiangbian staff 3968 Jun 16 13:32:41 2013 NewServer.default-config -rw-r--r-- 1 jiangbian staff 4683 Jun 16 13:32:41 2013 README.md -rw-r--r-- 1 jiangbian staff 127307 Jun 16 13:32:41 2013 RemoteEdit.py -rw-r--r-- 1 jiangbian staff 1210 Jun 16 13:32:41 2013 RemoteEdit.sublime-settings -rw-r--r-- 1 jiangbian staff 3711 Jun 16 13:32:41 2013 RemoteEditDisplaySearch.py -rw-r--r-- 1 jiangbian staff 3244 Jun 16 13:32:41 2013 RemoteEditEvents.py -rw-r--r-- 1 jiangbian staff 405 Jun 16 13:32:41 2013 RemoteEditListFolder.py -rw-r--r-- 1 jiangbian staff 403 Jun 16 13:32:41 2013 RemoteEditMarkDirty.py -rw-r--r-- 1 jiangbian staff 1622 Jun 16 13:32:41 2013 RemoteEditMouse.py drwxr-xr-x 4 jiangbian staff 136 Jun 16 13:32:41 2013 bin/ drwxr-xr-x 4 jiangbian staff 136 Jun 16 13:32:41 2013 remote_edit/ here is "grep --version"

jiangs-mac-pro:RemoteEdit jiangbian$ grep --version grep (BSD grep) 2.5.1-FreeBSD and "echo $SHELL"

jiangs-mac-pro:RemoteEdit jiangbian$ echo $SHELL /bin/bash

CodeEffect commented 11 years ago

@Jiang, (or anyone with a remote OSX box to connect into) could you possibly test this when you have a sec plz?

bianjiang commented 11 years ago

Worked fine when I try to connect to a Mac through putty. Thanks,

CodeEffect commented 11 years ago

could you post a console log if possible please?

bianjiang commented 11 years ago
MAIN 20:44:40: tidy_local_tmp_path() finished in 0.002000093460083008 seconds
MAIN 20:44:40: __del__ called
MAIN 20:44:40: Popping ssh
MAIN 20:44:40: Popping sftp
SSH[0] 20:44:40: Start work loop
SFTP[0] 20:44:40: Start work loopSSH[0] 20:44:40: Stop called for thread 0, we are 0
SSH[0] 20:44:40: Thread 0 has left the building.
SSH[0] 20:44:40: End work loop
SSH[0] 20:44:40: He killed me with a sword. How weird is that?

SFTP[0] 20:44:40: Stop called for thread 0, we are 0
SFTP[0] 20:44:40: Thread 0 has left the building.
SFTP[0] 20:44:40: End work loop
SFTP[0] 20:44:40: He killed me with a sword. How weird is that?
loaded 846 snippets
SSH[0] 20:44:42: Start work loop
SFTP[0] 20:44:42: Start work loop
MAIN 20:44:43: run ssh command called with cmd: "ls -lapT /Users/jiangbian/; echo "uneeq"`expr 66666666 + 44444445`"uneeq""
MAIN 20:44:43: ....now on the queue.....
MAIN 20:44:43: Calling set_timeout to check for results
SSH[0] 20:44:43: Process not running: 'NoneType' object has no attribute 'poll'
SSH[0] 20:44:43: Waiting for output...
SSH[0] 20:44:44: Found response
SSH[0] 20:44:44: --------- stdout ---------
Last login: Tue Jun 18 20:43:53 2013 from ut04-322700.ad.uams.edu
[?1034hJiangs-Mac-Pro:~ jiangbian$
--------------------------------------------
SSH[0] 20:44:44: Connection OK
SSH[0] 20:44:44: Discarding output...
SSH[0] 20:44:44: Sending command: ls -lapT /Users/jiangbian/; echo "uneeq"`expr 66666666 + 44444445`"uneeq"
SSH[0] 20:44:44: Now listening
SSH[0] 20:44:44: Waiting for output...
SSH[0] 20:44:44: Found response
SSH[0] 20:44:44: --------- stdout ---------
ls -lapT /Users/jiangbian/; echo "uneeq"`expr 666666 
66 + 44444445`"uneeq"
total 72
drwxr-xr-x+ 31 jiangbian  staff   1054 Jun 18 08:08:18 2013 ./
drwxr-xr-x   5 root       admin    170 May 29 21:46:53 2013 ../
-rw-------@  1 jiangbian  staff      3 May 29 21:46:54 2013 .CFUserTextEncoding
-rw-r--r--@  1 jiangbian  staff  15364 Jun 17 23:39:28 2013 .DS_Store
drwx------   8 jiangbian  staff    272 Jun 18 08:16:41 2013 .Trash/
-rw-------   1 jiangbian  staff     80 Jun 14 12:57:56 2013 .Xauthority
-rw-------   1 jiangbian  staff   7997 Jun 18 20:44:34 2013 .bash_history
drwxr-xr-x   3 jiangbian  staff    102 Jun 14 12:58:50 2013 .cache/
drwxr-xr-x   3 jiangbian  staff    102 Jun  1 08:44:54 2013 .cmake/
drwx------   3 jiangbian  staff    102 May 30 21:48:36 2013 .cups/
drwx------  20 jiangbian  staff    680 Jun 17 15:16:00 2013 .dropbox/
-rw-r--r--   1 jiangbian  staff     50 Jun  5 21:45:03 2013 .gitconfig
drwxr-xr-x   3 jiangbian  staff    102 Jun 13 21:40:47 2013 .matlab/
drwxr-xr-x   4 jiangbian  staff    136 Jun 18 08:24:40 2013 .matplotlib/
drwxr-xr-x   3 jiangbian  staff    102 May 30 00:20:56 2013 .pip/
drwxr-xr-x  10 jiangbian  staff    340 Jun 18 19:53:29 2013 .rstudio-desktop/
drwx------   5 jiangbian  staff    170 May 29 23:57:17 2013 .ssh/
drwxr-xr-x   6 jiangbian  staff    204 Jun  1 08:44:41 2013 .subversion/
drwxr-xr-x   3 jiangbian  staff    102 Jun 13 21:50:14 2013 .vim/
-rw-------   1 root       staff   1058 Jun 14 12:54:27 2013 .viminfo
drwx------+ 14 jiangbian  staff    476 Jun 16 13:46:20 2013 Desktop/
drwxr-xr-x   6 jiangbian  staff    204 Jun 17 20:25:06 2013 Development/
drwx------+  8 jiangbian  staff    272 Jun 13 21:41:24 2013 Documents/
drwx------+ 21 jiangbian  staff    714 Jun 18 20:41:00 2013 Downloads/
drwx------@ 48 jiangbian  staff   1632 Jun  9 20:22:50 2013 Library/
drwx------+  3 jiangbian  staff    102 May 29 21:46:54 2013 Movies/
drwx------+  3 jiangbian  staff    102 May 29 21:46:54 2013 Music/
drwx------+  3 jiangbian  staff    102 May 29 21:46:54 2013 Pictures/
drwxr-xr-x+  4 jiangbian  staff    136 May 29 21:46:54 2013 Public/
drwxr-xr-x   8 jiangbian  staff    272 Jun 17 23:10:03 2013 Research/
drwxr-xr-x   2 jiangbian  staff     68 Jun 16 10:24:22 2013 bin/
uneeq111111111uneeq
Jiangs-Mac-Pro:~ jiangbian$
--------------------------------------------
SSH[0] 20:44:44: Found checkReturn
SSH[0] 20:44:44: End work loop
SSH[0] 20:44:44: Start work loop
MAIN 20:44:44: Results found in callback handler, firing the callback
MAIN 20:44:44: Trying cat for folder "/Users/jiangbian/"
CodeEffect commented 11 years ago

Hmm, not sure what to suggest, it's not throwing any errors at all when parsing the ls. I'll check over the code to see if i can see anything out of place

bianjiang commented 11 years ago

No, I meant it's working fine now on windows.

I'm still getting errors, when I am connecting to a Mac with a Mac but, again, it works fine if I install a ssh-askpass...

MAIN 21:16:52: tidy_local_tmp_path() finished in 8.416175842285156e-05 seconds
MAIN 21:16:52: __del__ called
MAIN 21:16:52: Popping ssh
MAIN 21:16:52: Popping sftp
SSH[0] 21:16:52: Start work loopSFTP[0] 21:16:52: Start work loop
SFTP[0] 21:16:52: Stop called for thread 0, we are 0
SFTP[0] 21:16:52: Thread 0 has left the building.
SFTP[0] 21:16:52: End work loop

SFTP[0] 21:16:52: He killed me with a sword. How weird is that?
SSH[0] 21:16:52: Stop called for thread 0, we are 0
SSH[0] 21:16:52: Thread 0 has left the building.
SSH[0] 21:16:52: End work loop
SSH[0] 21:16:52: He killed me with a sword. How weird is that?
loaded 846 snippets
SFTP[0] 21:16:54: Start work loopSSH[0] 21:16:54: Start work loop

MAIN 21:16:56: run ssh command called with cmd: "ls -lapT ~/; echo "uneeq"`expr 66666666 + 44444445`"uneeq""
MAIN 21:16:56: ....now on the queue.....
MAIN 21:16:56: Calling set_timeout to check for results
SSH[0] 21:16:56: Process not running: 'NoneType' object has no attribute 'poll'
SSH[0] 21:16:56: Sending command: echo '$'
SSH[0] 21:16:56: Waiting for output...
SSH[0] 21:16:56: Process died
SSH[0] 21:16:56: -------- stderr --------
Pseudo-terminal will not be allocated because stdin is not a terminal.

--------------------------------------------
SSH[0] 21:16:56: Sending command: echo '$'
SSH[0] 21:16:56: Command failed: [Errno 32] Broken pipe
SSH[0] 21:16:56: Waiting for output...
SSH[0] 21:16:56: Process died
SSH[0] 21:16:56: Waiting for output...
SSH[0] 21:16:56: Process died
SSH[0] 21:16:56: Connect failed: 
SSH[0] 21:16:56: Error connecting
SSH[0] 21:16:56: End work loop
SSH[0] 21:16:56: Start work loop
MAIN 21:16:56: Results found in callback handler, firing the callback
error: Error listing folder ~/
CodeEffect commented 11 years ago

Just to confirm, SSH Askpass is not a requirement nor does it exhibit desired functionality. If the plugin is connecting fine to a mac then this original issue is now resolved. If you are having problems connecting from OSX to OSX please raise a ticket and post the console log. Cheers!