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

java.lang.IllegalStateException: java.lang.IllegalStateException: duplicate mapping specified for: ſt #236

Closed
rprandi opened this issue Aug 5, 2022 · 1 comment

Comments

@rprandi
Copy link

rprandi commented Aug 5, 2022

Bug description

I just opened the IDE.

Environment

  • detekt Idea Version: 1.21.0
  • Platform Version: 2022.1.3
  • Platform Vendor: JetBrains s.r.o.
  • Java Version: 11.0.15
  • OS Name: Mac OS X

Stacktrace

Please copy following stacktrace to the opened issue body.

java.lang.IllegalStateException: java.lang.IllegalStateException: duplicate mapping specified for: ſt
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:600)
at java.base/java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:678)
at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:722)
at com.intellij.concurrency.JobLauncherImpl.processQueue(JobLauncherImpl.java:357)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.processInOrder(InspectionRunner.java:293)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.visitElements(InspectionRunner.java:268)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$inspect$5(InspectionRunner.java:121)
at com.intellij.codeInspection.InspectionEngine.withSession(InspectionEngine.java:226)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.inspect(InspectionRunner.java:109)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:132)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:97)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:57)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:419)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1152)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:412)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:411)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:387)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:174)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:213)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:385)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:184)
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)
Caused by: java.lang.IllegalStateException: duplicate mapping specified for: ſt
at org.apache.lucene.analysis.hunspell.Dictionary.parseConversions(Dictionary.java:790)
at org.apache.lucene.analysis.hunspell.Dictionary.readAffixFile(Dictionary.java:375)
at org.apache.lucene.analysis.hunspell.Dictionary.(Dictionary.java:250)
at org.apache.lucene.analysis.hunspell.Dictionary.(Dictionary.java:196)
at ai.grazie.spell.lists.hunspell.HunspellWordList.(HunspellWordList.kt:23)
at com.intellij.grazie.jlanguage.hunspell.LuceneHunspellDictionary.(LuceneHunspellDictionary.kt:16)
at com.intellij.grazie.jlanguage.LangTool$2.invoke(LangTool.kt:40)
at com.intellij.grazie.jlanguage.LangTool$2.invoke(LangTool.kt:28)
at com.intellij.grazie.jlanguage.LangTool$sam$java_util_function_BiFunction$0.apply(LangTool.kt)
at org.languagetool.rules.spelling.hunspell.Hunspell.getDictionary(Hunspell.java:50)
at org.languagetool.rules.spelling.hunspell.HunspellRule.init(HunspellRule.java:493)
at org.languagetool.rules.spelling.hunspell.HunspellRule.ensureInitialized(HunspellRule.java:467)
at org.languagetool.rules.spelling.hunspell.HunspellRule.match(HunspellRule.java:155)
at com.intellij.grazie.spellcheck.GrazieSpellchecker$SpellerTool$check$$inlined$synchronized$lambda$1.compute(GrazieSpellchecker.kt:41)
at com.intellij.grazie.spellcheck.GrazieSpellchecker$SpellerTool$check$$inlined$synchronized$lambda$1.compute(GrazieSpellchecker.kt:36)
at com.intellij.openapi.util.ClassLoaderUtil.computeWithClassLoader(ClassLoaderUtil.java:31)
at com.intellij.grazie.spellcheck.GrazieSpellchecker$SpellerTool.check(GrazieSpellchecker.kt:40)
at com.intellij.grazie.spellcheck.GrazieSpellchecker.isCorrect(GrazieSpellchecker.kt:90)
at com.intellij.grazie.spellcheck.GrazieDictionary.contains(GrazieDictionary.kt:11)
at com.intellij.spellchecker.grazie.dictionary.WordListAdapter.contains(WordListAdapter.kt:19)
at com.intellij.spellchecker.grazie.dictionary.ExtendedWordListWithFrequency.contains(ExtendedWordListWithFrequency.kt:17)
at ai.grazie.spell.GrazieSpeller.isMisspelled(GrazieSpeller.kt:88)
at ai.grazie.spell.GrazieSplittingSpeller.isMisspelled(GrazieSplittingSpeller.kt:42)
at com.intellij.spellchecker.grazie.async.GrazieAsyncSpeller.isMisspelled(GrazieAsyncSpeller.kt:38)
at com.intellij.spellchecker.grazie.GrazieSpellCheckerEngine.isCorrect(GrazieSpellCheckerEngine.kt:70)
at com.intellij.spellchecker.SpellCheckerManager.hasProblem(SpellCheckerManager.java:228)
at com.intellij.spellchecker.inspections.SpellCheckingInspection$MyTokenConsumer.consume(SpellCheckingInspection.java:219)
at com.intellij.spellchecker.inspections.SpellCheckingInspection$MyTokenConsumer.consume(SpellCheckingInspection.java:177)
at com.intellij.spellchecker.inspections.BaseSplitter.addWord(BaseSplitter.java:46)
at com.intellij.spellchecker.inspections.IdentifierSplitter.split(IdentifierSplitter.java:61)
at com.intellij.spellchecker.inspections.WordSplitter.split(WordSplitter.java:52)
at com.intellij.spellchecker.inspections.TextSplitter.doSplit(TextSplitter.java:63)
at com.intellij.spellchecker.inspections.TextSplitter.split(TextSplitter.java:52)
at com.intellij.spellchecker.inspections.PlainTextSplitter.split(PlainTextSplitter.java:102)
at com.intellij.spellchecker.inspections.SpellCheckingInspection$MyTokenConsumer.consumeToken(SpellCheckingInspection.java:204)
at com.intellij.spellchecker.tokenizer.TokenConsumer.consumeToken(TokenConsumer.java:16)
at com.intellij.spellchecker.tokenizer.TokenConsumer.consumeToken(TokenConsumer.java:11)
at com.intellij.spellchecker.tokenizer.TokenizerBase.tokenize(TokenizerBase.java:32)
at com.intellij.spellchecker.inspections.SpellCheckingInspection.tokenize(SpellCheckingInspection.java:130)
at com.intellij.spellchecker.inspections.SpellCheckingInspection$1.visitElement(SpellCheckingInspection.java:111)
at org.jetbrains.kotlin.psi.KtElementImplStub.accept(KtElementImplStub.java:52)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$10(InspectionRunner.java:317)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1152)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$11(InspectionRunner.java:296)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:174)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:213)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$12(InspectionRunner.java:330)
at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:159)
at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:151)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$13(InspectionRunner.java:294)
at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:130)
at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:119)
at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$14(InspectionRunner.java:294)
at com.intellij.concurrency.JobLauncherImpl$1MyProcessQueueTask.lambda$call$0(JobLauncherImpl.java:297)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.concurrency.JobLauncherImpl$1MyProcessQueueTask.call(JobLauncherImpl.java:282)
at com.intellij.concurrency.JobLauncherImpl$1MyProcessQueueTask.call(JobLauncherImpl.java:270)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1448)
... 5 more

@arturbosch
Copy link
Member

Duplicate of #271

@arturbosch arturbosch marked this as a duplicate of #271 Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants