| Summary: | 3.0 M8 - compiler doesn't update .class files after period of inactivity | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Eric Bourn <eric.bourn> |
| Component: | Resources | Assignee: | Platform-Resources-Inbox <platform-resources-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | john.arthorne |
| Version: | 3.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Eric Bourn
Are you using autobuild ? Do you have any information in .log or console ? Nothing related to this compiling issue is in the .log file or is displayed in the console. I'm not sure what autobuild is. I am simple hitting the save button to compile the file. I do have the "Perform build automatically on resource modification" option checked in the Workbench preferences. What does your .classpath file look like before/after this happens? The .classpath file did not change when I restarted Eclipse.... <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="Source/Java"/> <classpathentry kind="src" path="Test/Source/Java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="src" path="/jOMA - 9.2 Imports"/> <classpathentry kind="output" path="build"/> </classpath> But was it the same when you noticed that .class files were not being saved. After the restart, it may have been reset. Yes, it was the same before and after the restart. The .classpath file was never updated when I restarted Eclipse. Are there errors in the project? There are no compile errors or warnings. Last night I saw something similar. At some point, no compile did occur any longer; but in my case this was due to the fact I wasn't able to save my dirty editors any longer (they still had the * after a save action). The only thing which did work was to force a close of the editor, which then prompted me for saving and this one did work. I had nothing in log or console... Would it be the same for you ? After I save the file, the "*" does go away next to the file name. I actually just tried starting from a brand new workspace (figuring that maybe my old workspace was corrupted) but I just ran into the problem again. I just tried editing a new file (a file that exists in a cvs repository), but it doesn't seem to compile it. If I update the file, I do not get the ">" sign in the PackageExplorer view that indicates the file is now different from the source file. Another thing to add... When this problem occurs, I have noticed that nothing in the Problems view or Tasks view is ever updated. For instance, if I add a TODO task, this task will never be updated to the Task view. When I restart Eclipse however, it will show up. When this happens, can you look at the Progress view & enable the 'verbose' mode (see the menu in the top right corner). What jobs do you have running? Are any waiting on other jobs? When I enable verbose, the only thing that I see is: - Update Progress (SYSTEM) - Zzz SLEEPING: Periodic workspace save. The progress view does not get updated when this all happens. You don't see a build job getting posted? Or Update Task view or Problems view? They may be too quick so try a big change like making a heavily referenced type non-public. I tried updating a method from public to private and added a new task. After I saved the class, nothing was updated in any of the views. The progress view did not show anything and the task view did not show the new task that was added. I can't really tell why this starts happening though. Sometimes it may occur after five minutes, other times it may not be for an hour or so. This seems to the same as bug 57656. Moving to Platform Core. *** This bug has been marked as a duplicate of 57656 *** |