Skip to content

Commit

Permalink
Do not serialize out container cache when locked
Browse files Browse the repository at this point in the history
  • Loading branch information
briandealwis committed Jun 28, 2018
1 parent f72879f commit c571849
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,13 @@ public IStatus resolveContainer(
new IJavaProject[] {javaProject},
new IClasspathContainer[] {container},
subMonitor.newChild(1));
serializer.saveContainer(javaProject, container);
if (!javaProject.getProject().getWorkspace().isTreeLocked()) {
// The classpath container update may have been triggered as part of a resource change
// in which case the workspace is locked and so we cannot serialize out our
// container cache. There will be other opportunities.
// https://github.com/GoogleCloudPlatform/google-cloud-eclipse/issues/3181
serializer.saveContainer(javaProject, container);
}
for (Job job : sourceAttacherJobs) {
job.schedule();
}
Expand Down

0 comments on commit c571849

Please sign in to comment.