clj-kondo error 🧵
Unhandled exception in [Kernel@ql7nmo87lfmg01f0nmbk, Rete(abortOnError=false, commands=capacity=2147483647,data=[onReceive], reteState=kotlinx.coroutines.flow.StateFlowImpl@754ba872, dbSource=ReteDbSource(reteState=kotlinx.coroutines.flow.StateFlowImpl@754ba872)), DbSourceContextElement(kernel Kernel@ql7nmo87lfmg01f0nmbk), ComponentManager(ProjectImpl@694195541), com.intellij.codeWithMe.ClientIdContextElementPrecursor@46a46d2d, CoroutineName(cursive.kondo.KondoInitCoroutineScopeProvider), Dispatchers.Default]
java.io.IOException: Incorrect function
at java.base/sun.nio.ch.FileDispatcherImpl.lock0(Native Method)
at java.base/sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:107)
at java.base/sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1551)
at java.base/java.nio.channels.FileChannel.tryLock(FileChannel.java:1360)
at clj_kondo.impl.cache$sync_cache$fn__4340.invoke(cache.clj:202)
at clj_kondo.impl.cache$sync_cache.invokeStatic(cache.clj:202)
at clj_kondo.impl.cache$sync_cache.invoke(cache.clj:199)
at clj_kondo.core$run_BANG_.invokeStatic(core.clj:237)
at clj_kondo.core$run_BANG_.invoke(core.clj:67)
at clj_kondo.core$run_BANG_.invokeStatic(core.clj:128)
at clj_kondo.core$run_BANG_.invoke(core.clj:67)
at cursive.kondo.shim$invoke.invokeStatic(Unknown Source)
at cursive.kondo.shim$invoke.invoke(Unknown Source)
at clojure.lang.Var.invoke(Var.java:381)
at org.projectodd.shimdandy.impl.ClojureRuntimeShimImpl.invoke(ClojureRuntimeShimImpl.java:104)
at org.projectodd.shimdandy.impl.ClojureRuntimeShimImpl.invoke(ClojureRuntimeShimImpl.java:97)
at cursive.kondo.KondoStartupActivity$Companion$maybeInitKondo$2$1$1$1$result$1.invokeSuspend(kondo.kt:436)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:130)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:613)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1183)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:778)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:765)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [Kernel@ql7nmo87lfmg01f0nmbk, Rete(abortOnError=false, commands=capacity=2147483647,data=[onReceive], reteState=kotlinx.coroutines.flow.StateFlowImpl@754ba872, dbSource=ReteDbSource(reteState=kotlinx.coroutines.flow.StateFlowImpl@754ba872)), DbSourceContextElement(kernel Kernel@ql7nmo87lfmg01f0nmbk), ComponentManager(ProjectImpl@694195541), com.intellij.codeWithMe.ClientIdContextElementPrecursor@46a46d2d, CoroutineName(cursive.kondo.KondoInitCoroutineScopeProvider), StandaloneCoroutine{Cancelled}@6da95a15, Dispatchers.Default]also causes the second error:
ExternalToolPass:
com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: com.intellij.diagnostic.PluginException: annotator: cursive.kondo.KondoAnnotator@b0975d8 (class cursive.kondo.KondoAnnotator) [Plugin: com.cursiveclojure.cursive]
at com.intellij.idea.IdeaLogger.error(IdeaLogger.java:151)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.processError(ExternalToolPass.java:295)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doAnnotate(ExternalToolPass.java:251)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doAnnotate(ExternalToolPass.java:236)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$3(ExternalToolPass.java:194)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.runChangeAware(ExternalToolPass.java:309)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$5(ExternalToolPass.java:194)
at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$runUnderDisposeAwareIndicator$15(BackgroundTaskUtil.java:371)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:229)
at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:44)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:228)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$14(CoreProgressManager.java:681)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:756)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:712)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:680)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:78)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:209)
at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:366)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.run(ExternalToolPass.java:192)
at com.intellij.util.ui.update.Update.execute$suspendImpl(Update.kt:61)
at com.intellij.util.ui.update.Update.execute(Update.kt)
at com.intellij.util.ui.update.MergingUpdateQueue.executeUpdates$suspendImpl(MergingUpdateQueue.kt:386)
at com.intellij.util.ui.update.MergingUpdateQueue.executeUpdates(MergingUpdateQueue.kt)
at com.intellij.util.ui.update.MergingUpdateQueue$restart$1.invokeSuspend(MergingUpdateQueue.kt:358)
at com.intellij.util.ui.update.MergingUpdateQueue$restart$1.invoke(MergingUpdateQueue.kt)
at com.intellij.util.ui.update.MergingUpdateQueue$restart$1.invoke(MergingUpdateQueue.kt)
at com.intellij.util.SingleAlarm$scheduleTask$1$1$1$2.invokeSuspend(SingleAlarm.kt:405)
at com.intellij.util.SingleAlarm$scheduleTask$1$1$1$2.invoke(SingleAlarm.kt)
at com.intellij.util.SingleAlarm$scheduleTask$1$1$1$2.invoke(SingleAlarm.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:44)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:157)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at com.intellij.util.SingleAlarm$scheduleTask$1$1.invokeSuspend(SingleAlarm.kt:403)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:613)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1189)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:778)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:765)
Caused by: com.intellij.diagnostic.PluginException: annotator: cursive.kondo.KondoAnnotator@b0975d8 (class cursive.kondo.KondoAnnotator) [Plugin: com.cursiveclojure.cursive]
at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23)
at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.processError(ExternalToolPass.java:294)
... 37 more
Caused by: java.io.IOException: Incorrect function
at java.base/sun.nio.ch.FileDispatcherImpl.lock0(Native Method)
at java.base/sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:107)
at java.base/sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1551)
at java.base/java.nio.channels.FileChannel.tryLock(FileChannel.java:1360)
at clj_kondo.impl.cache$sync_cache$fn__4340.invoke(cache.clj:202)
at clj_kondo.impl.cache$sync_cache.invokeStatic(cache.clj:202)
at clj_kondo.impl.cache$sync_cache.invoke(cache.clj:199)
at clj_kondo.core$run_BANG_.invokeStatic(core.clj:237)
at clj_kondo.core$run_BANG_.invoke(core.clj:67)
at cursive.kondo.shim$invoke_with_input$fn__16854.invoke(Unknown Source)
at cursive.kondo.shim$invoke_with_input.invokeStatic(Unknown Source)
at cursive.kondo.shim$invoke_with_input.invoke(Unknown Source)
at clojure.lang.Var.invoke(Var.java:385)
at org.projectodd.shimdandy.impl.ClojureRuntimeShimImpl.invoke(ClojureRuntimeShimImpl.java:119)
at org.projectodd.shimdandy.impl.ClojureRuntimeShimImpl.invoke(ClojureRuntimeShimImpl.java:112)
at cursive.kondo.KondoAnnotator.doAnnotate(annotator.kt:146)
at cursive.kondo.KondoAnnotator.doAnnotate(annotator.kt:47)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.lambda$doAnnotate$1(ExternalToolPass.java:244)
at com.intellij.codeInsight.daemon.impl.AnnotationSessionImpl.computeWithSession(AnnotationSessionImpl.java:87)
at com.intellij.codeInsight.daemon.impl.AnnotationSessionImpl.computeWithSession(AnnotationSessionImpl.java:79)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doAnnotate(ExternalToolPass.java:242)
... 36 more(reporting here because reporting is still not working due to the 401 Unauthorized issue)
Thanks I'll look at that tomorrow.
Hmm, reporting should be working on the latest EAP
@jbiserkov is this windows? https://stackoverflow.com/questions/25390927/filechannel-trylock-causes-java-io-ioexception-incorrect-function
perhaps you can also try to run clj-kondo from the command line to see if you get the same error