History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16874
Type: Bug Bug
Status: Open Open
Assignee: Anton Makeev
Reporter: Stephen Friedrich
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Local History fails without warning

Created: 14 Jan 08 19:35   Updated: 16 Jan 08 13:35
Component/s: Local History

File Attachments: None
Image Attachments:

1. sorry-i-deleted-all-your-changes.png
(22 kb)

Build: 7,613
Severity: Extreme


 Description  « Hide
While debugging a style error in my web app I did the following:
  • I set a local history label "a" on the project (no warning at all)
  • Did svn revert on a large css file
  • Checked if that changes anything
  • Noted that the error is still there
  • Tried to revert the css file to label "a"
  • Got a warning that Idea cannot revert the file because it has "big content"

WT*?
Please warn before trashing my work!!!

Now I have to try and reconstruct the changes I did in the last few hours manually.

If the content is too big, you could sure tell me so when setting the label, right?

#!§$!$%§"%$§ Grrrr.



 All   Comments   Work Log   Change History      Sort Order:
Stephen Friedrich - 14 Jan 08 19:46
BTW the css file has a gigantic size of 14 KB

Anton Makeev - 15 Jan 08 16:05
I apologize for inconvinience this problem caused to you.

Since you claim that named css file is very small, it is obvious that the problem isn't with "big content". The message was shown in account of absent or corrupted content of the file in local history, that was damaged somehow.

It would be very valuable if you could remember if you had seen local history for the file before you had put the label? I mean that the file content could had been corrupted even earlier (and thus you couldn't view local history before you put the label).

We will add some error reporting facilities in the next eap and will try to find out what could cause the history corruption.

PS local history stores content of 1 mb maximum, so this shouldn't be any issue in general.


Stephen Friedrich - 15 Jan 08 23:43
Thanks for answering and sorry for being so rough.
I was already oh so frustrated from fiddling with CSS to get my app to adhere to a very strict corporate style guide for the better part of the day.
Losing my recent changes was just the tipping point.

I really can't remember if had a look at the local history before that.

In the mean time I upgraded to 7648 (starting with a fresh systems folder) and the problem seems to be gone.
However I won't trust the local history for a while now.

Do you really mean to say only 1 mb of changes are stored?

I still have my old systems folder. Is there anything I can investigate there? From a first look I see that there is an empty file ".broken" in the "LocalHistory" folder.


Anton Makeev - 16 Jan 08 13:35
Frankly to say I'm not sure we have identified the exact source of the problem. Though we take some measures to reduce the possibility of local history corruption. And we are still examining our code for possible bugs.

In the next eap the problems with storage will be reported as soon as they discovered.

The .broken file is a marker that is placed if any errors has been found. I'm not sure you can find anything useful in local history storage without the IDEA source code.

As for the size of history storage - I meant that file contents of more that 1 mb are not stored. But other files are. This size should be pretty enough for any hand-written file I could imagine.

Anyway, we are doing our best to solve the problem.
Thanks for your feedbak.