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.NoClassDefFoundError: com/intellij/refactoring/JavaRefactoringSettings #3244

Closed
jojo2357 opened this issue Sep 10, 2023 · 4 comments · Fixed by #3245
Closed

java.lang.NoClassDefFoundError: com/intellij/refactoring/JavaRefactoringSettings #3244

jojo2357 opened this issue Sep 10, 2023 · 4 comments · Fixed by #3245
Assignees
Labels
crash-report Reports of crashes that popped up in IDEA.
Milestone

Comments

@jojo2357
Copy link
Contributor

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

PyCharm 2023.2 (build PY-232.8660.197)

Operating System

Linux 6.4.6-76060406-generic (amd64)

TeXiFy IDEA version

0.9.1

Description

I tried to inline a command and it freaked out. The command has two mandatory arguments

Stacktrace

java.lang.NoClassDefFoundError: com/intellij/refactoring/JavaRefactoringSettings
	at nl.hannahsten.texifyidea.refactoring.inlinecommand.LatexInlineDialog.isInlineThis(LatexInlineDialog.kt:34)
	at com.intellij.refactoring.inline.InlineOptionsDialog.createCenterPanel(InlineOptionsDialog.java:107)
	at com.intellij.openapi.ui.DialogWrapper.init(DialogWrapper.java:1312)
	at nl.hannahsten.texifyidea.refactoring.inlinecommand.LatexInlineCommandDialog.<init>(LatexInlineCommandDialog.kt:26)
	at nl.hannahsten.texifyidea.refactoring.inlinecommand.LatexInlineCommandHandler.inlineElement(LatexInlineCommandHandler.kt:32)
	at com.intellij.refactoring.inline.InlineRefactoringActionHandler.invoke(InlineRefactoringActionHandler.java:58)
	at com.intellij.refactoring.actions.BaseRefactoringAction.performRefactoringAction(BaseRefactoringAction.java:161)
	at com.intellij.refactoring.actions.BaseRefactoringAction.actionPerformed(BaseRefactoringAction.java:110)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.doPerformActionOrShowPopup(ActionUtil.java:339)
	at com.intellij.openapi.keymap.impl.ActionProcessor.performAction(ActionProcessor.java:47)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$myActionProcessor$1.performAction(IdeKeyEventDispatcher.kt:502)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner$lambda$5$lambda$4(IdeKeyEventDispatcher.kt:865)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
	at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner$lambda$5(IdeKeyEventDispatcher.kt:865)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:362)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner(IdeKeyEventDispatcher.kt:863)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.access$doPerformActionInner(IdeKeyEventDispatcher.kt:1)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction$intellij_platform_ide_impl(IdeKeyEventDispatcher.kt:587)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.kt:513)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.kt:454)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.kt:447)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.kt:309)
	at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.kt:617)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:587)
	at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:67)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:369)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:368)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:368)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:363)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:992)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:113)
	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:992)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:363)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:405)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: java.lang.ClassNotFoundException: com.intellij.refactoring.JavaRefactoringSettings PluginClassLoader(plugin=PluginDescriptor(name=TeXiFy IDEA, id=nl.rubensten.texifyidea, descriptorPath=plugin.xml, path=~/.local/share/JetBrains/PyCharm2023.2/TeXiFy-IDEA, version=0.9.1, package=null, isBundled=false), packagePrefix=null, state=active)
	... 43 more

@jojo2357 jojo2357 added crash-report Reports of crashes that popped up in IDEA. untriaged Issue type still needs to be triaged or verified. labels Sep 10, 2023
@jojo2357
Copy link
Contributor Author

I think this is due to the fact I was in Pycharm, not ij. not sure how to fix this cuz idk how to build pycharm community from gradle. will look at this later when i have more time

@PHPirates
Copy link
Collaborator

@jojo2357
Copy link
Contributor Author

Actually i get compile errors when the java plugin is missing, but some of those errors were related to this issue. I just instead built the plugin zip and manually installed it

@PHPirates PHPirates removed the untriaged Issue type still needs to be triaged or verified. label Sep 13, 2023
@PHPirates PHPirates added this to the Next milestone Sep 13, 2023
@PHPirates
Copy link
Collaborator

You are right, I forgot about that. The problem is that the SDK-related code does use the java plugin, so that won't compile against PyCharm. I also don't know a better solution than building a zip and installing it manually, unfortunately.

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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants