Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nil Language Error on Clojure Code Blocks in Markdown #1256

Closed
alexanderkiel opened this issue Feb 12, 2016 · 3 comments
Closed

Nil Language Error on Clojure Code Blocks in Markdown #1256

alexanderkiel opened this issue Feb 12, 2016 · 3 comments
Labels
released Marks issues which have had the fixes released in a stable build
Milestone

Comments

@alexanderkiel
Copy link

I get errors when I open a Markdown file which contains Clojure marked code blocks like the one from ring-hap.

Environment:

  • IDEA 15.0.3
  • Cursive 1.1.0-15
  • Markdown support 8.0.0.20151209

Error:

nil language
java.lang.NullPointerException
    at cursive.symbol$var_meta.invoke(symbol.clj:51)
    at cursive.resolve.symbol$resolve_symbol.invoke(symbol.clj:88)
    at clojure.lang.Var.invoke(Var.java:383)
    at cursive.psi.impl.symbols.SymbolReference$SymbolResolver.resolve(SymbolReference.java:67)
    at cursive.psi.impl.symbols.SymbolReference$SymbolResolver.resolve(SymbolReference.java:64)
    at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:144)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:167)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:159)
    at cursive.psi.impl.symbols.SymbolReference.multiResolve(SymbolReference.java:58)
    at cursive.resolve$resolve.invoke(resolve.clj:55)
    at cursive.resolve$resolve_keys.invoke(resolve.clj:183)
    at cursive.resolve$list_resolve_symbols$fn__13190.invoke(resolve.clj:201)
    at cursive.psi$cached_value$reify__12657.compute(psi.clj:497)
    at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
    at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222)
    at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:66)
    at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
    at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:84)
    at cursive.psi$cached_value.doInvoke(psi.clj:500)
    at clojure.lang.RestFn.invoke(RestFn.java:494)
    at cursive.resolve$list_resolve_symbols.invoke(resolve.clj:198)
    at cursive.intellij.gutter$line_marker_info$fn__12168$fn__12174.invoke(gutter.clj:52)
    at cursive.intellij.gutter$line_marker_info$fn__12168.invoke(gutter.clj:51)
    at clojure.core$some.invoke(core.clj:2570)
    at cursive.intellij.gutter$line_marker_info.invoke(gutter.clj:45)
    at cursive.intellij.gutter.ClojureLineMarkerProvider.getLineMarkerInfo(gutter.clj:95)
    at com.intellij.codeInsight.daemon.impl.LineMarkersPass.addLineMarkers(LineMarkersPass.java:173)
    at com.intellij.codeInsight.daemon.impl.LineMarkersPass.collectLineMarkersForInjected(LineMarkersPass.java:220)
    at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation(LineMarkersPass.java:113)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:67)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:444)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1177)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:435)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:432)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:408)
    at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:206)
    at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
    at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
    at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
    at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)



java.lang.NullPointerException
    at cursive.symbol$var_meta.invoke(symbol.clj:51)
    at cursive.resolve.symbol$resolve_symbol.invoke(symbol.clj:88)
    at clojure.lang.Var.invoke(Var.java:383)
    at cursive.psi.impl.symbols.SymbolReference$SymbolResolver.resolve(SymbolReference.java:67)
    at cursive.psi.impl.symbols.SymbolReference$SymbolResolver.resolve(SymbolReference.java:64)
    at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:144)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:167)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:159)
    at cursive.psi.impl.symbols.SymbolReference.multiResolve(SymbolReference.java:58)
    at cursive.resolve$resolve.invoke(resolve.clj:55)
    at cursive.annotator$annotate_symbol.invoke(annotator.clj:341)
    at cursive.annotator$fn__6040.invoke(annotator.clj:384)
    at cursive.annotator$fn__6025$G__6020__6032.invoke(annotator.clj:375)
    at cursive.annotator.ClojureAnnotator.annotate(annotator.clj:399)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:162)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:103)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass$4.run(InjectedGeneralHighlightingPass.java:374)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:87)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.a(InjectedGeneralHighlightingPass.java:369)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.a(InjectedGeneralHighlightingPass.java:245)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.access$000(InjectedGeneralHighlightingPass.java:53)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass$3.process(InjectedGeneralHighlightingPass.java:215)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass$3.process(InjectedGeneralHighlightingPass.java:212)
    at com.intellij.concurrency.ApplierCompleter.b(ApplierCompleter.java:122)
    at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)
    at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:85)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1177)
    at com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:94)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:443)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:106)
    at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:82)
    at jsr166e.CountedCompleter.exec(CountedCompleter.java:684)
    at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
    at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
    at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
    at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)



java.lang.NullPointerException
    at cursive.symbol$var_meta.invoke(symbol.clj:51)
    at cursive.annotator$should_resolve_QMARK_.invoke(annotator.clj:73)
    at cursive.annotator$annotate_symbol.invoke(annotator.clj:354)
    at cursive.annotator$fn__6040.invoke(annotator.clj:384)
    at cursive.annotator$fn__6025$G__6020__6032.invoke(annotator.clj:375)
    at cursive.annotator.ClojureAnnotator.annotate(annotator.clj:399)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:162)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:103)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass$4.run(InjectedGeneralHighlightingPass.java:374)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:87)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.a(InjectedGeneralHighlightingPass.java:369)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.a(InjectedGeneralHighlightingPass.java:245)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.access$000(InjectedGeneralHighlightingPass.java:53)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass$3.process(InjectedGeneralHighlightingPass.java:215)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass$3.process(InjectedGeneralHighlightingPass.java:212)
    at com.intellij.concurrency.ApplierCompleter.b(ApplierCompleter.java:122)
    at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)
    at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:85)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1177)
    at com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:94)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:443)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:106)
    at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:82)
    at jsr166e.CountedCompleter.exec(CountedCompleter.java:684)
    at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
    at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
    at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
    at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)



java.lang.NullPointerException
    at cursive.symbol$var_meta.invoke(symbol.clj:51)
    at cursive.resolve.symbol$resolve_symbol.invoke(symbol.clj:88)
    at clojure.lang.Var.invoke(Var.java:383)
    at cursive.psi.impl.symbols.SymbolReference$SymbolResolver.resolve(SymbolReference.java:67)
    at cursive.psi.impl.symbols.SymbolReference$SymbolResolver.resolve(SymbolReference.java:64)
    at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:144)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:167)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:159)
    at cursive.psi.impl.symbols.SymbolReference.multiResolve(SymbolReference.java:58)
    at cursive.resolve$resolve.invoke(resolve.clj:55)
    at cursive.annotator$annotate_symbol.invoke(annotator.clj:341)
    at cursive.annotator$fn__6040.invoke(annotator.clj:384)
    at cursive.annotator$fn__6025$G__6020__6032.invoke(annotator.clj:375)
    at cursive.annotator.ClojureAnnotator.annotate(annotator.clj:399)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:162)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:103)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass$4.run(InjectedGeneralHighlightingPass.java:374)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:87)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.a(InjectedGeneralHighlightingPass.java:369)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.a(InjectedGeneralHighlightingPass.java:245)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.access$000(InjectedGeneralHighlightingPass.java:53)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass$3.process(InjectedGeneralHighlightingPass.java:215)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass$3.process(InjectedGeneralHighlightingPass.java:212)
    at com.intellij.concurrency.ApplierCompleter.b(ApplierCompleter.java:122)
    at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)
    at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:85)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1177)
    at com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:94)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:443)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:106)
    at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:82)
    at jsr166e.CountedCompleter.exec(CountedCompleter.java:684)
    at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
    at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
    at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
    at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)
@chajath
Copy link

chajath commented Aug 4, 2016

Anyone looking into this? Issue is still happening with all the latest builds and it is really bothersome given how widespread markdown is

@cprice404
Copy link

We've started seeing this fairly regularly on 1.4.0-eap3, though with a slightly different stack trace:

null
java.lang.NullPointerException
    at cursive.psi$project.invoke(psi.clj:104)
    at cursive.psi$cached_value.doInvoke(psi.clj:502)
    at clojure.lang.RestFn.invoke(RestFn.java:467)
    at cursive.types$element_type.invoke(types.clj:224)
    at cursive.intellij.method$matching_indexes$fn__4096.invoke(method.clj:65)
    at clojure.core$mapv$fn__6727.invoke(core.clj:6616)
    at clojure.lang.PersistentVector.reduce(PersistentVector.java:333)
    at clojure.core$reduce.invoke(core.clj:6518)
    at clojure.core$mapv.invoke(core.clj:6616)
    at cursive.intellij.method$matching_indexes.invoke(method.clj:65)
    at cursive.extensions.clojure.core.resolve$nary_inline$fn__6418$fn__6419.invoke(resolve.clj:605)
    at clojure.core.protocols$fn__6523.invoke(protocols.clj:167)
    at clojure.core.protocols$fn__6478$G__6473__6487.invoke(protocols.clj:19)
    at clojure.core.protocols$seq_reduce.invoke(protocols.clj:27)
    at clojure.core.protocols$fn__6506.invoke(protocols.clj:100)
    at clojure.core.protocols$fn__6452$G__6447__6465.invoke(protocols.clj:13)
    at clojure.core$reduce.invoke(core.clj:6515)
    at cursive.extensions.clojure.core.resolve$nary_inline$fn__6418.invoke(resolve.clj:603)
    at cursive.types$invocation_type$fn__4011.invoke(types.clj:137)
    at clojure.core$some.invoke(core.clj:2570)
    at cursive.types$invocation_type.invoke(types.clj:137)
    at cursive.types$calculate_element_type.invoke(types.clj:209)
    at cursive.psi$cached_value$reify__357.compute(psi.clj:506)
    at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
    at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222)
    at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:66)
    at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
    at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:84)
    at cursive.psi$cached_value.doInvoke(psi.clj:509)
    at clojure.lang.RestFn.invoke(RestFn.java:467)
    at cursive.types$element_type.invoke(types.clj:224)
    at cursive.intellij.method$matching_indexes$fn__4096.invoke(method.clj:65)
    at clojure.core$mapv$fn__6727.invoke(core.clj:6616)
    at clojure.core.protocols$fn__6523.invoke(protocols.clj:167)
    at clojure.core.protocols$fn__6478$G__6473__6487.invoke(protocols.clj:19)
    at clojure.core.protocols$seq_reduce.invoke(protocols.clj:31)
    at clojure.core.protocols$fn__6506.invoke(protocols.clj:101)
    at clojure.core.protocols$fn__6452$G__6447__6465.invoke(protocols.clj:13)
    at clojure.core$reduce.invoke(core.clj:6519)
    at clojure.core$mapv.invoke(core.clj:6616)
    at cursive.intellij.method$matching_indexes.invoke(method.clj:65)
    at cursive.resolve.symbol.editor.clj$find_static_method.invoke(clj.clj:233)
    at cursive.resolve.symbol.editor.clj$editor_resolver$reify__5090$fn__5131.invoke(clj.clj:476)
    at clojure.core$map$fn__4553.invoke(core.clj:2624)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:49)
    at clojure.lang.RT.seq(RT.java:507)
    at clojure.core$seq__4128.invoke(core.clj:137)
    at clojure.core$apply.invoke(core.clj:630)
    at clojure.core$mapcat.doInvoke(core.clj:2660)
    at clojure.lang.RestFn.invoke(RestFn.java:423)
    at cursive.resolve.symbol.editor.clj$editor_resolver$reify__5090.resolve_qualified(clj.clj:471)
    at cursive.resolve.symbol$resolve_normal_symbol.invoke(symbol.clj:61)
    at cursive.resolve.symbol$resolve_symbol.invoke(symbol.clj:104)
    at clojure.lang.Var.invoke(Var.java:383)
    at cursive.psi.impl.symbols.SymbolReference$SymbolResolver.resolve(SymbolReference.java:67)
    at cursive.psi.impl.symbols.SymbolReference$SymbolResolver.resolve(SymbolReference.java:64)
    at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:144)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:167)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:159)
    at cursive.psi.impl.symbols.SymbolReference.multiResolve(SymbolReference.java:58)
    at cursive.resolve$resolve.invoke(resolve.clj:55)
    at cursive.annotator$annotate_symbol.invoke(annotator.clj:347)
    at cursive.annotator$fn__5724.invoke(annotator.clj:391)
    at cursive.annotator$fn__5709$G__5704__5716.invoke(annotator.clj:382)
    at cursive.annotator.ClojureAnnotator.annotate(annotator.clj:406)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:162)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:103)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:354)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$100(GeneralHighlightingPass.java:65)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$3.run(GeneralHighlightingPass.java:288)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:308)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$200(GeneralHighlightingPass.java:65)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$4.run(GeneralHighlightingPass.java:314)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:87)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:311)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:280)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:219)
    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:82)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:67)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:444)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1177)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:435)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:432)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:408)
    at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:206)
    at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
    at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
    at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
    at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)



java.lang.NullPointerException
    at cursive.psi$project.invoke(psi.clj:104)
    at cursive.psi$cached_value.doInvoke(psi.clj:502)
    at clojure.lang.RestFn.invoke(RestFn.java:467)
    at cursive.types$element_type.invoke(types.clj:224)
    at cursive.intellij.method$matching_indexes$fn__4096.invoke(method.clj:65)
    at clojure.core$mapv$fn__6727.invoke(core.clj:6616)
    at clojure.lang.PersistentVector.reduce(PersistentVector.java:333)
    at clojure.core$reduce.invoke(core.clj:6518)
    at clojure.core$mapv.invoke(core.clj:6616)
    at cursive.intellij.method$matching_indexes.invoke(method.clj:65)
    at cursive.extensions.clojure.core.resolve$nary_inline$fn__6418$fn__6419.invoke(resolve.clj:605)
    at clojure.core.protocols$fn__6523.invoke(protocols.clj:167)
    at clojure.core.protocols$fn__6478$G__6473__6487.invoke(protocols.clj:19)
    at clojure.core.protocols$seq_reduce.invoke(protocols.clj:27)
    at clojure.core.protocols$fn__6506.invoke(protocols.clj:100)
    at clojure.core.protocols$fn__6452$G__6447__6465.invoke(protocols.clj:13)
    at clojure.core$reduce.invoke(core.clj:6515)
    at cursive.extensions.clojure.core.resolve$nary_inline$fn__6418.invoke(resolve.clj:603)
    at cursive.types$invocation_type$fn__4011.invoke(types.clj:137)
    at clojure.core$some.invoke(core.clj:2570)
    at cursive.types$invocation_type.invoke(types.clj:137)
    at cursive.types$calculate_element_type.invoke(types.clj:209)
    at cursive.psi$cached_value$reify__357.compute(psi.clj:506)
    at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
    at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222)
    at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:66)
    at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
    at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:84)
    at cursive.psi$cached_value.doInvoke(psi.clj:509)
    at clojure.lang.RestFn.invoke(RestFn.java:467)
    at cursive.types$element_type.invoke(types.clj:224)
    at cursive.intellij.method$matching_indexes$fn__4096.invoke(method.clj:65)
    at clojure.core$mapv$fn__6727.invoke(core.clj:6616)
    at clojure.core.protocols$fn__6523.invoke(protocols.clj:167)
    at clojure.core.protocols$fn__6478$G__6473__6487.invoke(protocols.clj:19)
    at clojure.core.protocols$seq_reduce.invoke(protocols.clj:31)
    at clojure.core.protocols$fn__6506.invoke(protocols.clj:101)
    at clojure.core.protocols$fn__6452$G__6447__6465.invoke(protocols.clj:13)
    at clojure.core$reduce.invoke(core.clj:6519)
    at clojure.core$mapv.invoke(core.clj:6616)
    at cursive.intellij.method$matching_indexes.invoke(method.clj:65)
    at cursive.resolve.symbol.editor.clj$find_static_method.invoke(clj.clj:233)
    at cursive.resolve.symbol.editor.clj$editor_resolver$reify__5090$fn__5131.invoke(clj.clj:476)
    at clojure.core$map$fn__4553.invoke(core.clj:2624)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:49)
    at clojure.lang.RT.seq(RT.java:507)
    at clojure.core$seq__4128.invoke(core.clj:137)
    at clojure.core$apply.invoke(core.clj:630)
    at clojure.core$mapcat.doInvoke(core.clj:2660)
    at clojure.lang.RestFn.invoke(RestFn.java:423)
    at cursive.resolve.symbol.editor.clj$editor_resolver$reify__5090.resolve_qualified(clj.clj:471)
    at cursive.resolve.symbol$resolve_normal_symbol.invoke(symbol.clj:61)
    at cursive.resolve.symbol$resolve_symbol.invoke(symbol.clj:104)
    at clojure.lang.Var.invoke(Var.java:383)
    at cursive.psi.impl.symbols.SymbolReference$SymbolResolver.resolve(SymbolReference.java:67)
    at cursive.psi.impl.symbols.SymbolReference$SymbolResolver.resolve(SymbolReference.java:64)
    at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:144)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:167)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:159)
    at cursive.psi.impl.symbols.SymbolReference.multiResolve(SymbolReference.java:58)
    at cursive.resolve$resolve.invoke(resolve.clj:55)
    at clojure.core$map$fn__4553.invoke(core.clj:2624)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:49)
    at clojure.lang.Cons.next(Cons.java:39)
    at clojure.lang.RT.next(RT.java:674)
    at clojure.core$next__4112.invoke(core.clj:64)
    at clojure.core$concat$cat__4217$fn__4218.invoke(core.clj:707)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:49)
    at clojure.lang.RT.seq(RT.java:507)
    at clojure.core$seq__4128.invoke(core.clj:137)
    at clojure.core$map$fn__4553.invoke(core.clj:2616)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:49)
    at clojure.lang.RT.seq(RT.java:507)
    at clojure.core$seq__4128.invoke(core.clj:137)
    at clojure.core$map$fn__4553.invoke(core.clj:2616)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:49)
    at clojure.lang.RT.seq(RT.java:507)
    at clojure.core$seq__4128.invoke(core.clj:137)
    at clojure.core$filter$fn__4580.invoke(core.clj:2679)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:56)
    at clojure.lang.RT.seq(RT.java:507)
    at clojure.core$seq__4128.invoke(core.clj:137)
    at clojure.core$reduce1.invoke(core.clj:903)
    at clojure.core$set.invoke(core.clj:3960)
    at cursive.inspections.unused$unused_import.invoke(unused.clj:124)
    at clojure.lang.Var.invoke(Var.java:388)
    at cursive.api.DelayedFn.invoke(DelayedFn.java:41)
    at cursive.inspections.ClInspectionVisitor.visitElement(ClInspectionVisitor.java:32)
    at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274)
    at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:81)
    at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:69)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:294)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$200(LocalInspectionsPass.java:73)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:261)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:256)
    at com.intellij.concurrency.ApplierCompleter.b(ApplierCompleter.java:122)
    at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)
    at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:85)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1177)
    at com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:94)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:443)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:106)
    at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:82)
    at jsr166e.CountedCompleter.exec(CountedCompleter.java:684)
    at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
    at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
    at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
    at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)



java.lang.NullPointerException
    at cursive.psi$project.invoke(psi.clj:104)
    at cursive.psi$cached_value.doInvoke(psi.clj:502)
    at clojure.lang.RestFn.invoke(RestFn.java:467)
    at cursive.types$element_type.invoke(types.clj:224)
    at cursive.intellij.method$matching_indexes$fn__4096.invoke(method.clj:65)
    at clojure.core$mapv$fn__6727.invoke(core.clj:6616)
    at clojure.lang.PersistentVector.reduce(PersistentVector.java:333)
    at clojure.core$reduce.invoke(core.clj:6518)
    at clojure.core$mapv.invoke(core.clj:6616)
    at cursive.intellij.method$matching_indexes.invoke(method.clj:65)
    at cursive.extensions.clojure.core.resolve$nary_inline$fn__6418$fn__6419.invoke(resolve.clj:605)
    at clojure.core.protocols$fn__6523.invoke(protocols.clj:167)
    at clojure.core.protocols$fn__6478$G__6473__6487.invoke(protocols.clj:19)
    at clojure.core.protocols$seq_reduce.invoke(protocols.clj:27)
    at clojure.core.protocols$fn__6506.invoke(protocols.clj:100)
    at clojure.core.protocols$fn__6452$G__6447__6465.invoke(protocols.clj:13)
    at clojure.core$reduce.invoke(core.clj:6515)
    at cursive.extensions.clojure.core.resolve$nary_inline$fn__6418.invoke(resolve.clj:603)
    at cursive.types$invocation_type$fn__4011.invoke(types.clj:137)
    at clojure.core$some.invoke(core.clj:2570)
    at cursive.types$invocation_type.invoke(types.clj:137)
    at cursive.types$calculate_element_type.invoke(types.clj:209)
    at cursive.psi$cached_value$reify__357.compute(psi.clj:506)
    at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
    at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222)
    at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:66)
    at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
    at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:84)
    at cursive.psi$cached_value.doInvoke(psi.clj:509)
    at clojure.lang.RestFn.invoke(RestFn.java:467)
    at cursive.types$element_type.invoke(types.clj:224)
    at cursive.intellij.method$matching_indexes$fn__4096.invoke(method.clj:65)
    at clojure.core$mapv$fn__6727.invoke(core.clj:6616)
    at clojure.core.protocols$fn__6523.invoke(protocols.clj:167)
    at clojure.core.protocols$fn__6478$G__6473__6487.invoke(protocols.clj:19)
    at clojure.core.protocols$seq_reduce.invoke(protocols.clj:31)
    at clojure.core.protocols$fn__6506.invoke(protocols.clj:101)
    at clojure.core.protocols$fn__6452$G__6447__6465.invoke(protocols.clj:13)
    at clojure.core$reduce.invoke(core.clj:6519)
    at clojure.core$mapv.invoke(core.clj:6616)
    at cursive.intellij.method$matching_indexes.invoke(method.clj:65)
    at cursive.resolve.symbol.editor.clj$find_static_method.invoke(clj.clj:233)
    at cursive.resolve.symbol.editor.clj$editor_resolver$reify__5090$fn__5131.invoke(clj.clj:476)
    at clojure.core$map$fn__4553.invoke(core.clj:2624)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:49)
    at clojure.lang.RT.seq(RT.java:507)
    at clojure.core$seq__4128.invoke(core.clj:137)
    at clojure.core$apply.invoke(core.clj:630)
    at clojure.core$mapcat.doInvoke(core.clj:2660)
    at clojure.lang.RestFn.invoke(RestFn.java:423)
    at cursive.resolve.symbol.editor.clj$editor_resolver$reify__5090.resolve_qualified(clj.clj:471)
    at cursive.resolve.symbol$resolve_normal_symbol.invoke(symbol.clj:61)
    at cursive.resolve.symbol$resolve_symbol.invoke(symbol.clj:104)
    at clojure.lang.Var.invoke(Var.java:383)
    at cursive.psi.impl.symbols.SymbolReference$SymbolResolver.resolve(SymbolReference.java:67)
    at cursive.psi.impl.symbols.SymbolReference$SymbolResolver.resolve(SymbolReference.java:64)
    at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:144)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:167)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:159)
    at cursive.psi.impl.symbols.SymbolReference.multiResolve(SymbolReference.java:58)
    at cursive.resolve$resolve.invoke(resolve.clj:55)
    at clojure.core$map$fn__4553.invoke(core.clj:2624)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:49)
    at clojure.lang.Cons.next(Cons.java:39)
    at clojure.lang.RT.next(RT.java:674)
    at clojure.core$next__4112.invoke(core.clj:64)
    at clojure.core$concat$cat__4217$fn__4218.invoke(core.clj:707)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:49)
    at clojure.lang.RT.seq(RT.java:507)
    at clojure.core$seq__4128.invoke(core.clj:137)
    at clojure.core$map$fn__4553.invoke(core.clj:2616)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:49)
    at clojure.lang.RT.seq(RT.java:507)
    at clojure.core$seq__4128.invoke(core.clj:137)
    at clojure.core$map$fn__4553.invoke(core.clj:2616)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:49)
    at clojure.lang.RT.seq(RT.java:507)
    at clojure.core$seq__4128.invoke(core.clj:137)
    at clojure.core$filter$fn__4580.invoke(core.clj:2679)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:56)
    at clojure.lang.RT.seq(RT.java:507)
    at clojure.core$seq__4128.invoke(core.clj:137)
    at clojure.core$reduce1.invoke(core.clj:903)
    at clojure.core$set.invoke(core.clj:3960)
    at cursive.inspections.unused$unused_import.invoke(unused.clj:124)
    at clojure.lang.Var.invoke(Var.java:388)
    at cursive.api.DelayedFn.invoke(DelayedFn.java:41)
    at cursive.inspections.ClInspectionVisitor.visitElement(ClInspectionVisitor.java:32)
    at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274)
    at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:81)
    at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:69)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:294)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$200(LocalInspectionsPass.java:73)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:261)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:256)
    at com.intellij.concurrency.ApplierCompleter.b(ApplierCompleter.java:122)
    at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)
    at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:85)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1177)
    at com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:94)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:443)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:106)
    at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:82)
    at jsr166e.CountedCompleter.exec(CountedCompleter.java:684)
    at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
    at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
    at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
    at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)

If it seems like a different issue then I can file it separately, but we're seeing the same symptoms where the IDE pops up a dialog suggesting to disable cursive.

It seems like it mostly happens when running tests in the local REPL. I definitely have not opened any markdown files in this project.

@cprice404
Copy link

I created #1560 for the NPEs that I pasted above, as they don't seem to be related to markdown files.

@cursive-ide cursive-ide added the released Marks issues which have had the fixes released in a stable build label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Marks issues which have had the fixes released in a stable build
Projects
None yet
Development

No branches or pull requests

4 participants