Fork me on GitHub
#cursive
<
2021-08-18
>
imre16:08:14

I'm getting frequent java.lang.IllegalArgumentException: Failed requirement. errors with 1.11.0-eap2-2021.2 and #IC-212.5080.17

3
imre16:08:42

For example when I prepend a form with #_

imre16:08:48

Or try to paredit raise

imre16:08:02

Full exception:

imre16:08:04

java.lang.IllegalArgumentException: Failed requirement.
	at com.intellij.grazie.utils.PsiUtilsKt.getNotSoDistantSimilarSiblings(PsiUtils.kt:95)
	at com.intellij.grazie.utils.PsiUtilsKt.getNotSoDistantSimilarSiblings(PsiUtils.kt:87)
	at cursive.grazie.ClojureTextExtractor.buildTextContent(Grazie.kt:26)
	at com.intellij.grazie.text.TextExtractor.doExtract(TextExtractor.java:148)
	at com.intellij.grazie.text.TextExtractor.findTextAt(TextExtractor.java:82)
	at com.intellij.grazie.text.TextExtractor.findUniqueTextAt(TextExtractor.java:136)
	at com.intellij.grazie.ide.inspection.detection.LanguageDetectionInspection$buildVisitor$1.visitElement(LanguageDetectionInspection.kt:49)
	at com.intellij.psi.impl.source.tree.LeafPsiElement.accept(LeafPsiElement.java:208)
	at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:64)
	at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:55)
	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.runToolOnElements(LocalInspectionsPass.java:326)
	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$4(LocalInspectionsPass.java:285)
	at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:159)
	at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:151)
	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$5(LocalInspectionsPass.java:283)
	at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:130)
	at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:119)
	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$6(LocalInspectionsPass.java:283)
	at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:136)
	at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:149)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1078)
	at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:92)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:705)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:647)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:63)
	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:174)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:183)
	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)

cfleming22:08:20

Thanks, I’ll look at that.

potetm16:08:08

#IU-212.4746.92

potetm16:08:56

downgrading appears to fix it

imre16:08:34

watch out for the git deps bug fixed in eap2 tho

cfleming22:08:21

Sorry, I’ll try to get a fix for that out today. It’s related to the spelling integration, for some reason it didn’t happen in the unit tests.

cfleming09:08:23

The fix is out in the new EAP BTW.

cfleming09:08:05

It was a problem caused by #_ comments, which was why the tests didn’t catch it.