Bug 327050 - When saving a file extra characters are added to the end or file is cleared
Summary: When saving a file extra characters are added to the end or file is cleared
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-05 19:20 EDT by lox CLA
Modified: 2020-05-14 10:17 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lox CLA 2010-10-05 19:20:45 EDT
Build Identifier: 20100917-0705

When I save a file extra characters are added to the end of the file. This happened with PHP en CSS files.

Reproducible: Sometimes

Steps to Reproduce:
1. create a new php project containing a wordpress install
2. create a style.css file
3. add inside:

/*
Theme Name:     Child
Theme URI:      http: //site.com/
Description:    Child theme for the Twenty Ten theme 
Author:         Site
Author URI:     http: //site.com
Template:       twentyten
Version:        0.1.0
*/

4. save the file

5 reopen it, it now contains:

/*
Theme Name:     Child
Theme URI:      http: //site.com/
Description:    Child theme for the Twenty Ten theme 
Author:         Site
Author URI:     http: //site.com
Template:       twentyten
Version:        0.1.0
*/

:        0.1.0
*/


That project is on a server in a samba share (gvfs) in ubuntu marverick. This was not happening in 10.04 and happens since I upgraded to 10.10 RC. This also happened in the past with older ubuntu release.

It also sometimes happens that after saving a file, it is totally blank. (this occures on a project witch reside on another server and that I access through SFTP)
Comment 1 Zhongwei Zhao CLA 2010-10-06 04:15:59 EDT
is it a pdt bug?
Comment 2 lox CLA 2010-11-04 02:54:11 EDT
I only use the PDT version so I can't say for others. It has happened in the past on older Ubuntu versions and appeared again since 10.10

This is a really annoying bug that makes Eclipse unusable on latest Ubuntu release when working in a collaborative network environment.

Please solve it!
Comment 3 dominik CLA 2011-05-12 11:15:53 EDT
I had some similar problems with Eclipse when working using FTP network attached as drive, the problem was external in connector and it's cache. After all I switched to samba and this cured all problems with files. 

Is this problem present on lcoal filesystem?
Comment 4 Jacek Pospychala CLA 2012-06-06 07:50:10 EDT
According to comments, this problem seems to happen only for networked filesystem and it wasn't reported by users who work on local FS.
As sad as bug sounds, it can't still be marked as blocker for over 2 years, when there were only few users reporting this and no one noticed this bug in a regular setup.
Comment 5 Marco Biscaro CLA 2012-06-06 09:13:25 EDT
This happened to me sometimes, and I never used a remote filesystem.