diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/compiler/generator/GroovycStubGenerator.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/compiler/generator/GroovycStubGenerator.java index 1eda5cea10d0..a02a2b9ec3b6 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/compiler/generator/GroovycStubGenerator.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/compiler/generator/GroovycStubGenerator.java @@ -141,7 +141,13 @@ public class GroovycStubGenerator extends GroovyCompilerBase { deleteChildrenRecursively(child); } TranslatingCompilerFilesMonitor.removeSourceInfo(child); - child.delete(this); + try { + child.delete(this); + } + catch (IOException ignored) { + //may be a leaked handle from some non-completely terminated compiler process, or compiler caches, or something else + //not a big deal, we'll delete it next time + } } } }.execute();