Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Lost significant code edits while trying to refactor some class names
Lost significant code edits while trying to refactor some class names [message #1718878] Thu, 31 December 2015 09:13
Eclipse UserFriend
I just lost about an hour worth of coding, when I was refactoring some class names, and one failed saying something like "cannot analyze the symbol.."; the entire file had simply jumped to a very old snapshot of the file. (I used ctrl+s during all changes to make sure there were no unsaved changes).
I was able to randomly recreate a similar but much smaller jump, several times, on the following code:

enum XPerfStatsType {ThreadPerfStats=1, MsgPerfStats, MAX_TYPES};

class XPerfStats 
{
public:
	XPerfStats(){ m_XPerfStatsType = 0; }
	virtual void Reset() = 0;
	virtual void DumpPerfStats() = 0;
	int m_XPerfStatsType;
};


1. hit alt+shift+R and refactor class "XPerfStats" to "BasePerfStat" and hit Enter (i.e. without opening the refactor dialog)
2. hit ctrl+s just to make sure.
3. now refactor enum "XPerfStatsType" to "PerfStatType" the same way.
4. randomly sometimes step 3 fails saying "cannot analyze the symbol.."; and immediately both the enum and class name jumps back to the original.

Is there a stronger way (than ctrl+s) to commit/flush all changes and ensure that nothing can rollback to an earlier point than this under any circumstance?
Previous Topic:Avoid to re-build projects which are referenced
Next Topic:c-code after preprocessor operation in eclipse
Goto Forum:
  


Current Time: Sat Nov 08 21:09:00 EST 2025

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

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

Back to the top