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

com.intellij.diagnostic.PluginException: Cannot create class LatexInsertFormatterCommentsIntention #3343

Closed
tbs257 opened this issue Dec 7, 2023 · 2 comments
Labels
crash-report Reports of crashes that popped up in IDEA. wontfix Issue will be discarded by the development team.

Comments

@tbs257
Copy link

tbs257 commented Dec 7, 2023

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

IntelliJ IDEA 2023.3 (build IU-233.11799.241)

Operating System

Linux 6.6.4-arch1-1 (amd64)

TeXiFy IDEA version

0.9.2

Description

Stacktrace

com.intellij.diagnostic.PluginException: Cannot create class nl.hannahsten.texifyidea.intentions.LatexInsertFormatterCommentsIntention (classloader=PluginClassLoader(plugin=PluginDescriptor(name=TeXiFy IDEA, id=nl.rubensten.texifyidea, descriptorPath=plugin.xml, path=~/.local/share/JetBrains/IntelliJIdea2023.3/TeXiFy-IDEA, version=0.9.2, package=null, isBundled=false), packagePrefix=null, state=active))
	at com.intellij.serviceContainer.ComponentManagerImpl.doInstantiateClass(ComponentManagerImpl.kt:1401)
	at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:1377)
	at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:1426)
	at com.intellij.serviceContainer.LazyExtensionInstance.createInstance(LazyExtensionInstance.java:55)
	at com.intellij.serviceContainer.LazyExtensionInstance.getInstance(LazyExtensionInstance.java:44)
	at com.intellij.serviceContainer.BaseKeyedLazyInstance.getInstance(BaseKeyedLazyInstance.java:38)
	at com.intellij.codeInsight.intention.impl.config.IntentionActionWrapper.getDelegate(IntentionActionWrapper.java:115)
	at com.intellij.codeInsight.intention.impl.config.IntentionActionWrapper.getFamilyName(IntentionActionWrapper.java:55)
	at com.intellij.codeInsight.intention.impl.config.IntentionActionMetaData.getFamily(IntentionActionMetaData.java:43)
	at com.intellij.codeInsight.intention.impl.config.IntentionsMetadataService.getUniqueMetadata(IntentionsMetadataService.kt:98)
	at com.intellij.codeInsight.intention.impl.config.IntentionManagerSettings.getMetaData(IntentionManagerSettings.kt:50)
	at com.intellij.codeInsight.intention.impl.config.IntentionManagerSettings$IntentionSearchableOptionContributor.processOptions(IntentionManagerSettings.kt:83)
	at com.intellij.ide.ui.search.SearchableOptionsRegistrarImpl.lambda$initialize$0(SearchableOptionsRegistrarImpl.java:137)
	at com.intellij.openapi.extensions.impl.ExtensionProcessingHelper.forEachExtensionSafe(ExtensionProcessingHelper.kt:34)
	at com.intellij.openapi.extensions.ExtensionPointName.forEachExtensionSafe(ExtensionPointName.kt:50)
	at com.intellij.ide.ui.search.SearchableOptionsRegistrarImpl.initialize(SearchableOptionsRegistrarImpl.java:137)
	at com.intellij.ide.ui.search.SearchableOptionsRegistrarImpl.getAcceptableDescriptions(SearchableOptionsRegistrarImpl.java:458)
	at com.intellij.ide.util.gotoByName.ActionAsyncProvider$optionsFlow$1.invokeSuspend(ActionAsyncProvider.kt:298)
	at com.intellij.ide.util.gotoByName.ActionAsyncProvider$optionsFlow$1.invoke(ActionAsyncProvider.kt)
	at com.intellij.ide.util.gotoByName.ActionAsyncProvider$optionsFlow$1.invoke(ActionAsyncProvider.kt)
	at kotlinx.coroutines.flow.ChannelFlowBuilder.collectTo$suspendImpl(Builders.kt:320)
	at kotlinx.coroutines.flow.ChannelFlowBuilder.collectTo(Builders.kt)
	at kotlinx.coroutines.flow.internal.ChannelFlow$collectToFun$1.invokeSuspend(ChannelFlow.kt:60)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.intellij.psi.codeStyle.CodeStyleSettings$DefaultsHolder
	at com.intellij.psi.codeStyle.CodeStyleSettings.getDefaults(CodeStyleSettings.java:1119)
	at nl.hannahsten.texifyidea.intentions.LatexInsertFormatterCommentsIntention.<init>(LatexInsertFormatterCommentsIntention.kt:17)
	at com.intellij.serviceContainer.ComponentManagerImpl.findConstructorAndInstantiateClass(ComponentManagerImpl.kt:1383)
	at com.intellij.serviceContainer.ComponentManagerImpl.doInstantiateClass(ComponentManagerImpl.kt:1392)
	... 30 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoClassDefFoundError: Could not initialize class nl.hannahsten.texifyidea.settings.codestyle.LatexCodeStyleSettings [in thread "DefaultDispatcher-worker-51"]
	at nl.hannahsten.texifyidea.settings.codestyle.LatexCodeStyleSettingsProvider.createCustomSettings(LatexCodeStyleSettingsProvider.kt:21)
	at nl.hannahsten.texifyidea.settings.codestyle.LatexCodeStyleSettingsProvider.createCustomSettings(LatexCodeStyleSettingsProvider.kt:19)
	at com.intellij.psi.codeStyle.CustomCodeStyleSettingsManager.addCustomSettings(CustomCodeStyleSettingsManager.java:32)
	at com.intellij.psi.codeStyle.CustomCodeStyleSettingsManager.initCustomSettings(CustomCodeStyleSettingsManager.java:27)
	at com.intellij.psi.codeStyle.CodeStyleSettings.<init>(CodeStyleSettings.java:104)
	at com.intellij.psi.codeStyle.CodeStyleSettings$DefaultsHolder.<clinit>(CodeStyleSettings.java:64)
	at com.intellij.psi.codeStyle.CodeStyleSettings.getDefaults(CodeStyleSettings.java:1119)
	at com.intellij.psi.codeStyle.AppCodeStyleSettingsManager.enumSettings(AppCodeStyleSettingsManager.java:24)
	at com.intellij.psi.codeStyle.CodeStyleSettingsManager.getStateModificationCount(CodeStyleSettingsManager.java:171)
	at com.intellij.configurationStore.ComponentWithStateModificationTrackerInfo.getCurrentModificationCount(ComponentInfo.kt:71)
	at com.intellij.configurationStore.ComponentWithStateModificationTrackerInfo.<init>(ComponentInfo.kt:73)
	at com.intellij.configurationStore.ComponentInfoKt.createComponentInfo(ComponentInfo.kt:11)
	at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:121)
	at com.intellij.configurationStore.ComponentStoreWithExtraComponents.initComponent(ComponentStoreWithExtraComponents.kt:48)
	
@tbs257 tbs257 added crash-report Reports of crashes that popped up in IDEA. untriaged Issue type still needs to be triaged or verified. labels Dec 7, 2023
@PHPirates PHPirates changed the title com.intellij.diagnostic.PluginException: Cannot create class nl.hannahsten.texifyidea.intentions.LatexInsertFormatterCommentsIntention (classloader=PluginClassLoader(plugin=PluginDescriptor(name=TeXiFy IDEA, id=nl.rubensten.texifyidea, descriptorPath=plugin.xml, path=~/.local/share/JetBrains/IntelliJIdea2023.3/TeXiFy-IDEA, version=0.9.2, package=null, isBundled=false), packagePrefix=null, state=active)) com.intellij.diagnostic.PluginException: Cannot create class LatexInsertFormatterCommentsIntention Dec 10, 2023
@PHPirates
Copy link
Collaborator

Thanks for reporting! Can you reproduce this exception or did it happen only once?
Looks like #2021 and again I'm not sure what is going on here.

@PHPirates
Copy link
Collaborator

In light of #3757, consider checking the java version if this reoccurs, otherwise I don't know.

@PHPirates PHPirates closed this as not planned Won't fix, can't repro, duplicate, stale Nov 19, 2024
@PHPirates PHPirates added the wontfix Issue will be discarded by the development team. label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash-report Reports of crashes that popped up in IDEA. wontfix Issue will be discarded by the development team.
Projects
None yet
Development

No branches or pull requests

2 participants