Bug 104469 - [typing] Unable to save modified text
Summary: [typing] Unable to save modified text
Status: VERIFIED DUPLICATE of bug 109104
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P2 major (vote)
Target Milestone: 3.2   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-20 04:28 EDT by Sylvain Chabert CLA
Modified: 2006-01-05 09:11 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain Chabert CLA 2005-07-20 04:28:25 EDT
I have reproduced this bug on text editor and java editor.

Scenario:
- create a new file with 3 lines of text inside and save
- Delete the 2 last lines
- Save
- Undo Typing (the 2 deleted lines come back and the file can be saved)
- Delete the last line: here it is the bug => The file cannot be saved anymore !!

For the scenario purpose, I start with a new file, but it works with an existing
file.

This bug has been also reproduced on Eclipse3.1RC4 on Linux Debian as OS.
Comment 1 Dani Megert CLA 2005-08-05 04:25:36 EDT
Works for me using R3.1. Maybe I did some steps wrong, e.g. "Delete the last 2
lines" can be accomplished in many different ways ;-).

Please provide more detailed steps if you see this using R3.1 or newer.
Comment 2 Sylvain Chabert CLA 2005-08-05 04:38:56 EDT
To delete a bunch of lines, I select them, and use the delete key. The 2 lines
must be deleted at once.

If I use the "delete line" key, I am not reproducing the bug (the 2 lines are
deleted independantly).

I produced also it on eclipse 3.1RC3 on windows XP (so, seems not to be linked
to OS).
Comment 3 Dani Megert CLA 2005-08-05 04:51:09 EDT
3.1RC3 is a release candidate and not R3.1. Did you see it on R3.1?

Can you provide selection and caret for each step, e.g. do you have

111
222
333<caret><eof>

or
111
222
333
<caret><eof>
Comment 4 Sylvain Chabert CLA 2005-08-05 05:08:14 EDT
I produced the bug on eclipse 3.1 (final release) on linux debian.
I also produced the bug on eclipse 3.1RC3 on windows XP.

It works with both your scenarii:
This is the step I followed with the 1st scnenario

1)
111
222
333<caret><eof>

=> save

2)
111
<caret>222
333<eof>

with <caret> to <eof> selected 
=> hit the delete key and save

3)
111
<caret><eof>

=> undo typing

4)
111
<caret>222
333<eof>

with <caret> to <eof> selected

5)
111
222
<caret>333<eof>

with <caret> to <eof> selected 
=> hit the "delete" key

Bug: the file cannot be saved now


Hope you have enough data :)
Comment 5 Dani Megert CLA 2005-08-05 05:15:35 EDT
The editor thinks the file is not dirty (no * in the tab). Looks like a
modification stamp bug.
Comment 6 Tom Hofmann CLA 2006-01-05 08:59:45 EST
Cannot reproduce with I20051222.

I believe this could be bug 109104 which is in 3.1 has been fixed in 3.1.1 and 3.2 M2.
Comment 7 Dani Megert CLA 2006-01-05 09:01:12 EST
*** This bug has been marked as a duplicate of 109104 ***

*** This bug has been marked as a duplicate of 109104 ***
Comment 8 Sylvain Chabert CLA 2006-01-05 09:11:10 EST
Verified on 3.1.1