diagnostic for EA-101294 - IVFAE: VirtualDirectoryImpl.doFindChild

This commit is contained in:
Alexey Kudravtsev
2017-05-17 14:40:26 +03:00
parent 18c3ec3078
commit 77a6a254d2
@@ -15,6 +15,8 @@
*/
package com.intellij.openapi.vfs;
import java.io.File;
/**
* @author max
*/
@@ -34,6 +36,13 @@ public class InvalidVirtualFileAccessException extends RuntimeException {
try {
VirtualFile found = VirtualFileManager.getInstance().findFileByUrl(url);
message += "; original:" + hashCode(file) + "; found:" + hashCode(found);
if (file.isInLocalFileSystem()) {
boolean physicalExists = new File(file.getPath()).exists();
message += "; File.exists()=" + physicalExists;
}
else {
message += "; file system=" + file.getFileSystem();
}
}
catch (Throwable t) {
message += "; lookup failed: " + t.getMessage();