Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Strange Eclipse error: cannot change the .php file size to smaller, cannot cut c
Strange Eclipse error: cannot change the .php file size to smaller, cannot cut c [message #70039] Mon, 12 May 2008 02:44 Go to next message
Eclipse UserFriend
Originally posted by: hamasaki.citromail.hu

Dear Eclipse developers!


My problem is:

Any version of Eclipse (newest, old 3.2, easyeclipse, AptanaStudio, etc...
) cannot change the PHP's file size to smaller - only to bigger!

my php file 1000 byte and I delete 500 byte and save: I see good the saved
file in eclipse... but saved file don't changed... only ?> chars at 500
byte... but other 500 byte unchanged and still 1000 byte the file.

If I add new content to 1000 byte and will 1200 byte = ALL OK. But if I
delete content = will 1200 byte again and buggy file from this point...

file is UTF8 but tried with ASCII file too... all same...

Help me! I think it's java or eclipse bug but maybe about java...

Seems like file handle cannot allowed to cut file, only to append
content... It's all about java?
If I edit with this file with notepad / any other editor = can cut the
file content...

Enviroment:

Hardware: Intel Core 2 Duo E6550, 2 GB RAM, SATA, desktop PC

Software: Windows XP SP2 English, IE7, Firefox 2 + 3 beta

jre-1_5_0_11-windows-i586-p
but tried with:
jre-1_5_0_14-windows-i586-p
jre-1_5_0_06-windows-i586-p
j2re-1_4_2_16-windows-i586-p
j2sdk-1_4_2_17-windows-i586-p

And all same...

Last version checked:

pdt-all-in-one-S20080505_RC1-win32.zip


So... I can't belive it's common bug becuase no developer can use eclipse
by this big bug. What is the solution?

Thanks!
Mr. Hama
Re: Strange Eclipse error: cannot change the .php file size to smaller, cannot cut c [message #70063 is a reply to message #70039] Mon, 12 May 2008 11:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hamasaki.citromail.hu

YES!

For example detailed description, original file:

<?
php code 1

php code 2

php code 3
?>

I delete php code 2 + php code 3 line, left only 1 line, this will be:

<?
php code 1
?>

BUT!!!!!!!!!! I show this with text editor or if reopen file:

<?
php code 1
?>
p code 2

php code 3
?>

And I show CORRECTLY the file if I press "SAVE" after first modification
(but really file size don't changed, only date updated). If I close file +
open again I see the bugged source -OR- I see the only 1 line source
correctly BUT the file bugged because Eclipse stop display after first ?> .
If I use ANY OTHER non JAVA based editor = ALL WORKS FINE and no this bug.

---------

BUT file size will 100% same, file date changed!
So... Eclipse and ALL JAVA IDE don't MODIFY TO FILE SIZE SMALLER.

If I add new lines = ALL OK, but if delete = this sh1t happends...

I don't belive with this bug somebody can use and JAVA IDE... Eclipse
useless with this bug...


-- Eredeti üzenet --
Feladó: Michael Spector
Címzett: PDT Developers
Másolat:
Elküldve: 07:34
Téma: Re: [pdt-dev] Strange Eclipse error: cannot change the .php file
size to smaller, cannot cut content


Hello,

Let me understand: you delete some part of file in Eclipse, press save
- the file contents remain the same? (i.e. you close Eclipse, and then
open it again - you see the original file)


On 5/12/08, Karmar Ani wrote:
> Dear Eclipse developers!
>
>
> My problem is:
>
> Any version of Eclipse (newest, old 3.2, easyeclipse, AptanaStudio,
etc... )
> cannot change the PHP's file size to smaller - only to bigger!
>
> my php file 1000 byte and I delete 500 byte and save: I see good the
saved
> file in eclipse... but saved file don't changed... only ?> chars at 500
> byte... but other 500 byte unchanged and still 1000 byte the file.
>
> If I add new content to 1000 byte and will 1200 byte = ALL OK. But if I
> delete content = will 1200 byte again and buggy file from this point...
>
> file is UTF8 but tried with ASCII file too... all same...
>
> Help me! I think it's java or eclipse bug but maybe about java...
>
> Seems like file handle cannot allowed to cut file, only to append
content...
> It's all about java?
> If I edit with this file with notepad / any other editor = can cut the
file
> content...
>
> Enviroment:
>
> Hardware: Intel Core 2 Duo E6550, 2 GB RAM, SATA, desktop PC
>
> Software: Windows XP SP2 English, IE7, Firefox 2 + 3 beta
>
> jre-1_5_0_11-windows-i586-p
> but tried with:
> jre-1_5_0_14-windows-i586-p
> jre-1_5_0_06-windows-i586-p
> j2re-1_4_2_16-windows-i586-p
> j2sdk-1_4_2_17-windows-i586-p
>
> And all same...
>
> Last version checked:
>
> pdt-all-in-one-S20080505_RC1-win32.zip
>
>
> So... I can't belive it's common bug becuase no developer can use
eclipse by
> this big bug. What is the solution?
>
> Thanks!
> Mr. Hama
>
>
Re: Strange Eclipse error: cannot change the .php file size to smaller, cannot cut c [message #70082 is a reply to message #70063] Mon, 12 May 2008 13:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hamasaki.citromail.hu

The original file: http://nopaste.info/a4107dc260.html
Buggy file: http://nopaste.info/473967ac9e.html
And what is correct: (made from original by notepad):
http://nopaste.info/0d21798c72.html
More example, jEDIT works good [message #70102 is a reply to message #70039] Mon, 12 May 2008 13:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hamasaki.citromail.hu

More 1 example:

I see this at eclipse: http://nopaste.info/4f39d0a3b4.html
And the real file after editing or after reopen:
http://nopaste.info/1c9b090e9c.html

Need more example about this bug?

I tried jEDIT and works 100% correctly, so it's not fully JAVA bug.
Re: Strange Eclipse error: cannot change the .php file size to smaller, cannot cut c [message #70514 is a reply to message #70039] Tue, 13 May 2008 19:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hamasaki.citromail.hu

PDT developers!


After I'm using EC 3.3.0 this bug is starting again... and still don't
change the file size to smaller.

Good all for 1-3 times AFTER don't change file size to smaller again...

So = this bug still extist after full XP SP3 install + full clean Eclipse
install + full JRE install ...

I have clean, legal, fully reinstalled Widows XP SP3 PC and still this
bug...
(With SP2 100% same)

How can use other developers Eclipse with this fatal bug?

I use Eclipse for editing PHP + eclipse-FTP-WebDAV for FTP support....
But without eclipse-FTP-WebDAV have this bug, the pure Eclipse do same bug.

I tested with test-framework and no error found.


I do:

1. format HDD
2. install Windows XP
3. install JRE what versions needed
4. download eclipse from www.eclipse.org, extract, run
5. this bug found


PC: Intel Core 2 Duo, 2 GB ram, Asus motherboard

ALL PROGRAMS WORK CORRECTLY expect ECLIPSE!

Hama
Re: Strange Eclipse error: cannot change the .php file size to smaller, cannot cut c [message #70776 is a reply to message #70514] Wed, 14 May 2008 07:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pdt.neveron.de

Have you checked the filepermissions of the file giving an error?

Have you created a new file with eclipse and copied all of the content
from the file giving errors into it and then tried to delet part of the
content?

Cause everytime i had problems with uneditable files it was due to file
permissions.

Regards Jan Walter

Mr. Hama schrieb:
> PDT developers!
>
>
> After I'm using EC 3.3.0 this bug is starting again... and still don't
> change the file size to smaller.
>
> Good all for 1-3 times AFTER don't change file size to smaller again...
>
> So = this bug still extist after full XP SP3 install + full clean
> Eclipse install + full JRE install ...
>
> I have clean, legal, fully reinstalled Widows XP SP3 PC and still this
> bug... (With SP2 100% same)
>
> How can use other developers Eclipse with this fatal bug?
>
> I use Eclipse for editing PHP + eclipse-FTP-WebDAV for FTP support....
> But without eclipse-FTP-WebDAV have this bug, the pure Eclipse do same bug.
>
> I tested with test-framework and no error found.
>
>
> I do:
>
> 1. format HDD
> 2. install Windows XP
> 3. install JRE what versions needed
> 4. download eclipse from www.eclipse.org, extract, run
> 5. this bug found
>
>
> PC: Intel Core 2 Duo, 2 GB ram, Asus motherboard
>
> ALL PROGRAMS WORK CORRECTLY expect ECLIPSE!
>
> Hama
>
Re: Strange Eclipse error: cannot change the .php file size to smaller, cannot cut c [message #71323 is a reply to message #70776] Tue, 20 May 2008 16:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hamasaki.citromail.hu

I use fat32, so no permission problem I think...
Re: Strange Eclipse error: cannot change the .php file size to smaller, cannot cut c [message #71341 is a reply to message #71323] Tue, 20 May 2008 16:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pdt.neveron.de

Mr. Hama schrieb:
> I use fat32, so no permission problem I think...
>
i use windows xp. just try it with copying into an empty file generated
by eclipse. costs you only 5 minutes ;)
Re: Strange Eclipse error: cannot change the .php file size to smaller, cannot cut c [message #71380 is a reply to message #71341] Wed, 21 May 2008 07:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hamasaki.citromail.hu

Ok.

But please do it if run many programs, like firefox, and try if about 5
times.

My best test:

new file, with this content:

<?

echo "hello";
echo "hello";
echo "hello";
echo "hello";
echo "hello";

?>

and save

open it, delete 1 echo line, save, close.
then open it, delete 1 echo line, save, close...

and if not bugged = no bug

if left only:


<?
echo "hello";
?>

and smaller file size = no bug.
Re: Strange Eclipse error: cannot change the .php file size to smaller, cannot cut c [message #71398 is a reply to message #71380] Wed, 21 May 2008 07:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pdt.neveron.de

I did it on my side everytime i had problems with files and it worked
EVERYTIME.

In my last post i asked YOU to try it with the file you have problems
with. I suspect that the source you are getting the files from or the
way you are getting them to your local disk marks them in some kinda of
write protected mode.

Please create in your project a new file via eclipse. Then copy and
paste all lines from the problematic file into the new one via eclipse.
Save the new file, close it then reopen it and test if you now can
delete lines out of the new file without the "bug" you seem to face with
the old file.

regards Jan Walter



Mr. Hama schrieb:
> Ok.
>
> But please do it if run many programs, like firefox, and try if about 5
> times.
>
> My best test:
>
> new file, with this content:
>
> <?
>
> echo "hello";
> echo "hello";
> echo "hello";
> echo "hello";
> echo "hello";
>
> ?>
>
> and save
>
> open it, delete 1 echo line, save, close.
> then open it, delete 1 echo line, save, close...
>
> and if not bugged = no bug
>
> if left only:
>
>
> <?
> echo "hello";
> ?>
>
> and smaller file size = no bug.
>
>
>
>
Re: Strange Eclipse error: cannot change the .php file size to smaller, cannot cut c [message #72015 is a reply to message #71398] Sun, 25 May 2008 22:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hamasaki.citromail.hu

Same bug...
The new file is ok, but the saved file is buggy.

If I save to the new file = no problem but who edit all times new file?
Dammit, I want modify the files... :(

Hama
Re: Strange Eclipse error: cannot change the .php file size to smaller, cannot cut c [message #72033 is a reply to message #72015] Mon, 26 May 2008 07:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pdt.neveron.de

Mr. Hama schrieb:
> Same bug...
> The new file is ok, but the saved file is buggy.
>
> If I save to the new file = no problem but who edit all times new file?
> Dammit, I want modify the files... :(
>
> Hama
>

That still lets me think it is not a bug in pdt but a problem you
encounter due to the way you up/download your files.

Try using the new file and sending it to your server and getting it back
and see if it then goes back to your edit problem. If it does the
problem is related to that part.

regards Jan
Re: Strange Eclipse error: cannot change the .php file size to smaller, cannot cut c [message #73416 is a reply to message #72033] Sat, 14 June 2008 14:58 Go to previous message
Eclipse UserFriend
Originally posted by: hamasaki.citromail.hu

This problem still exists... Why only I have this problem with brand new
PC + Windows XP + clean install?
Previous Topic:Annoying behavior for auto-generating the URL
Next Topic:How to get R20080103 now?
Goto Forum:
  


Current Time: Wed Feb 08 07:26:47 GMT 2023

Powered by FUDForum. Page generated in 0.03002 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top