mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Indexing: process NoSuchFileException: it is possible to not observe file system change until refresh is finished.
GitOrigin-RevId: 0ff19777b3c511e9edddf10d6e9f8fa265943efd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
254df84528
commit
4b2cb5c496
+2
-1
@@ -25,6 +25,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.nio.file.NoSuchFileException;
|
||||
import java.util.Collection;
|
||||
import java.util.concurrent.*;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
@@ -317,7 +318,7 @@ public final class IndexUpdateRunner {
|
||||
Throwable cause = e.getCause();
|
||||
VirtualFile file = e.getFile();
|
||||
String fileUrl = "File: " + file.getUrl();
|
||||
if (cause instanceof FileNotFoundException) {
|
||||
if (cause instanceof FileNotFoundException || cause instanceof NoSuchFileException) {
|
||||
// It is possible to not observe file system change until refresh finish, we handle missed file properly anyway.
|
||||
FileBasedIndexImpl.LOG.debug(fileUrl, e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user