Pr1st0n / cflint-intellij

CFLint plugin for IntelliJ IDEA Ultimate
https://plugins.jetbrains.com/plugin/15567-cflint
Apache License 2.0
10 stars 1 forks source link

Exception in plugin CFLint #30

Open cmcneese opened 3 years ago

cmcneese commented 3 years ago

I had left my machine running for a day or so and had the following errors in my log:

Details: java.lang.NullPointerException

java.lang.Throwable: Invalid CFLint Configuration at com.intellij.openapi.diagnostic.Logger.error(Logger.java:179) at com.pr1st0n.cflint.CFLintInspection.checkFile(CFLintInspection.kt:54) at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:145) at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:60) at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:65) at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:56) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.runToolOnElements(LocalInspectionsPass.java:320) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$4(LocalInspectionsPass.java:279) at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:161) at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:153) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$5(LocalInspectionsPass.java:277) at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:132) at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:121) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$6(LocalInspectionsPass.java:277) at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:136) at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:149) at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:149) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1096) at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:92) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:688) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:634) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:64) at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:104) at com.intellij.concurrency.ApplierCompleter.lambda$compute$0(ApplierCompleter.java:83) at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:167) at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:178) at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:83) at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

Pr1st0n commented 3 years ago

Hi @cmcneese, Thanks for reporting the issue! Could you provide more details? Your CFLint config may also be helpful to reproduce the issue

cmcneese commented 3 years ago

@Pr1st0n sure, I'd be happy to help! What types of details are you looking for, I'll get you those as soon as possible. I work in CF daily.

Pr1st0n commented 3 years ago

Do you use default CFLint rules set or have an own config? Did this exception affected plugin functionality?

cmcneese commented 3 years ago

Yes, I have left CFLint rules to default settings.