4 comments
Comment actions Permalink

Please try File | Invalidate Caches | Invalidate and Restart.

Check idea.log for errors (https://intellij-support.jetbrains.com/entries/23352446).

0
Comment actions Permalink

Still having the same problem, autocompletion doesn't even work anymore and auto import either

0
Comment actions Permalink

Hi!

I have the same problem which turned out to be connected to the TestNG plugin. When I noticed the following exception in the IDEA log file:

java.lang.NoClassDefFoundError: Could not initialize class com.theoryinpractice.testng.util.TestNGUtil
 at com.theoryinpractice.testng.inspection.TestNGEntryPoint.getIgnoreAnnotations(TestNGEntryPoint.java:78)
 at com.intellij.codeInspection.ex.EntryPointsManagerBase.getAdditionalAnnotations(EntryPointsManagerBase.java:63)
 at com.intellij.codeInspection.ex.EntryPointsManagerBase.isEntryPoint(EntryPointsManagerBase.java:404)
 at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.isInjected(PostHighlightingPass.java:129)
 at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.isImplicitUsage(PostHighlightingPass.java:338)
 at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.processLocalVariable(PostHighlightingPass.java:304)
 at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.processIdentifier(PostHighlightingPass.java:281)
 at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.collectHighlights(PostHighlightingPass.java:242)
 at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.access$000(PostHighlightingPass.java:78)
 at com.intellij.codeInsight.daemon.impl.PostHighlightingPass$1.run(PostHighlightingPass.java:156)
 at com.intellij.codeInsight.daemon.impl.RefCountHolder.retrieveUnusedReferencesInfo(RefCountHolder.java:352)
 at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.collectInformationWithProgress(PostHighlightingPass.java:153)
 at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:91)
 at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:62)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:438)
 at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1146)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:429)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.registerIndicatorAndRun(ProgressManagerImpl.java:281)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:426)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:402)
 at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask.exec(JobLauncherImpl.java:202)
 at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
 at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
 at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
 at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
 at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:109)
2015-03-23 13:54:32,707 [ 144378]  ERROR - aemon.impl.PassExecutorService - IntelliJ IDEA 1

I turned off the TestNG plugin and everything went back to normal.

Hope this helps.

Regards,
Alexey

0

Please sign in to leave a comment.