Textmate is great to work with, if you are using it on your mac. The moment you have a file on a remote server though, things get tough, at least with MacFuse using SSH.
Here are the most prominent problems: - It is impossible to import a directory. You have to import the files individually into the project. I don't know why this is the case, but sadly it seems nothing can be done about it. - Saving a file takes ages and locks up textmate. I have no problem if saving the file takes time, after all it is going across a network. What I don't understand though is why textmate has to lock itself up while it is saving a file.
But maybe I am going the wrong way about it altogether for working with remote files?
On May 27, 2007, at 2:56 AM, Malte Sussdorff wrote:
- Saving a file takes ages and locks up textmate. I have no problem if
saving the file takes time, after all it is going across a network. What I don't understand though is why textmate has to lock itself up while it is saving a file.
But maybe I am going the wrong way about it altogether for working with remote files?
I've found MacFuse / sshfs to be unstable. I've tried several versions and with all of them, I run into something that makes me stop using it for a while. Usually it is something unrecoverable, e.g. my UI locks up and I have no way to escape except to do a forced power-off.
As such I've gone back to using Cyberduck with TextMate as the external editor. It's not as nice, but I don't get a spinning beach ball for 10 seconds every time I save a file, and more importantly I don't get unrecoverable system hang-ups.
I end up trying sshfs now and again as new versions come out, though, because overall I love sshfs. It's just not ready for prime time yet, IMO.
-dan
Den 27. mai. 2007 kl. 08.56 skrev Malte Sussdorff:
Textmate is great to work with, if you are using it on your mac. The moment you have a file on a remote server though, things get tough, at least with MacFuse using SSH.
I used TextMate over nfs and everytime TextMate gets focus it will search through your project for changes made by other programs.
After a while as my projects, waiting for TextMate *everytime* it got focus started to make me feel like a potential serial killer.
The solution(for me, at least): do a checkout of your code on your local mac, edit with textmate, use scp(just create a command and bind it to ^+command+s or something) to copy the files to the server.
It's great! :-) -- Knut Ivar Nesheim
On 28/05/07, Knut Ivar Nesheim knutin@urtete.com wrote: [snip]
The solution(for me, at least): do a checkout of your code on your local mac, edit with textmate, use scp(just create a command and bind it to ^+command+s or something) to copy the files to the server.
It's great! :-)
Or set up a Subversion post-commit hook that updates the project on the server every time you commit your local changes.
It's even better! ;^)
On 28/05/07, Knut Ivar Nesheim knutin@urtete.com wrote: [snip]
The solution(for me, at least): do a checkout of your code on your local mac, edit with textmate, use scp(just create a command and bind it to ^+command+s or something) to copy the files to the server.
It's great! :-)
If you're going to create a command for scp, why not use rsync? At least, using rsync, it'll go much faster since only the files that need to be uploaded will be uploaded.
Charley
On 28/05/2007, at 21.55, Charley Tiggs wrote:
If you're going to create a command for scp, why not use rsync? At least, using rsync, it'll go much faster since only the files that need to be uploaded will be uploaded.
Or .. you can just use this bundle that uses scp for single files and rsync over ssh for the whole project. That way you can sync one file or the whole project.
http://david.olrik.dk/articles/2007/02/09/textmate-remote-editing
David Jack Olrik wrote:
On 28/05/2007, at 21.55, Charley Tiggs wrote:
If you're going to create a command for scp, why not use rsync? At least, using rsync, it'll go much faster since only the files that need to be uploaded will be uploaded.
Or .. you can just use this bundle that uses scp for single files and rsync over ssh for the whole project. That way you can sync one file or the whole project.
http://david.olrik.dk/articles/2007/02/09/textmate-remote-editing
Even better!
Charley
You know...
I too am a huge (unfortunate) fan of working on remote files... This topic has been discussed at great length. Since it is apparent none of the existing solutions work nicely and as elegantly as working on local code we all have come up with less than ideal solutions for solving this problem. I for example use RBrowser because I like that - but again it is less than perfect. So.. We need a better solution. Writing down the short list of requirements - Tie to Textmate - very closely - Allow me to easily create a project out of remote files - Allow me to add remote files - Allow me to search those remote files - Save the file back - Connect via ssh - Should be able to routinely (background) poll the remote system and determine the status of the file. This should be able to be turned off or time adjusted based on user needs. I wouldn't need this per se. - Should have an integrated browser mechanism which 1) gets on a remote system (ssh) 2) allows you to traverse a remote file system - Might want to be able to bind a command to a save ( svn commit ) feature - Might want to be able to bind a command to the file status ( p4 fstat ) feature
OK what do we need to add shorten or comment on?? Perhaps the cyberduck / rbrowser / macfuse / Olrik folks are listening. I think David Olrik's solution is a decent start but needs a bit more polishing. A better solution can't be far off..
Thoughts??
---
Steven M. Klass
Strategic Manager, Design Automation - Analog Mixed Signal
SMSC 3930 East Ray Road, Suite 200 Phoenix, Arizona 85044 (480) 704-7046 (Desk) (480) 225-1112 (Mobile) steven.klass@smsc.com
Knut Ivar Nesheim knutin@urtete.com Sent by: textmate-bounces@lists.macromates.com 05/28/07 06:32 AM Please respond to TextMate users textmate@lists.macromates.com
To TextMate users textmate@lists.macromates.com cc
Subject Re: [TxMt] Textmate for remote files
Den 27. mai. 2007 kl. 08.56 skrev Malte Sussdorff:
Textmate is great to work with, if you are using it on your mac. The moment you have a file on a remote server though, things get tough, at least with MacFuse using SSH.
I used TextMate over nfs and everytime TextMate gets focus it will search through your project for changes made by other programs.
After a while as my projects, waiting for TextMate *everytime* it got focus started to make me feel like a potential serial killer.
The solution(for me, at least): do a checkout of your code on your local mac, edit with textmate, use scp(just create a command and bind it to ^+command+s or something) to copy the files to the server.
It's great! :-) -- Knut Ivar Nesheim
______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 29/05/2007, at 16.41, Steven.Klass@smsc.com wrote:
- Tie to Textmate - very closely
Agreed - I have tried to add easy key-combos to my sync bundle.
apple+shift+s : save and sync current file via scp apple+F12 : sync entire project with rsync
The configure options do not have a key-combo, as this is typically something you only do once per project.
- Allow me to easily create a project out of remote files
This one is tricky, as TextMate Bundle commands need an open file in order to be activated. So you have to create a directory with an empty file before you can fetch the remote files.
- Allow me to add remote files
Files are added locally and the synced to the remote end, this also fixes the next requirement
- Allow me to search those remote files
All project files are "cached" locally so searching is easily done with TextMates normal search functions.
- Save the file back
You can do this either for the current file or for the whole project.
- Connect via ssh
Is there any other way ;)
- Should be able to routinely (background) poll the remote system
and determine the status of the file. This should be able to be turned off or time adjusted based on user needs. I wouldn't need this per se.
This is the reason that TextMate is slow when working on networked volumes. TextMate scans the project directory continuously in order to update the project drawer.
- Should have an integrated browser mechanism which 1) gets on a
remote system (ssh) 2) allows you to traverse a remote file system
If you can accept that all editing is done locally then my sync bundle will do what you want.
I am curious as to why you would want to do this ?
- Might want to be able to bind a command to a save ( svn commit )
feature
- Might want to be able to bind a command to the file status ( p4
fstat ) feature
These will be void if you can accept to work locally, TextMate has excellent support for both subversion and perforce (haven't tried the Perforce bundle though)
OK what do we need to add shorten or comment on?? Perhaps the cyberduck / rbrowser / macfuse / Olrik folks are listening.
I think MacFUSE is the most elegant solution, but it is useless as long as TextMate insists on continuously rescanning the project directory.
I tried the cyberduck bundle a long time ago, but found that it took too long time to sync a single file for my taste, plus it wasn't integrated tightly enough into TextMate. I just want to press "save" and then my file should appear on the remote server.
I think David Olrik's solution is a decent start but needs a bit more polishing. A better solution can't be far off..
What kind of polishing did you have in mind ? I'm listening =)
Writing down the short list of requirements - Tie to Textmate - very closely - Allow me to easily create a project out of remote files - Allow me to add remote files - Allow me to search those remote files - Save the file back - Connect via ssh - Should be able to routinely (background) poll the remote system and determine the status of the file. This should be able to be turned off or time adjusted based on user needs. I wouldn't need this per se. - Should have an integrated browser mechanism which 1) gets on a remote system (ssh) 2) allows you to traverse a remote file system - Might want to be able to bind a command to a save ( svn commit ) feature - Might want to be able to bind a command to the file status ( p4 fstat ) feature
You may want to take what I am about to write with a grain of salt but check out Interarchy. I think it will do what you want.
I would (and I do) set up either a mirror or a Net Disk. Both approaches have different pros and cons but both will allow you to work pretty much transparently with a remote server.
Kind Regards, Matthew
On 28/05/07, Knut Ivar Nesheim knutin@urtete.com wrote:
I used TextMate over nfs and everytime TextMate gets focus it will search through your project for changes made by other programs.
As Allan has stated elsewhere in this thread, you don't get the large delays if you add files/folders to a blank project by dragging them from the Finder to the TextMate project drawer.
Since I switched to using this kind of project I've found it emminently usable; I only notice I'm editing remote files when my NFS mount disappears (as it tends to do every other week or so).
It's great! :-)
It really is great, and didn't take very long to setup (but my NFS server is local, which no doubt helps). I use it with a 40MB project, but have only bothered to import bits of code that I work on so that "Find in Project..." works at a reasonable speed.
Graham