Offline code inspection throws an exception


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.

at com.intellij.openapi.diagnostic.Logger.error(
at com.intellij.codeInspection.InspectionApplication.a(
at com.intellij.codeInspection.InspectionApplication.b(
at com.intellij.codeInspection.InspectionApplication.access$200(
at com.intellij.codeInspection.InspectionApplication$
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(
at com.intellij.codeInspection.InspectionApplication.startup(
at com.intellij.codeInspection.InspectionMain.main(
at com.intellij.idea.MainImpl$1$1$
at java.awt.event.InvocationEvent.dispatch(
at java.awt.EventQueue.dispatchEventImpl(
at java.awt.EventQueue.access$500(
at java.awt.EventQueue$
at java.awt.EventQueue$
at Method)
at java.awt.EventQueue.dispatchEvent(
at com.intellij.ide.IdeEventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForFilters(
at java.awt.EventDispatchThread.pumpEventsForFilter(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(
[  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.


Comment actions Permalink


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.



Comment actions Permalink


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.


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.




Please sign in to leave a comment.