Kotlin plugin generates NPE over and over?

Answered

Anybody else run into this on Intellij 15.0.5?   I got this error over and over again every few seconds - finally had to disable the Kotlin plugin.   Not sure what all Kotlin's used for internally in Intellij, but I'm not using it in my project.  

 

2016-05-06 12:52:34,738 [4811066] ERROR - aemon.impl.PassExecutorService - IntelliJ IDEA 15.0.5 Build #IU-143.2332.3
2016-05-06 12:52:34,738 [4811066] ERROR - aemon.impl.PassExecutorService - JDK: 1.8.0_74
2016-05-06 12:52:34,738 [4811066] ERROR - aemon.impl.PassExecutorService - VM: Java HotSpot(TM) 64-Bit Server VM
2016-05-06 12:52:34,738 [4811066] ERROR - aemon.impl.PassExecutorService - Vendor: Oracle Corporation
2016-05-06 12:52:34,738 [4811066] ERROR - aemon.impl.PassExecutorService - OS: Windows 7
2016-05-06 12:52:34,738 [4811066] ERROR - aemon.impl.PassExecutorService - Last Action: EditorEnter
2016-05-06 12:52:34,738 [4811066] ERROR - aemon.impl.PassExecutorService - null
java.lang.NullPointerException
at org.jetbrains.kotlin.android.inspection.IllegalIdentifierInspection$buildVisitor$1.visitElement(IllegalIdentifierInspection.kt:37)
at com.intellij.psi.impl.source.jsp.jspJava.JspxImportListImpl.accept(JspxImportListImpl.java:259)
at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:81)
at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:69)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:294)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$200(LocalInspectionsPass.java:73)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:261)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:256)
at com.intellij.concurrency.ApplierCompleter.b(ApplierCompleter.java:122)
at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)
at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:85)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1177)
at com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:94)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:106)
at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:82)
at jsr166e.CountedCompleter.exec(CountedCompleter.java:684)
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:108)

4 comments

Looks like https://youtrack.jetbrains.com/issue/KT-11853. Do you have any package named as a reserved keyword?

0

I did previously have a groovy script which turned out to have an illegal name - I think - it was something like "my-12345.groovy".     But that script has long ago been renamed.   That project is not even open anymore.

The error, however, has remained - it happens no matter what project I have open, or what I'm doing.   I've tried deleting cache, restarting, everything short of a complete uninstall/reinstall.   Nothing stops this error except disabling the Kotlin plugin.

0

See https://youtrack.jetbrains.com/issue/KT-11688. IDEA 15.0.5 bundles Kotlin plug-in that still has this bug. You can install 1.0.1-release-IJ143-40 version from the plugins repository and it should fix the problem.

0

Please sign in to leave a comment.