Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
Eclipse Randomly Deleting My Code when Refactoring

I have been using Eclipse for several years now with lots of ups and downs. Recently, I started having a brand new problem: I spend 20-30 min making changes to my code and suddenly (out of nowhere) Eclipse decides to revert all the changes I worked on in the last 20-30 minutes.

I followed the suggestion in this reply but Eclipse won't even show the new code I wrote in the Local History.

It's beginning to happen so frequently that it is really effecting productivity. One step ahead, two steps backwards. It occurs even when I religiously save my work every couple of minutes - even the "saved" changes are reverted.

Based on a quick analysis it seems this happens most frequently when I try to rename a variable and Eclipse says I need to select a variable (which I did, but that's besides the point) to refractor it. After I click OK in popup, at that point eclipse "undoes" all the code I worked on in the last twenty minutes or so. No questions asked.

Has anyone faced a similar situation? Really thinking of switching to IntelliJ IDEA even though I've been using eclipse for years.

Thanks

UPDATE 1:

I noticed the issue occurs only after I get the following message:

A fatal error occurred while performing the refracting

A local variable deceleration or reference must be selected to activate the Refactoring 

UPDATE 2:

I am now able to restore recent edits via Local History. In other words, the recent edits are showing up now in Local History, so this was an oversight on my end. However the primary problem with Eclipse reverting changes when refactoring variable is still present. In other words, I still need to "restore" my work every 20-30 minutes (when refactoring variable that results in fatal error message above) via Local History.

UPDATE 3:

The error also occurs when I try to refactor and get the following message:

Rename Refactoring: Could not a method for project handle "null" with handle identifier.. 

enter image description here

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!