Home Download Buy Blog Forum Support

Sublime SFTP and FTP Plugin (w/ Remote Browsing)

Re: Sublime SFTP and FTP Plugin (w/ Remote Browsing)

Postby wbond on Fri Jan 27, 2012 7:47 pm

gregor.hoch wrote:I just purchased your plugin. I must say that it made my working routine so much easier. I have to say though that $16 is pretty overpriced BUT considering that I am a happy user of your other plugin it a worthwhile support of a great developer... :)

Here is a problem I have: My session usually closes after some time, which is obvious. But when I try to send a file after that, SFTP tries to connected for a pretty long time with an endless number of dots and finally fails with a "Invalid login credentials" (no password prompt). When I then try to send a second time, I get the password prompt very quickly and the connection is reestablished....

Thanks!


I appreciate your purchase! I realize that some people may feel like $16 is steep, but it is a reflection of the amount of time it saves developers, the amount of development and support time and effort it has taken me to get the plugin to the point where it is today.

In terms of the issue with reconnecting after a disconnection, can you turn on debug logging (http://wbond.net/sublime_packages/sftp/support) and send a copy to support@wbond.net? Please be sure to include the platform you are running on and the version of Sublime you are using. If I can reproduce this (so that I can confirm that I can fix it) I will try to include a fix in the next release.
wbond
 
Posts: 528
Joined: Mon Feb 28, 2011 5:33 am

Re: Sublime SFTP and FTP Plugin (w/ Remote Browsing)

Postby tito on Wed Feb 08, 2012 1:10 pm

Hi wbond

Thank you for adding the "SFTP" under a submenu on sidebar. Much appreciated. :D

I'm starting to use the package frequently and I want to mention:

Bug: For some reason, when selecting "SFTP -> map to remote" on sidebar. The application freeze and I had to kill sublime text. however when I restart the file "sftp-config.json" is created correctly.
Windows XP, sublime 2175, SFTP 1.8.3

Clarification needed please:
I can't figure out how to upload only modified files. Looks like "synch" browses and checks the entire server making the upload super slow.

Ideal: will be to "cache an id" of every uploaded file and when the user selects "Upload file/folder" only the modified files of the selection will be uploaded. Probably this will need a menuitem "clear cache of uploaded files", if you can make the "cache" persistent between sessions that will be awesome.

Regards,
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 864
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Sublime SFTP and FTP Plugin (w/ Remote Browsing)

Postby wbond on Wed Feb 08, 2012 1:55 pm

tito wrote:Bug: For some reason, when selecting "SFTP -> map to remote" on sidebar. The application freeze and I had to kill sublime text. however when I restart the file "sftp-config.json" is created correctly.
Windows XP, sublime 2175, SFTP 1.8.3


I just got a confirmation of this yesterday and I am working on a fix. Thanks for the note!

tito wrote:I can't figure out how to upload only modified files. Looks like "synch" browses and checks the entire server making the upload super slow.

Ideal: will be to "cache an id" of every uploaded file and when the user selects "Upload file/folder" only the modified files of the selection will be uploaded. Probably this will need a menuitem "clear cache of uploaded files", if you can make the "cache" persistent between sessions that will be awesome.


Rather than trying to reinvent the wheel, Sublime SFTP provides this exact functionality, provided that your code is inside of a Mercurial, Git or SVN working copy. It uses the version control system to track changes, and the Upload Changed Files command (http://wbond.net/sublime_packages/sftp/ ... y_Bindings) uploads those files.
wbond
 
Posts: 528
Joined: Mon Feb 28, 2011 5:33 am

Re: Sublime SFTP and FTP Plugin (w/ Remote Browsing)

Postby tito on Wed Feb 08, 2012 3:40 pm

Thanks for clarification!

I'm afraid this will not work for me. I work with people that don't use VCS, and I also don't use it for some projects.
There is also complex setups on which I have repos inside repos, such simil and real submodules..
There is also files I don't want to put on repos but maybe I upload these to servers.. there is also the opposite.. why not..

Is to much to request a preference to add what I described before? such "remember_uploaded_files"

May I don't understand how it works.

Some little things I saw:

1)
I have on Sublime a project folder with path "\\cat-pc\htdocs\"

When I request via sidebar "STP -> browse remote" on subfolder "docs" this error pop-ups:

Code: Select all
2012-02-08 13:30:30
Traceback (most recent call last):
  File "./sftp/threads.py", line 16, in run_with_except_hook
  File "./sftp/threads.py", line 101, in handler
  File "./sftp/commands.py", line 239, in run
  File "./sftp/commands.py", line 373, in do_operation
  File "./sftp/ftp_transport.py", line 347, in lcd
NotFoundError: Folder not found


2)
When trying to use the function "Upload VCS changed File" this error popups:
Code: Select all
The git.exe binary could not be found on your system. Please edit "C:\Documents and Settings\tito\Datos de programa\Sublime Text 2\Packages\User\SFTP.sublime-settings" and set "git_binary_path" or install git.

I'm sure git is on path.

Regards,
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 864
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Sublime SFTP and FTP Plugin (w/ Remote Browsing)

Postby iamntz on Wed Feb 08, 2012 3:42 pm

Rather than trying to reinvent the wheel, Sublime SFTP provides this exact functionality, provided that your code is inside of a Mercurial, Git or SVN working copy. It uses the version control system to track changes, and the Upload Changed Files command (http://wbond.net/sublime_packages/sftp/ ... y_Bindings) uploads those files.

Last time i used this feature (upload changed files), I wasn't able to upload files that i staged & commited.
If nothing had changed, there is a way to something like „upload files from revision” ?
iamntz
 
Posts: 917
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Sublime SFTP and FTP Plugin (w/ Remote Browsing)

Postby wbond on Wed Feb 08, 2012 5:43 pm

tito wrote:Thanks for clarification!

I'm afraid this will not work for me. I work with people that don't use VCS, and I also don't use it for some projects.
There is also complex setups on which I have repos inside repos, such simil and real submodules..
There is also files I don't want to put on repos but maybe I upload these to servers.. there is also the opposite.. why not..

Is to much to request a preference to add what I described before? such "remember_uploaded_files"

May I don't understand how it works.

Some little things I saw:

1)
I have on Sublime a project folder with path "\\cat-pc\htdocs\"

When I request via sidebar "STP -> browse remote" on subfolder "docs" this error pop-ups:

Code: Select all
2012-02-08 13:30:30
Traceback (most recent call last):
  File "./sftp/threads.py", line 16, in run_with_except_hook
  File "./sftp/threads.py", line 101, in handler
  File "./sftp/commands.py", line 239, in run
  File "./sftp/commands.py", line 373, in do_operation
  File "./sftp/ftp_transport.py", line 347, in lcd
NotFoundError: Folder not found


2)
When trying to use the function "Upload VCS changed File" this error popups:
Code: Select all
The git.exe binary could not be found on your system. Please edit "C:\Documents and Settings\tito\Datos de programa\Sublime Text 2\Packages\User\SFTP.sublime-settings" and set "git_binary_path" or install git.

I'm sure git is on path.

Regards,


The solution you are proposing sounds like the "upload_on_save" feature might do what you want. In a future release I may be able to keep a list of saved files and if there is no VCS then upload the files in the saved list and reset the list after uploading. Would this work for you?

If you could shoot me an email with those two bugs, I can file it with the other bug emails so I ensure they get fixed in the next release.
wbond
 
Posts: 528
Joined: Mon Feb 28, 2011 5:33 am

Re: Sublime SFTP and FTP Plugin (w/ Remote Browsing)

Postby wbond on Wed Feb 08, 2012 5:45 pm

iamntz wrote:
Rather than trying to reinvent the wheel, Sublime SFTP provides this exact functionality, provided that your code is inside of a Mercurial, Git or SVN working copy. It uses the version control system to track changes, and the Upload Changed Files command (http://wbond.net/sublime_packages/sftp/ ... y_Bindings) uploads those files.

Last time i used this feature (upload changed files), I wasn't able to upload files that i staged & commited.
If nothing had changed, there is a way to something like „upload files from revision” ?


I understand what you are looking for, but really this starts getting real complex real fast to support 3 different VCSes and their different models for revisions and an interface to browse and retrieve the versions of files for those revisions. To do this there would need to be pretty tight integration with a more full-featured VCS plugin for the VCS you are looking for.

That said, all of the SFTP commands are documented in the key bindings file, so it should be possible to create your own plugin to do all of the introspection of the VCS and export the appropriate files, then use the SFTP plugin to upload them.
wbond
 
Posts: 528
Joined: Mon Feb 28, 2011 5:33 am

Re: Sublime SFTP and FTP Plugin (w/ Remote Browsing)

Postby tito on Thu Feb 09, 2012 11:24 pm

Mail sent :)

In a future release I may be able to keep a list of saved files and if there is no VCS then upload the files in the saved list and reset the list after uploading. Would this work for you?


Yes please, it would be very good to keep track of already uploaded files. And when selecting "upload folder/file" only modified files gets uploaded.(besides whatever there is git or not on project )
It would be very good too, if you can save the list of already uploaded files on a session file ( internal if possible, not on project directories. )
Handy probably is to add a "clean uploaded file cache" menuitem, to forget these entries.

This way upload command will work very fast in a very practical manner.
Regards,
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 864
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Sublime SFTP and FTP Plugin (w/ Remote Browsing)

Postby justinwhall on Fri Feb 24, 2012 1:36 am

Hell I've been using this plugin for a few weeks and it's recently started crashing my installation of ST2 on upload. Not always and from what I can tell there really is not pattern but it happens consistently, say, 20% of the time now. Seems to be worse the longer I go without making an upload. :(
justinwhall
 
Posts: 13
Joined: Wed Feb 15, 2012 11:26 pm

Re: Sublime SFTP and FTP Plugin (w/ Remote Browsing)

Postby wbond on Mon Feb 27, 2012 6:02 am

justinwhall wrote:Hell I've been using this plugin for a few weeks and it's recently started crashing my installation of ST2 on upload. Not always and from what I can tell there really is not pattern but it happens consistently, say, 20% of the time now. Seems to be worse the longer I go without making an upload. :(


Version 1.9.0 is out, and it should fix this crashing issue you've experienced.
wbond
 
Posts: 528
Joined: Mon Feb 28, 2011 5:33 am

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 3 guests