vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
815 stars 127 forks source link

Catch Exception caused in PHPStorm #929

Open nhalstead opened 2 years ago

nhalstead commented 2 years ago

Was getting an error in PHPStorm for the following stack trace:

java.lang.NoSuchFieldError: WRAP_ON_TYPING_OPTIONS
    at com.vladsch.md.nav.language.MdLanguageCodeStyleSettingsProvider.customizeSettings(MdLanguageCodeStyleSettingsProvider.java:75)
    at com.intellij.psi.codeStyle.LanguageCodeStyleSettingsProvider$SupportedFieldCollector.collectFields(LanguageCodeStyleSettingsProvider.java:271)
    at com.intellij.psi.codeStyle.LanguageCodeStyleSettingsProvider.getSupportedFields(LanguageCodeStyleSettingsProvider.java:257)
    at com.intellij.application.options.codeStyle.properties.LanguageCodeStylePropertyMapper.getSupportedLanguageFields(LanguageCodeStylePropertyMapper.java:136)
    at com.intellij.application.options.codeStyle.properties.LanguageCodeStylePropertyMapper.getSupportedFields(LanguageCodeStylePropertyMapper.java:69)
    at com.intellij.application.options.codeStyle.properties.AbstractCodeStylePropertyMapper.createMap(AbstractCodeStylePropertyMapper.java:33)
    at com.intellij.application.options.codeStyle.properties.AbstractCodeStylePropertyMapper.lambda$new$0(AbstractCodeStylePropertyMapper.java:24)
    at com.intellij.openapi.util.NotNullLazyValue$2.compute(NotNullLazyValue.java:66)
    at com.intellij.openapi.util.AtomicNotNullLazyValue.getValue(AtomicNotNullLazyValue.java:31)
    at com.intellij.application.options.codeStyle.properties.AbstractCodeStylePropertyMapper.getAccessorMap(AbstractCodeStylePropertyMapper.java:100)
    at com.intellij.application.options.codeStyle.properties.AbstractCodeStylePropertyMapper.enumProperties(AbstractCodeStylePropertyMapper.java:28)
    at org.editorconfig.configmanagement.extended.IntellijConfigOptionDescriptorProvider.getAllOptions(IntellijConfigOptionDescriptorProvider.java:39)
    at org.editorconfig.configmanagement.extended.IntellijConfigOptionDescriptorProvider.getOptionDescriptors(IntellijConfigOptionDescriptorProvider.java:26)
    at org.editorconfig.language.services.impl.EditorConfigOptionDescriptorManagerImpl$loadDescriptors$1.invoke(EditorConfigOptionDescriptorManagerImpl.kt:54)
    at org.editorconfig.language.services.impl.EditorConfigOptionDescriptorManagerImpl.loadDescriptors(EditorConfigOptionDescriptorManagerImpl.kt:62)
    at org.editorconfig.language.services.impl.EditorConfigOptionDescriptorManagerImpl.<init>(EditorConfigOptionDescriptorManagerImpl.kt:43)
    at jdk.internal.reflect.GeneratedConstructorAccessor241.newInstance(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:47)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:876)
    at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:47)
    at com.intellij.serviceContainer.ServiceComponentAdapter.access$createAndInitialize(ServiceComponentAdapter.kt:12)
    at com.intellij.serviceContainer.ServiceComponentAdapter$doCreateInstance$1.compute(ServiceComponentAdapter.kt:41)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:237)
    at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:40)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:595)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:569)
    at com.intellij.openapi.client.ClientAwareComponentManager.getFromSelfOrCurrentSession(ClientAwareComponentManager.kt:37)
    at com.intellij.openapi.client.ClientAwareComponentManager.getService(ClientAwareComponentManager.kt:22)
    at org.editorconfig.language.services.EditorConfigOptionDescriptorManager$Companion.getInstance(EditorConfigOptionDescriptorManager.kt:20)
    at org.editorconfig.language.psi.base.EditorConfigOptionBase$getDescriptor$1.compute(EditorConfigOptionBase.kt:25)
    at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:158)
    at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:39)
    at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:227)
    at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:42)
    at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:227)
    at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:114)
    at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:44)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
    at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:228)
    at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:28)
    at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:72)
    at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:155)
    at org.editorconfig.language.psi.base.EditorConfigOptionBase.getDescriptor(EditorConfigOptionBase.kt:24)
    at org.editorconfig.language.psi.base.EditorConfigFlatOptionKeyBase.getDescriptor(EditorConfigFlatOptionKeyBase.kt:15)
    at org.editorconfig.language.index.EditorConfigIdentifierIndex$Companion.isValidReference(EditorConfigIdentifierIndex.kt:51)
    at org.editorconfig.language.index.EditorConfigIdentifierIndex$Companion.access$isValidReference(EditorConfigIdentifierIndex.kt:44)
    at org.editorconfig.language.index.EditorConfigIdentifierIndex$getIndexer$1$visitor$1.collectIdentifier(EditorConfigIdentifierIndex.kt:27)
    at org.editorconfig.language.psi.impl.EditorConfigIdentifierFinderVisitor.visitFlatOptionKey(EditorConfigIdentifierFinderVisitor.kt:11)
    at org.editorconfig.language.psi.impl.EditorConfigFlatOptionKeyImpl.accept(EditorConfigFlatOptionKeyImpl.java:22)
    at org.editorconfig.language.psi.impl.EditorConfigFlatOptionKeyImpl.accept(EditorConfigFlatOptionKeyImpl.java:27)
    at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69)
    at org.editorconfig.language.psi.impl.EditorConfigRecursiveVisitor.visitElement(EditorConfigRecursiveVisitor.kt:12)
    at org.editorconfig.language.psi.EditorConfigVisitor.visitPsiElement(EditorConfigVisitor.java:119)
    at org.editorconfig.language.psi.EditorConfigVisitor.visitDescribableElement(EditorConfigVisitor.java:107)
    at org.editorconfig.language.psi.EditorConfigVisitor.visitOption(EditorConfigVisitor.java:47)
    at org.editorconfig.language.psi.impl.EditorConfigOptionImpl.accept(EditorConfigOptionImpl.java:23)
    at org.editorconfig.language.psi.impl.EditorConfigOptionImpl.accept(EditorConfigOptionImpl.java:28)
    at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69)
    at org.editorconfig.language.psi.impl.EditorConfigRecursiveVisitor.visitElement(EditorConfigRecursiveVisitor.kt:12)
    at org.editorconfig.language.psi.EditorConfigVisitor.visitNavigatablePsiElement(EditorConfigVisitor.java:103)
    at org.editorconfig.language.psi.EditorConfigVisitor.visitSection(EditorConfigVisitor.java:99)
    at org.editorconfig.language.psi.impl.EditorConfigSectionImpl.accept(EditorConfigSectionImpl.java:21)
    at org.editorconfig.language.psi.impl.EditorConfigSectionImpl.accept(EditorConfigSectionImpl.java:26)
    at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:185)
    at com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:754)
    at org.editorconfig.language.psi.impl.EditorConfigRecursiveVisitor.visitElement(EditorConfigRecursiveVisitor.kt:12)
    at com.intellij.psi.PsiElementVisitor.visitFile(PsiElementVisitor.java:35)
    at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:60)
    at org.editorconfig.language.index.EditorConfigIdentifierIndex$getIndexer$1.map(EditorConfigIdentifierIndex.kt:33)
    at org.editorconfig.language.index.EditorConfigIdentifierIndex$getIndexer$1.map(EditorConfigIdentifierIndex.kt:17)
    at com.intellij.util.indexing.impl.MapReduceIndex.mapByIndexer(MapReduceIndex.java:306)
    at com.intellij.util.indexing.impl.MapReduceIndex.mapInput(MapReduceIndex.java:297)
    at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.mapInput(VfsAwareMapReduceIndex.java:182)
    at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.mapInput(VfsAwareMapReduceIndex.java:47)
    at com.intellij.util.indexing.impl.MapReduceIndex.mapInputAndPrepareUpdate(MapReduceIndex.java:244)
    at com.intellij.indexing.composite.CompositeInvertedIndexBase.updateBaseIndex(CompositeInvertedIndexBase.java:240)
    at com.intellij.indexing.composite.CompositeInvertedIndexBase.mapInputAndPrepareUpdate(CompositeInvertedIndexBase.java:60)
    at com.intellij.indexing.composite.CompositeInvertedIndexBase.mapInputAndPrepareUpdate(CompositeInvertedIndexBase.java:27)
    at com.intellij.util.indexing.FileBasedIndexImpl.updateSingleIndex(FileBasedIndexImpl.java:1551)
    at com.intellij.util.indexing.FileBasedIndexImpl.lambda$doIndexFileContent$27(FileBasedIndexImpl.java:1422)
    at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:627)
    at com.intellij.util.indexing.FileBasedIndexImpl.doIndexFileContent(FileBasedIndexImpl.java:1371)
    at com.intellij.util.indexing.FileBasedIndexImpl.indexFileContent(FileBasedIndexImpl.java:1325)
    at com.intellij.util.indexing.FileBasedIndexImpl.processRefreshedFile(FileBasedIndexImpl.java:1293)
    at com.intellij.util.indexing.FileBasedIndexImpl$VirtualFileUpdateTask.doProcess(FileBasedIndexImpl.java:1652)
    at com.intellij.util.indexing.FileBasedIndexImpl$VirtualFileUpdateTask.doProcess(FileBasedIndexImpl.java:1649)
    at com.intellij.util.indexing.UpdateTask.process(UpdateTask.java:63)
    at com.intellij.util.indexing.UpdateTask.processAll(UpdateTask.java:32)
    at com.intellij.util.indexing.FileBasedIndexImpl.forceUpdate(FileBasedIndexImpl.java:1669)
    at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:823)
    at com.intellij.util.indexing.FileBasedIndexEx.processExceptions(FileBasedIndexEx.java:244)
    at com.intellij.util.indexing.FileBasedIndexEx.processValueIterator(FileBasedIndexEx.java:349)
    at com.intellij.util.indexing.FileBasedIndexEx.processValuesInScope(FileBasedIndexEx.java:318)
    at com.intellij.util.indexing.FileBasedIndexEx.getContainingFiles(FileBasedIndexEx.java:200)
    at com.intellij.swagger.index.OpenapiSpecificationContentIndex$Companion.getAllIndexedFiles(OpenapiSpecificationContentIndex.kt:59)
    at com.intellij.swagger.model.specification.SwaggerFileHelper$computeSecondarySpecificationTypeInner$$inlined$cacheOnFileTypeTracker$1.compute(SwaggerCacheUtils.kt:24)
    at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:39)
    at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:227)
    at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:42)
    at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:227)
    at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:114)
    at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:44)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
    at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:228)
    at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:28)
    at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:72)
    at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:111)
    at com.intellij.swagger.model.specification.SwaggerFileHelper.computeSecondarySpecificationTypeInner(SwaggerFileHelper.kt:236)
    at com.intellij.swagger.model.specification.SwaggerFileHelper.access$computeSecondarySpecificationTypeInner(SwaggerFileHelper.kt:47)
    at com.intellij.swagger.model.specification.SwaggerFileHelper$getOrComputeSecondarySpecificationType$$inlined$cacheOnFileTypeTracker$1.compute(SwaggerCacheUtils.kt:24)
    at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:39)
    at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:227)
    at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:42)
    at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:227)
    at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:114)
    at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:44)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
    at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:228)
    at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:28)
    at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:72)
    at com.intellij.swagger.model.specification.SwaggerFileHelper.getOrComputeSecondarySpecificationType(SwaggerFileHelper.kt:244)
    at com.intellij.swagger.model.specification.SwaggerFileHelper.getOrComputeSpecificationTypeInner(SwaggerFileHelper.kt:173)
    at com.intellij.swagger.model.specification.SwaggerFileHelper.getOrComputeSpecificationType$intellij_swagger(SwaggerFileHelper.kt:162)
    at com.intellij.swagger.SwSpecificationDetectionKt.detectSpecificationType(SwSpecificationDetection.kt:37)
    at com.intellij.swagger.providers.SpecificationJsonSchemaFileProvider$isAvailable$1.compute(SwJsonSchemaFileProviderFactory.kt:89)
    at com.intellij.swagger.providers.SpecificationJsonSchemaFileProvider$isAvailable$1.compute(SwJsonSchemaFileProviderFactory.kt:81)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:852)
    at com.intellij.swagger.providers.SpecificationJsonSchemaFileProvider.isAvailable(SwJsonSchemaFileProviderFactory.kt:87)
    at com.jetbrains.jsonSchema.impl.JsonSchemaServiceImpl.isProviderAvailable(JsonSchemaServiceImpl.java:431)
    at com.jetbrains.jsonSchema.impl.JsonSchemaServiceImpl.getProvidersForFile(JsonSchemaServiceImpl.java:245)
    at com.jetbrains.jsonSchema.impl.JsonSchemaServiceImpl.getSchemasForFile(JsonSchemaServiceImpl.java:181)
    at com.jetbrains.jsonSchema.impl.JsonCachedValues.getSchemaFile(JsonCachedValues.java:258)
    at com.jetbrains.jsonSchema.impl.JsonCachedValues.getPlainSchemaFile(JsonCachedValues.java:241)
    at com.jetbrains.jsonSchema.impl.JsonCachedValues.lambda$computeSchemaForFile$6(JsonCachedValues.java:224)
    at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:158)
    at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:39)
    at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:227)
    at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:42)
    at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:227)
    at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:114)
    at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:44)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
    at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:228)
    at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:28)
    at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:72)
    at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:155)
    at com.jetbrains.jsonSchema.impl.JsonCachedValues.computeSchemaForFile(JsonCachedValues.java:223)
    at com.jetbrains.jsonSchema.impl.JsonSchemaServiceImpl.getSchemaObject(JsonSchemaServiceImpl.java:328)
    at com.jetbrains.jsonSchema.impl.JsonSchemaBasedLanguageInjector.getLanguageToInject(JsonSchemaBasedLanguageInjector.java:32)
    at com.jetbrains.jsonSchema.impl.JsonSchemaBasedLanguageInjector.getLanguagesToInject(JsonSchemaBasedLanguageInjector.java:23)
    at com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl.processInPlaceInjectorsFor(InjectedLanguageManagerImpl.java:442)
    at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtilBase.probeElementsUp(InjectedLanguageUtilBase.java:248)
    at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtilBase.enumerate(InjectedLanguageUtilBase.java:178)
    at com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl.enumerateEx(InjectedLanguageManagerImpl.java:326)
    at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.lambda$getInjectedPsiFiles$3(InjectedGeneralHighlightingPass.java:185)
    at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:136)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1084)
    at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:92)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:624)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:623)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
    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:181)
    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)
nhalstead commented 2 years ago

The best I can offer is a try-catch as I don't know the API for JetBrains' PHPStorm

nhalstead commented 2 years ago

This causes a fatal exception where the plugin gets unloaded.