Find in Path not working with .dot (GraphViz dot language) file in project

Answered

IntelliJ version: IU-202.7319.50

I created a GraphViz .dot file in an IntelliJ project folder. When trying to use the 'Search in path' functionality no matches would turn up.

The log file contains the following stack trace:

2020-10-05 08:39:22,133 [1865230] ERROR - rains.concurrency.AsyncPromise - IntelliJ IDEA 2020.2.2 Build #IU-202.7319.50
2020-10-05 08:39:22,133 [1865230] ERROR - rains.concurrency.AsyncPromise - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2020-10-05 08:39:22,133 [1865230] ERROR - rains.concurrency.AsyncPromise - OS: Windows 10
2020-10-05 08:39:22,135 [1865232] ERROR - rains.concurrency.AsyncPromise - Failed to map data for input 763368 for index HtmlTagIdIndex
com.intellij.util.indexing.impl.MapReduceIndex$MapInputException: Failed to map data for input 763368 for index HtmlTagIdIndex
at com.intellij.util.indexing.impl.MapReduceIndex.mapInputAndPrepareUpdate(MapReduceIndex.java:231)
at com.intellij.util.indexing.FileBasedIndexImpl.updateSingleIndex(FileBasedIndexImpl.java:1387)
at com.intellij.util.indexing.FileBasedIndexImpl.lambda$doIndexFileContent$25(FileBasedIndexImpl.java:1292)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:557)
at com.intellij.util.indexing.FileBasedIndexImpl.doIndexFileContent(FileBasedIndexImpl.java:1262)
at com.intellij.util.indexing.FileBasedIndexImpl.indexFileContent(FileBasedIndexImpl.java:1214)
at com.intellij.util.indexing.FileBasedIndexImpl.processRefreshedFile(FileBasedIndexImpl.java:1185)
at com.intellij.util.indexing.FileBasedIndexImpl.access$500(FileBasedIndexImpl.java:94)
at com.intellij.util.indexing.FileBasedIndexImpl$VirtualFileUpdateTask.doProcess(FileBasedIndexImpl.java:1441)
at com.intellij.util.indexing.FileBasedIndexImpl$VirtualFileUpdateTask.doProcess(FileBasedIndexImpl.java:1438)
at com.intellij.util.indexing.UpdateTask.process(UpdateTask.java:77)
at com.intellij.util.indexing.UpdateTask.processAll(UpdateTask.java:46)
at com.intellij.util.indexing.FileBasedIndexImpl.forceUpdate(FileBasedIndexImpl.java:1460)
at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:699)
at com.intellij.psi.stubs.StubIndexImpl.getContainingIds(StubIndexImpl.java:448)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:294)
at com.intellij.psi.stubs.StubIndex.processElements(StubIndex.java:52)
at org.angularjs.index.AngularIndexUtil.multiResolve(AngularIndexUtil.java:88)
at org.angularjs.index.AngularIndexUtil.resolve(AngularIndexUtil.java:71)
at org.angularjs.index.AngularIndexUtil.lambda$getAngularJSVersion$2(AngularIndexUtil.java:160)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:54)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$1(CachedValueBase.java:235)
at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:112)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:71)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:236)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:43)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:76)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:110)
at org.angularjs.index.AngularIndexUtil.getAngularJSVersion(AngularIndexUtil.java:157)
at org.angularjs.index.AngularIndexUtil.hasAngularJS(AngularIndexUtil.java:151)
at org.angularjs.codeInsight.AngularJSHtmlExtension.isAvailable(AngularJSHtmlExtension.java:18)
at com.intellij.xml.XmlExtension.calcExtension(XmlExtension.java:63)
at com.intellij.xml.XmlExtension.lambda$getExtension$0(XmlExtension.java:46)
at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:153)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:54)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$1(CachedValueBase.java:235)
at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:112)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:71)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:236)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:43)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:76)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:150)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:120)
at com.intellij.xml.XmlExtension.getExtension(XmlExtension.java:46)
at com.intellij.xml.XmlExtension.getExtensionByElement(XmlExtension.java:73)
at com.intellij.psi.impl.source.xml.XmlTagDelegate.computeNamespaceMap(XmlTagDelegate.java:785)
at com.intellij.psi.impl.source.xml.XmlTagDelegate.lambda$getNamespaceMap$10(XmlTagDelegate.java:754)
at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:153)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:54)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$1(CachedValueBase.java:235)
at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:112)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:71)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:236)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:43)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:76)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:150)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:120)
at com.intellij.psi.impl.source.xml.XmlTagDelegate.getNamespaceMap(XmlTagDelegate.java:753)
at com.intellij.psi.impl.source.xml.XmlTagDelegate.getNamespaceByPrefix(XmlTagDelegate.java:673)
at com.intellij.psi.impl.source.html.HtmlTagDelegate.getNamespaceByPrefix(HtmlTagDelegate.java:79)
at com.intellij.psi.impl.source.xml.XmlTagImpl.getNamespaceByPrefix(XmlTagImpl.java:233)
at com.intellij.psi.impl.source.xml.XmlTagImpl.lambda$getNamespace$0(XmlTagImpl.java:221)
at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:153)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:54)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$1(CachedValueBase.java:235)
at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:112)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:71)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:236)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:43)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:76)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:150)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:120)
at com.intellij.psi.impl.source.xml.XmlTagImpl.getNamespace(XmlTagImpl.java:220)
at org.intellij.lang.xpath.xslt.XsltSupport.isXsltTag(XsltSupport.java:110)
at org.intellij.lang.xpath.xslt.XsltSupport.isXsltAttribute(XsltSupport.java:105)
at org.intellij.lang.xpath.xslt.XsltSupport.isXPathAttribute(XsltSupport.java:122)
at org.intellij.lang.xpath.xslt.impl.XPathLanguageInjector.getLanguagesToInject(XPathLanguageInjector.java:138)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl.processInPlaceInjectorsFor(InjectedLanguageManagerImpl.java:411)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.probeElementsUp(InjectedLanguageUtil.java:345)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.enumerate(InjectedLanguageUtil.java:164)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.findInside(InjectedLanguageUtil.java:502)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.tryOffset(InjectedLanguageUtil.java:481)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.findInjectedElementNoCommit(InjectedLanguageUtil.java:461)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl.findInjectedElementAt(InjectedLanguageManagerImpl.java:283)
at com.intellij.openapi.editor.EditorMouseHoverPopupManager.createContext(EditorMouseHoverPopupManager.java:374)
at com.intellij.openapi.editor.EditorMouseHoverPopupManager.lambda$handleMouseMoved$3(EditorMouseHoverPopupManager.java:163)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.insideReadAction(NonBlockingReadActionImpl.java:508)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$attemptComputation$3(NonBlockingReadActionImpl.java:456)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1110)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:77)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:153)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:114)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:56)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:629)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:581)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:56)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:111)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:77)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.attemptComputation(NonBlockingReadActionImpl.java:473)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$transferToBgThread$1(NonBlockingReadActionImpl.java:397)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalStateException: psiFile is null. language = Dot, substitutedLanguage = Dot
at com.intellij.util.indexing.FileContentImpl.createFileFromText(FileContentImpl.java:126)
at com.intellij.util.indexing.FileContentImpl.createFileFromText(FileContentImpl.java:115)
at com.intellij.util.indexing.FileContentImpl.getFileFromText(FileContentImpl.java:78)
at com.intellij.util.indexing.FileContentImpl.getPsiFileForPsiDependentIndex(FileContentImpl.java:251)
at com.intellij.util.indexing.FileContentImpl.getPsiFile(FileContentImpl.java:66)
at com.intellij.htmltools.html.HtmlTagIdIndex$1.map(HtmlTagIdIndex.java:61)
at com.intellij.htmltools.html.HtmlTagIdIndex$1.map(HtmlTagIdIndex.java:55)
at com.intellij.util.indexing.impl.MapReduceIndex.mapByIndexer(MapReduceIndex.java:306)
at com.intellij.util.indexing.impl.MapReduceIndex.mapInput(MapReduceIndex.java:298)
at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.mapInput(VfsAwareMapReduceIndex.java:157)
at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.mapInput(VfsAwareMapReduceIndex.java:41)
at com.intellij.util.indexing.impl.MapReduceIndex.mapInputAndPrepareUpdate(MapReduceIndex.java:225)
... 109 more

Removing the file from the project restored the expected behaviour of 'find in path'.

Regards

Dirk

6 comments
Comment actions Permalink

Hello,

Could you please share idea.log after restarting IDE?

0
Comment actions Permalink

How do i upload the Log?

0
Comment actions Permalink

It seems to be connected to the doT plugin

I installed the 

- doT plugin (https://plugins.jetbrains.com/plugin/7327) and

- the dotplugin (https://plugins.jetbrains.com/plugin/10312-dotplugin).

The doT plugin was disabled. After removing the doT plugin the functionality is restored.

Another error introduced due to installing the doT plugin was that i could not use the file menu anymore (either using the mouse or keys). This error scenario was also solved by uninstalling the doT plugin.

 

Regards

Dirk

0
Comment actions Permalink

Dirk,

There is no need for log anymore. Please report plugin vendor about those issues.

0
Comment actions Permalink

You're right.

 

Thanks!

0
Comment actions Permalink

Dirk,

You are welcome!

0

Please sign in to leave a comment.