Comments (12)
mmm ... i seem to be unable to reproduce this. could you provide me with any additional information? from which OS do you run rmate and how do you use it ... using an ssh tunnel from your OSX machine or by allowing remote connections in textmate? thanks!
from rmate.
This is running from Ubuntu 10.04, Bash 4.1.5, OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k, connecting through an SSH tunnel.
I'm actually not seeing the size stay consistent, so forget the 34624 number I gave earlier. The file gets transferred over just fine, but saving it results in truncation.
Here's SSH debug; the only difference I see between the two is that your script uses the IPv6 interface, Textmate's uses IPv4.
root@host:~# ls -l foo
-rw------- 1 root root 63787 2012-10-04 16:30 foo
root@host:~# /usr/local/bin/rmate.sh foo
debug1: client_input_channel_open: ctype forwarded-tcpip rchan 3 win 2097152 max 32768
debug1: client_request_forwarded_tcpip: listen localhost port 52698, originator ::1 port 45605
debug1: connect_next: host localhost ([127.0.0.1]:52698) in progress, fd=9
debug1: channel 1: new [::1]
debug1: confirm forwarded-tcpip
debug1: channel 1: connected to localhost port 52698
debug1: channel 1: free: ::1, nchannels 2
root@host:~# ls -l foo
-rw------- 1 root root 25408 2012-10-04 16:31 foo
root@host:~# ls -l foo
-rw------- 1 root root 63787 2012-10-04 16:30 foo
root@host:~# /usr/local/bin/rmate foo
debug1: client_input_channel_open: ctype forwarded-tcpip rchan 3 win 2097152 max 32768
debug1: client_request_forwarded_tcpip: listen localhost port 52698, originator 127.0.0.1 port 39069
debug1: connect_next: host localhost ([127.0.0.1]:52698) in progress, fd=9
debug1: channel 1: new [127.0.0.1]
debug1: confirm forwarded-tcpip
debug1: channel 1: connected to localhost port 52698
debug1: channel 1: free: 127.0.0.1, nchannels 2
root@host:~# ls -l foo
-rw------- 1 root root 63787 2012-10-04 16:33 foo
from rmate.
Also seeing the same behaviour on CentOS 5.5, Bash 3.1, OpenSSH_4.3p2, OpenSSL 0.9.8b
from rmate.
Issue confirmed on Debian Squeeze, latest updates.
from rmate.
thanks ... so i've some systems to test with now. i am currently very busy, but i hope that i can look at it later this week.
from rmate.
just a short update: i was able to reproduce the problem and i think i have an idea, what is wrong. i'll have to do some more testing, though ...
from rmate.
Just noting that I have this issue also
from rmate.
Confirmed this fixes the problem for me. Thanks a lot!
from rmate.
I've again made a change to this for OS compatibility reasons ... i would be very happy, if those, who had the issue could fetch the latest update and try again ... thanks!
from rmate.
Just tested and this new version works for me (65Kb file)
Running Ubuntu Server 12.10 x86_64 3.5.0-17-generic
from rmate.
Just tested with a 70KB file and while it doesn't truncate it doesn't save buffer changes either
from rmate.
Works fine for me. Opens and saves changes no problem.
Ubuntu 10.04.4 LTS
GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)
from rmate.
Related Issues (20)
- Support opening directories HOT 1
- Use stdin if no args and '--wait' or part of pipeline.
- option '--host auto' has no effect
- Does not support the +N syntax and cannot be used as $EDITOR HOT 10
- Can
- Can't rmate when remote machine running textmate HOT 2
- browse project folder HOT 2
- any interest in resolving shellcheck warnings? I have PRs ready HOT 6
- A filename with the literal string " ->" in it renders a file impossible to open. HOT 6
- version_date should probably be the same as date of release HOT 2
- remote directory edit support HOT 7
- rmate fails, when `ls` gives filesize containing `,` HOT 6
- add support for connecting via UNIX socket HOT 6
- unable to open symlinks with relative paths HOT 5
- Add docs for other editors HOT 5
- Flags specified after the file-to-open are ignored HOT 4
- doesn't work on remote mac if Textmate installed & opened on the remote mac HOT 7
- "host" and "port" variables in rmate shell script don't get reset to default values ("localhost" and "52698") even after re-install #17 HOT 6
- v1.0.2 raises a syntax error; v1.0.1 works HOT 1
- Disallow opening same file twice HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rmate.