apache / apache/grails-intellij-plugin
Grails: IndexNotReadyException on Tests button pressing
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
141.712.1
open project, for some domain class press Tests button (while index is not completely built for the project)
Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation
com.intellij.openapi.project.IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation
```
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:854)
at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:803)
at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:787)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:250)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:238)
at com.intellij.psi.stubs.StubIndex.process(StubIndex.java:76)
at com.intellij.psi.stubs.StubIndex.process(StubIndex.java:95)
at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:227)
at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:144)
at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:134)
at com.intellij.psi.impl.java.stubs.index.JavaShortClassNameIndex.get(JavaShortClassNameIndex.java:55)
at com.intellij.psi.impl.PsiShortNamesCacheImpl.getClassesByName(PsiShortNamesCacheImpl.java:67)
at com.intellij.psi.impl.CompositeShortNamesCache.getClassesByName(CompositeShortNamesCache.java:77)
at org.jetbrains.plugins.grails.tests.GrailsTestUtils.getTestsForArtifact(GrailsTestUtils.java:69)
at org.jetbrains.plugins.grails.editor.GenerateTestsAction.findTestClass(GenerateTestsAction.java:90)
at org.jetbrains.plugins.grails.editor.GenerateTestsAction.access$000(GenerateTestsAction.java:38)
at org.jetbrains.plugins.grails.editor.GenerateTestsAction$1.run(GenerateTestsAction.java:80)
at org.jetbrains.plugins.groovy.mvc.MvcConsole$3$1.run(MvcConsole.java:330)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:332)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:702)
at java.awt.EventQueue$3.run(EventQueue.java:696)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:734)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
```
---
*Imported from [IDEA-139364](https://youtrack.jetbrains.com/issue/IDEA-139364) · Type: Exception · Votes: 1*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with org.jetbrains.plugins.grails.editor.GenerateTestsAction.java and GrailsTestUtils.java, especially the calls shown in the stack trace. Read the IndexNotReadyException documentation and reproduce the failure by pressing Tests while the project index is still building. Done means the action no longer fails with this exception in that situation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100