Home Download Buy Blog Forum Support

Problem with WinSCP integration

Problem with WinSCP integration

Postby jfcg on Fri Dec 11, 2009 10:33 pm

Hello,

I'm giving a try to Sublime, and I am really impressed with it. One of the main reasons to use it for me is the possibility of accessing remote files. I have installed AAALoadFirstExtensions and the WinSCP plugin. Nevertheless, I am not able to browse my ftp site after the connection happens without problems. This is my console log:

Traceback (most recent call last):
File ".\scheduler.py", line 86, in threaded
for a in gen: pass
File ".\WinSCP.py", line 247, in connect
File ".\WinSCP.py", line 184, in populate_bookmarks
File ".\WinSCP.py", line 110, in _enumValues
File ".\contextlib.py", line 15, in __enter__
File ".\WinSCP.py", line 69, in OpenKey
WindowsError: [Error 2] The system cannot find the file specified

I'm using Windows 7. Can anybody help me?

Thank you very much.
jfcg
 
Posts: 10
Joined: Fri Dec 11, 2009 10:27 pm

Re: Problem with WinSCP integration

Postby gpfsmurf on Sat Dec 12, 2009 12:05 am

As a quick temporary fix you can comment out this line:
self.populate_bookmarks()


Are you using an INI file to store winscp's settings?
gpfsmurf
 
Posts: 211
Joined: Mon Jun 23, 2008 6:31 pm

Re: Problem with WinSCP integration

Postby jfcg on Sat Dec 12, 2009 1:55 am

No, I used the normal installation method, not the portable one.
jfcg
 
Posts: 10
Joined: Fri Dec 11, 2009 10:27 pm

Re: Problem with WinSCP integration

Postby gpfsmurf on Sat Dec 12, 2009 9:23 pm

Ok I think I fixed the bug, just update WinSCP to the latest revision (default branch)
gpfsmurf
 
Posts: 211
Joined: Mon Jun 23, 2008 6:31 pm

Re: Problem with WinSCP integration

Postby jfcg on Sun Dec 13, 2009 5:44 am

Thank you very much, but I can't test your modifications. Nothing happens when I press f12 button now. I've seen the code lines you've changed in the repository, and if I remove them, everything works (except for the bookmarks issue). Nothing happens in the console neither. Do you have any idea of what is happening?
jfcg
 
Posts: 10
Joined: Fri Dec 11, 2009 10:27 pm

Re: Problem with WinSCP integration

Postby gpfsmurf on Mon Dec 14, 2009 9:20 pm

I commited my changes too fast and I didn't check the indentation.

Please update and try again, it should work now
gpfsmurf
 
Posts: 211
Joined: Mon Jun 23, 2008 6:31 pm

Re: Problem with WinSCP integration

Postby jfcg on Tue Dec 15, 2009 12:32 am

Yes, it works now! Thank you very much again. I have no idea about Python, so I didn't realise about the indentation problem.

Cheers!
jfcg
 
Posts: 10
Joined: Fri Dec 11, 2009 10:27 pm

Re: Problem with WinSCP integration

Postby neotoxic on Sun Dec 27, 2009 10:04 am

I hope somone can help.. this is a killer feature for me and the one thing stopping me from moving to Sublime.

Downloaded the latest versuins if everything today... using version 20091212 of sublime text. The following is the console output rendered when F12 is pressed: -

Traceback (most recent call last):
File ".\sublimeplugin.py", line 104, in execWindowCommand
File "C:\Users\neotoxic\AppData\Roaming\SUBLIM~1\Packages\AAALOA~1\scheduler.py", line 189, in run
next()
File "C:\Users\neotoxic\AppData\Roaming\SUBLIM~1\Packages\AAALOA~1\scheduler.py", line 188, in next
next()
File "C:\Users\neotoxic\AppData\Roaming\SUBLIM~1\Packages\AAALOA~1\scheduler.py", line 153, in next
next(send=e, throwing=1)
File "C:\Users\neotoxic\AppData\Roaming\SUBLIM~1\Packages\AAALOA~1\scheduler.py", line 155, in next
raise Exception('\n\n'.join(reversed(exceptions)))
Exception: Traceback (most recent call last):
File ".\scheduler.py", line 130, in next
ret = routines[-1].throw(send)
File ".\BrowseFTP.py", line 88, in run
WindowsError: [Error 2] The system cannot find the file specified


Traceback (most recent call last):
File ".\scheduler.py", line 133, in next
ret = yielded[0] = routines[-1].next()
File ".\BrowseFTP.py", line 159, in set_session
File ".\WinSCP.py", line 159, in get_stored_sessions
File ".\WinSCP.py", line 104, in _enumKeys
File ".\contextlib.py", line 15, in __enter__
File ".\WinSCP.py", line 69, in OpenKey
WindowsError: [Error 2] The system cannot find the file specified
neotoxic
 
Posts: 6
Joined: Sat Dec 26, 2009 10:56 am

Re: Problem with WinSCP integration

Postby gpfsmurf on Mon Feb 01, 2010 4:46 pm

Sorry I was in vacations.

Are you storing your settings in the registry (default behavior) or in an INI file?
gpfsmurf
 
Posts: 211
Joined: Mon Jun 23, 2008 6:31 pm

Re: Problem with WinSCP integration

Postby jfcg on Tue Feb 02, 2010 1:31 am

Sorry for bothering you again. Suddenly, I can connect anymore. I have no problem using WinSCP directly.

The console log is the following. Any idea?

Thank you very much,
jfcg

Traceback (most recent call last):
File ".\BrowseFTP.py", line 48, in <lambda>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa2 in position 17: ordinal not in range(128)
Reading remote folder...Traceback (most recent call last):
File ".\BrowseFTP.py", line 48, in <lambda>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa2 in position 4: ordinal not in range(128)
Traceback (most recent call last):
File ".\BrowseFTP.py", line 48, in <lambda>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa2 in position 4: ordinal not in range(128)
Error: Can't connect to ftp
Traceback (most recent call last):
File "C:\Users\pedro\AppData\Roaming\SUBLIM~1\Packages\AAALOA~1\scheduler.py", line 168, in callback
next(send=value, throwing=1)
File "C:\Users\pedro\AppData\Roaming\SUBLIM~1\Packages\AAALOA~1\scheduler.py", line 153, in next
next(send=e, throwing=1)
File "C:\Users\pedro\AppData\Roaming\SUBLIM~1\Packages\AAALOA~1\scheduler.py", line 155, in next
raise Exception('\n\n'.join(reversed(exceptions)))
Exception: Traceback (most recent call last):
File ".\scheduler.py", line 130, in next
ret = routines[-1].throw(send)
File ".\BrowseFTP.py", line 82, in run
IOError: Can't connect to ftp
jfcg
 
Posts: 10
Joined: Fri Dec 11, 2009 10:27 pm

Next

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Yahoo [Bot] and 20 guests