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] |
Sun, 11 May 2008 22:44  |
Eclipse User |
|
|
|
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 07:49   |
Eclipse User |
|
|
|
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 #71380 is a reply to message #71341] |
Wed, 21 May 2008 03:13   |
Eclipse User |
|
|
|
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 03:23   |
Eclipse User |
|
|
|
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.
>
>
>
>
|
|
| | | |
Goto Forum:
Current Time: Sun May 11 01:12:10 EDT 2025
Powered by FUDForum. Page generated in 0.05468 seconds
|