mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
more diagnostics on stub-ast mismatch
This commit is contained in:
@@ -448,14 +448,15 @@ public class StubIndexImpl extends StubIndex implements ApplicationComponent, Pe
|
||||
if (psiFile != null) {
|
||||
msg += "\nviewProvider stamp: " + psiFile.getViewProvider().getModificationStamp();
|
||||
if (psiFile instanceof PsiFileImpl) {
|
||||
StubElement stub = ((PsiFileImpl)psiFile).getStub();
|
||||
msg += "; psi.stubbed: " + (stub != null);
|
||||
StubTree stub = ((PsiFileImpl)psiFile).getStubTree();
|
||||
if (stub == null) {
|
||||
FileElement treeElement = ((PsiFileImpl)psiFile).getTreeElement();
|
||||
msg += "; ast loaded: " + (treeElement != null);
|
||||
if (treeElement != null) {
|
||||
msg += "; ast parsed: " + treeElement.isParsed();
|
||||
}
|
||||
} else {
|
||||
msg += "\nstub info=" + stub.getDebugInfo();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user