Code Monkey home page Code Monkey logo

Comments (12)

aurora avatar aurora commented on June 15, 2024

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.

miken32 avatar miken32 commented on June 15, 2024

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.

miken32 avatar miken32 commented on June 15, 2024

Also seeing the same behaviour on CentOS 5.5, Bash 3.1, OpenSSH_4.3p2, OpenSSL 0.9.8b

from rmate.

maltejk avatar maltejk commented on June 15, 2024

Issue confirmed on Debian Squeeze, latest updates.

from rmate.

aurora avatar aurora commented on June 15, 2024

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.

aurora avatar aurora commented on June 15, 2024

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.

shaneog avatar shaneog commented on June 15, 2024

Just noting that I have this issue also

from rmate.

miken32 avatar miken32 commented on June 15, 2024

Confirmed this fixes the problem for me. Thanks a lot!

from rmate.

aurora avatar aurora commented on June 15, 2024

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.

shaneog avatar shaneog commented on June 15, 2024

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.

cdenneen avatar cdenneen commented on June 15, 2024

Just tested with a 70KB file and while it doesn't truncate it doesn't save buffer changes either

from rmate.

miken32 avatar miken32 commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.