aurora / rmate

Remote TextMate 2 implemented as shell script
GNU General Public License v3.0
887 stars 124 forks source link

Some files truncate into buffer #9

Closed cdenneen closed 6 years ago

cdenneen commented 11 years ago
user@host:~$ head -5 /etc/hosts
#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# Internet host table
user@host:~$ sudo /tmp/rmate-new.bash /etc/hosts

Buffer opens with only:

#
# Copyrigh
scher200 commented 8 years ago

+1 half of the file as result on the serverside

aurora commented 8 years ago

@scher200 do you mean, you have this issue as well? Which system is it this happens on? I wasn't able to reproduce this behavior on any of my systems, so far ...

scher200 commented 8 years ago

@aurora yes, I have this issue as well, Ubuntu 14.04 (mint 17 xfce)

I viewed the code but was amazed it is so short. Could it have something to do with: the # character? Bot of my half empty files contain this character multiple times.

Jammizzle commented 6 years ago

Not sure it's to do with the '#' character as I'm able to open my my.cnf which is full of them as they're used as comments. Possibly a different issue

aurora commented 6 years ago

I just fixed issue #65, wrong detection of filesize. I wonder if this could be the same issue as what is reported in here. So if anybody of you is still following this, i would be really happy if you could download rmate from master branch and try it again. Thanks!

aurora commented 6 years ago

I am closing this, because there's no feedback and i cannot reproduce the issue.