idok / eslint-plugin

ESLint plugin for intellij
http://plugins.jetbrains.com/plugin/7494
MIT License
151 stars 18 forks source link

NPE in WebStorm 2018.1 #74

Open chrkv opened 6 years ago

chrkv commented 6 years ago
java.lang.NullPointerException
    at java.util.Objects.requireNonNull(Objects.java:203)
    at java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
    at java.util.Arrays.asList(Arrays.java:3800)
    at com.eslint.config.schema.RuleCache.read(RuleCache.java:35)
    at com.eslint.config.schema.RuleCache.initializeFromPaths(RuleCache.java:105)
    at com.eslint.config.schema.RuleCache.initializeFromPath(RuleCache.java:97)
    at com.eslint.ESLintProjectComponent.validateSettings(ESLintProjectComponent.java:124)
    at com.eslint.ESLintProjectComponent.isSettingsValid(ESLintProjectComponent.java:78)
    at com.eslint.ESLintProjectComponent.initComponent(ESLintProjectComponent.java:58)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:483)
    ... 21 more
bbecker-te commented 5 years ago

I am seeing a very similar exception using latest ESlint plugin in intellij 2019.1 It has occurred over 100 times.

Error running ESLint inspection:

java.lang.IllegalArgumentException: Argument for @NotNull parameter 'nodeInterpreter' of com/eslint/utils/ESLintRunner.buildSettings must not be null at com.eslint.utils.ESLintRunner.$$$reportNull$$$0(ESLintRunner.java) at com.eslint.utils.ESLintRunner.buildSettings(ESLintRunner.java) at com.eslint.utils.ESLintRunner.buildSettings(ESLintRunner.java:37) at com.eslint.utils.ESLintRunner.lint(ESLintRunner.java:63) at com.eslint.ESLintExternalAnnotator.doAnnotate(ESLintExternalAnnotator.java:248) at com.eslint.ESLintExternalAnnotator.doAnnotate(ESLintExternalAnnotator.java:58) at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doAnnotate(ExternalToolPass.java:192) at com.intellij.codeInsight.daemon.impl.ExternalToolPass.access$600(ExternalToolPass.java:41) at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$1(ExternalToolPass.java:166) at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$runUnderDisposeAwareIndicator$10(BackgroundTaskUtil.java:243) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$3(CoreProgressManager.java:180) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:180) at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:263) at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:242) at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.run(ExternalToolPass.java:165) at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:336) at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:326) at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:276) at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:290) at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:245) at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:232) at com.intellij.util.Alarm$Request.runSafely(Alarm.java:368) at com.intellij.util.Alarm$Request.run(Alarm.java:355) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:224) at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:220) at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:26) at com.intellij.util.concurrency.BoundedTaskExecutor$2.lambda$run$0(BoundedTaskExecutor.java:198) at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:224) at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:194) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source)