Offline code inspection throws an exception

Answered

To community,

I have two questions of code inspection.

1) Offline code inspection works well, but it generates an exception at the end.
I'm doing code inspection multiple times, so that exception log makes monitoring hard.

java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:115)
at com.intellij.codeInspection.InspectionApplication.a(InspectionApplication.java:494)
at com.intellij.codeInspection.InspectionApplication.b(InspectionApplication.java:269)
at com.intellij.codeInspection.InspectionApplication.access$200(InspectionApplication.java:61)
at com.intellij.codeInspection.InspectionApplication$1.run(InspectionApplication.java:105)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:938)
at com.intellij.codeInspection.InspectionApplication.startup(InspectionApplication.java:96)
at com.intellij.codeInspection.InspectionMain.main(InspectionMain.java:112)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:197)
at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:63)
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.dispatchEvent(IdeEventQueue.java:360)
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)
[  12536]  ERROR - spection.InspectionApplication - IntelliJ IDEA 15.0  Build #IU-143.381.42
[  12536]  ERROR - spection.InspectionApplication - JDK: 1.8.0_40-release
[  12536]  ERROR - spection.InspectionApplication - VM: OpenJDK 64-Bit Server VM
[  12536]  ERROR - spection.InspectionApplication - Vendor: JetBrains s.r.o
[  12536]  ERROR - spection.InspectionApplication - OS: Mac OS X
[  12536]  ERROR - spection.InspectionApplication - Last Action: 
[  12541]  ERROR - spection.InspectionApplication - ScalaDocUnknownParameter descriptionUrl==ScalaDocUnknownParameter

 

2) Can I manually check whether code inspection result is empty or not?
I'm wondering checking unused.xml existence is the only way.

Thanks!

3 comments
Comment actions Permalink

Hi,

1. the exception is scrambled and looks like the code is already changed. Looks like the ScalaDocUnknownParameter inspection doesn't provide description and the exception report that. 

2. Inspections would generate files per inspection + decription.xml. So you may check if the number of files in the output directory is more than 1.

Anna

 

0
Comment actions Permalink

@Anna,

Cause I am new to IntelliJ plugin, I want to clarify that where description, or description.xml,should be defined.

It looks like a kind of inspection configuration, but I didn't enable ScalaDocUnknownParameter inspection.

 

0
Comment actions Permalink

The inspections just dump all inspection descriptions to descriptions.xml file in the output directory (even disabled ones to avoid differences for the CI). I assume that this scala inspection comes from scala plugin, right? Then they should provide the description for it.

Anna

 

0

Please sign in to leave a comment.