Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse 3.5.2 bug: save file not working

Tags:

java

eclipse

I cannot save one of my edited files in Eclipse 3.5.2 (Build id: M20100211-1343, using Ubuntu 10.04 LTS). I really love when the most important feature of a program is not working.

Has anybody else experienced this bug? Should I report it at https://bugs.eclipse.org/bugs/? Or might it be caused by a plugIn?

In detail:

I edited a java file in the editor and cannot save it. Neither File -> Save nor Ctr-S is doing anything at all. When I switch to other files, I can save those. Looking under workspace, the file is still there, unmodified (same rights as other files, not saved recently).

Since this now happened for the third time, I checked at https://bugs.eclipse.org/bugs/buglist.cgi?quicksearch=%22save+file%22 but couldn't find anything appropriate. I checked several log files, e.g. workspace/.metadata/.log, but did not find a recent exception. Should I look in a different log file?

I did find several exceptions some time ago (>1 hour), see below. For my amateurish view, they don't seem to be the cause. Am I wrong?

  • some by sonar plugin
  • some by infinitest plugin
  • one that sounds fitting, but the file not savable hasn't been moved and is under version control for quite a while. Bug 240286 and Bug 307140 don't seem to be my situation.

    !SUBENTRY 1 org.eclipse.jdt.core 4 966 2011-08-31 16:01:08.633 !MESSAGE Problems encountered while moving resources. !STACK 1 org.eclipse.core.internal.resources.ResourceException: Problems encountered while moving resources. at org.eclipse.core.internal.resources.Resource.move(Resource.java:1476) at org.eclipse.jdt.internal.core.CopyResourceElementsOperation.processCompilationUnitResource(CopyResourceElementsOperation.java:331) at ... sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311) Contains: Cannot move a file to a location that is not managed by SVN. Try Team -> Copy followed by Delete. !SUBENTRY 2 org.eclipse.core.resources 4 4 2011-08-31 16:01:08.633 !MESSAGE Problems encountered while moving resources. !SUBENTRY 3 org.tigris.subversion.subclipse.core 4 -6 2011-08-31 16:01:08.633 !MESSAGE Cannot move a file to a location that is not managed by SVN. Try Team -> Copy followed by Delete.

like image 591
DaveFar Avatar asked Sep 09 '11 15:09

DaveFar


2 Answers

I have also encountered the same problem with Juno. The answer is given in the post Why can't I save file in Eclipse Juno?

in Short, use save all (ctrl+shift+s) as a workaround till the problem is fixed in the IDE.

Thanks Dheeraj

like image 182
Dheerajs83 Avatar answered Oct 11 '22 16:10

Dheerajs83


For those who reached here by googling, I was facing similar issue. I use Eclipse Oxygen IDE for Java EE and I wanted to work on Scala so I installed Scala IDE and Scala Worksheet via help > Install new Software

I created a Scala class file and typed some code but I was unable to save the file. Referring to suggestion in comment I did close > save. After this, issue vanished and I was able to save this file in usual way Ctrl + s

like image 38
ManojKumar Avatar answered Oct 11 '22 16:10

ManojKumar