Title: Python plugin causes makes opening test generation dialog in Java project to fail with `NoClassDefFoundError` · Issue #2720 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Python plugin causes makes opening test generation dialog in Java project to fail with `NoClassDefFoundError` · Issue #2720 · UnitTestBot/UTBotJava
X Title: Python plugin causes makes opening test generation dialog in Java project to fail with `NoClassDefFoundError` · Issue #2720 · UnitTestBot/UTBotJava
Description: Description Python plugin causes makes opening test generation dialog in Java project to fail with ``. To Reproduce Run 'Run IDEA' configuration Open some Java project Put mouse cursor into any method Press Alt+Shift+U, Alt+Shift+T Expec...
Open Graph Description: Description Python plugin causes makes opening test generation dialog in Java project to fail with ``. To Reproduce Run 'Run IDEA' configuration Open some Java project Put mouse cursor into any met...
X Description: Description Python plugin causes makes opening test generation dialog in Java project to fail with ``. To Reproduce Run 'Run IDEA' configuration Open some Java project Put mouse cursor into...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/2720
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python plugin causes makes opening test generation dialog in Java project to fail with `NoClassDefFoundError`","articleBody":"**Description**\r\n\r\nPython plugin causes makes opening test generation dialog in Java project to fail with ``.\r\n\r\n**To Reproduce**\r\n\r\n1. Run 'Run IDEA' configuration\r\n2. Open some Java project\r\n3. Put mouse cursor into any method\r\n4. Press `Alt+Shift+U`, `Alt+Shift+T`\r\n\r\n**Expected behavior**\r\n\r\nTest generation dialog is opened.\r\n\r\n**Actual behavior**\r\n\r\nNo visual changes. \r\n\r\n**Additional context**\r\n\r\nReplacing `pythonIde=IC,IU,PC,PY` with `pythonIde=` in `gradle.properties` resolves the issue.\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\nThere's a following error in the IDE process logs:\r\n```\r\n2023-12-13 19:50:50,897 [ 63756] SEVERE - #c.i.o.a.i.ActionUpdater - GenerateTestsAction#update@keyboard shortcut (org.utbot.intellij.plugin.python.ui.actions.GenerateTestsAction), actionId=org.utbot.intellij.plugin.python.ui.actions.GenerateTestsAction, text='Generate Tests with UnitTestBot...'\r\njava.lang.NoClassDefFoundError: org/jetbrains/kotlin/psi/KtFile\r\n\tat org.utbot.intellij.plugin.ui.utils.PsiElementHandler$Companion.makePsiElementHandler(PsiElementHandler.kt:18)\r\n\tat org.utbot.intellij.plugin.language.JvmLanguageAssistant.getPsiTargets(JavaLanguage.kt:65)\r\n\tat org.utbot.intellij.plugin.language.JvmLanguageAssistant.update(JavaLanguage.kt:54)\r\n\tat org.utbot.intellij.plugin.python.ui.actions.GenerateTestsAction.update(GenerateTestsAction.kt:20)\r\n\tat com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performDumbAwareUpdate$0(ActionUtil.java:159)\r\n\tat com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:182)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.doUpdate(ActionUpdater.java:740)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$updateActionReal$4(ActionUpdater.java:145)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$callAction$5(ActionUpdater.java:195)\r\n\tat com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.computeWithSpan(trace.kt:171)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:191)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:170)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.updateActionReal(ActionUpdater.java:146)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$new$0(ActionUpdater.java:132)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.update(ActionUpdater.java:725)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater$UpdateSessionImpl.presentation(ActionUpdater.java:828)\r\n\tat com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doUpdateActionsInner(IdeKeyEventDispatcher.kt:832)\r\n\tat com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.access$doUpdateActionsInner(IdeKeyEventDispatcher.kt:1)\r\n\tat com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$processAction$chosenPair$1$chosen$2.invoke(IdeKeyEventDispatcher.kt:557)\r\n\tat com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$processAction$chosenPair$1$chosen$2.invoke(IdeKeyEventDispatcher.kt:548)\r\n\tat com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction$lambda$3$lambda$2(IdeKeyEventDispatcher.kt:556)\r\n\tat com.intellij.openapi.actionSystem.impl.Utils.lambda$runUpdateSessionForInputEvent$15(Utils.java:804)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1133)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$tryRunReadActionAndCancelBeforeWrite$19(ActionUpdater.java:435)\r\n\tat com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:63)\r\n\tat com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:133)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.tryRunReadActionAndCancelBeforeWrite(ActionUpdater.java:431)\r\n\tat com.intellij.openapi.actionSystem.impl.Utils.lambda$runUpdateSessionForInputEvent$16(Utils.java:804)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)\r\n\tat com.intellij.openapi.actionSystem.impl.Utils.lambda$runUpdateSessionForInputEvent$18(Utils.java:811)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)\r\n\tat com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)\r\n\tat com.intellij.openapi.actionSystem.impl.Utils.lambda$runUpdateSessionForInputEvent$20(Utils.java:810)\r\n\tat com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:249)\r\n\tat com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:31)\r\n\tat com.intellij.util.concurrency.BoundedTaskExecutor$1.executeFirstTaskAndHelpQueue(BoundedTaskExecutor.java:227)\r\n\tat com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:218)\r\n\tat com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:215)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\r\n\tat java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)\r\n\tat java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)\r\n\tat java.base/java.security.AccessController.doPrivileged(AccessController.java:399)\r\n\tat java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)\r\n\tat java.base/java.lang.Thread.run(Thread.java:833)\r\nCaused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.psi.KtFile PluginClassLoader(plugin=PluginDescriptor(name=UnitTestBot for Python, id=org.utbot.python, descriptorPath=plugin.xml, path=~/IdeaProjects/UTBotJava/utbot-intellij-main/build/idea-sandbox/plugins/utbot-intellij-main, version=2023.12-SNAPSHOT, package=null, isBundled=false), packagePrefix=null, state=active)\r\n\tat com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.kt:156)\r\n\tat java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)\r\n\t... 48 more\r\n2023-12-13 19:50:50,899 [ 63758] SEVERE - #c.i.o.a.i.ActionUpdater - IntelliJ IDEA 2023.2 Build #IC-232.8660.185\r\nCaused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.psi.KtFile PluginClassLoader(plugin=PluginDescriptor(name=UnitTestBot for Python, id=org.utbot.python, descriptorPath=plugin.xml, path=~/IdeaProjects/UTBotJava/utbot-intellij-main/build/idea-sandbox/plugins/utbot-intellij-main, version=2023.12-SNAPSHOT, package=null, isBundled=false), packagePrefix=null, state=active)\r\n\r\n2023-12-13 19:50:50,899 [ 63758] SEVERE - #c.i.o.a.i.ActionUpdater - JDK: 17.0.7; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.\r\n2023-12-13 19:50:50,899 [ 63758] SEVERE - #c.i.o.a.i.ActionUpdater - OS: Linux\r\n2023-12-13 19:50:50,899 [ 63758] SEVERE - #c.i.o.a.i.ActionUpdater - Plugin to blame: UnitTestBot for Python version: 2023.12-SNAPSHOT\r\n2023-12-13 19:50:54,858 [ 67717] SEVERE - #c.i.o.a.i.ActionUpdater - GenerateTestsAction#update@ProjectViewPopup (org.utbot.intellij.plugin.python.ui.actions.GenerateTestsAction), actionId=org.utbot.intellij.plugin.python.ui.actions.GenerateTestsAction, text='Generate Tests with UnitTestBot...'\r\njava.lang.NoClassDefFoundError: org/jetbrains/kotlin/psi/KtFile\r\n\tat org.utbot.intellij.plugin.ui.utils.PsiElementHandler$Companion.makePsiElementHandler(PsiElementHandler.kt:18)\r\n\tat org.utbot.intellij.plugin.language.JvmLanguageAssistant.getPsiTargets(JavaLanguage.kt:95)\r\n\tat org.utbot.intellij.plugin.language.JvmLanguageAssistant.update(JavaLanguage.kt:54)\r\n\tat org.utbot.intellij.plugin.python.ui.actions.GenerateTestsAction.update(GenerateTestsAction.kt:20)\r\n\tat com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performDumbAwareUpdate$0(ActionUtil.java:159)\r\n\tat com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:182)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.doUpdate(ActionUpdater.java:740)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$updateActionReal$4(ActionUpdater.java:145)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$callAction$5(ActionUpdater.java:195)\r\n\tat com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.computeWithSpan(trace.kt:171)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:191)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:170)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.updateActionReal(ActionUpdater.java:146)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$new$0(ActionUpdater.java:132)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.update(ActionUpdater.java:725)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:566)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$22(ActionUpdater.java:531)\r\n\tat com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1539)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:531)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroup(ActionUpdater.java:315)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroupAsync$14(ActionUpdater.java:382)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroupAsync$15(ActionUpdater.java:403)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1133)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$tryRunReadActionAndCancelBeforeWrite$19(ActionUpdater.java:435)\r\n\tat com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:63)\r\n\tat com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:133)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.tryRunReadActionAndCancelBeforeWrite(ActionUpdater.java:431)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroupAsync$16(ActionUpdater.java:403)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)\r\n\tat com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173)\r\n\tat com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:360)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroupAsync$17(ActionUpdater.java:402)\r\n\tat io.opentelemetry.context.Context.lambda$wrap$1(Context.java:212)\r\n\tat com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:249)\r\n\tat com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:31)\r\n\tat com.intellij.util.concurrency.BoundedTaskExecutor$1.executeFirstTaskAndHelpQueue(BoundedTaskExecutor.java:227)\r\n\tat com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:218)\r\n\tat com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:215)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\r\n\tat java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)\r\n\tat java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)\r\n\tat java.base/java.security.AccessController.doPrivileged(AccessController.java:399)\r\n\tat java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)\r\n\tat java.base/java.lang.Thread.run(Thread.java:833)\r\nCaused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.psi.KtFile PluginClassLoader(plugin=PluginDescriptor(name=UnitTestBot for Python, id=org.utbot.python, descriptorPath=plugin.xml, path=~/IdeaProjects/UTBotJava/utbot-intellij-main/build/idea-sandbox/plugins/utbot-intellij-main, version=2023.12-SNAPSHOT, package=null, isBundled=false), packagePrefix=null, state=active)\r\n\t... 50 more\r\n```\r\n\r\n**Environment**\r\n\r\nUbuntu 22.04.3 LTS\r\nJava 17\r\n","author":{"url":"https://github.com/IlyaMuravjov","@type":"Person","name":"IlyaMuravjov"},"datePublished":"2023-12-13T16:57:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2720/UTBotJava/issues/2720"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9ca6b61a-1b78-223a-484d-5f0c1bfbb0c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB94:12DDE1:53894B:6E7110:698F9F60 |
| html-safe-nonce | 614a6b33837cbf73fed6ed276a96d74907e34638d0adae7c17d656b539eb044f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjk0OjEyRERFMTo1Mzg5NEI6NkU3MTEwOjY5OEY5RjYwIiwidmlzaXRvcl9pZCI6IjUzNjY0MDM4MDY2NjQ4MjY3MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4984085717773ae7a768e56e015821d2fa403b73584742444402ba36153906bb |
| hovercard-subject-tag | issue:2040123791 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UnitTestBot/UTBotJava/2720/issue_layout |
| twitter:image | https://opengraph.githubassets.com/01b59b6d87051df11cfa10dffb129ad37fbcf43e6d959fc7ee69ec432eff0985/UnitTestBot/UTBotJava/issues/2720 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/01b59b6d87051df11cfa10dffb129ad37fbcf43e6d959fc7ee69ec432eff0985/UnitTestBot/UTBotJava/issues/2720 |
| og:image:alt | Description Python plugin causes makes opening test generation dialog in Java project to fail with ``. To Reproduce Run 'Run IDEA' configuration Open some Java project Put mouse cursor into any met... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | IlyaMuravjov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f47eb8d0aaafbfcb6a8220a40bd81431acf688857c575e6489670c394cfa36f |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 17aba3d160d69b8c2b37695ebd174d8101af8896 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width