Unable to run Kotlin in intellij IDEA

已回答

Hello,

I am unable to run Kotlin in intellij. It was working initially, but suddenly stopped working. Project builds successfully but just doesn't run. I have tried the "edit configuration", but I can't select the .kt file in the "Main Class" space. Java classes seem to run, just not kotlin. Help please. I have stuck here for 6 hours now.


0

Hi. Are there any error messages? Could you please provide idea.log and build.log (Help | Show log...)?

0

Thanks Petr, I had to reinstall intellij to get it to start working again. The logs I can't get them again 

0

I, have same problem. Log:

2022-04-25 08:09:15,471 [4502687]   INFO - pl.ProjectRootManagerComponent - Project roots of KotlinApp have changed (stacktrace has been already reported with trace_hash = 126208795) 
2022-04-25 08:09:15,483 [4502699]   INFO - ij.psi.search.LogFileTypeIndex - Loading file type index snapshot 
2022-04-25 08:09:15,509 [4502725]   INFO - indexing.UnindexedFilesUpdater - Started indexing of KotlinApp. Reason: Project roots have changed 
2022-04-25 08:09:15,509 [4502725]   INFO - indexing.UnindexedFilesUpdater - Performing delayed pushing properties tasks for KotlinApp took 0ms; general responsiveness: ok; EDT responsiveness: ok 
2022-04-25 08:09:15,510 [4502726]   INFO - indexing.UnindexedFilesUpdater - Scanning of KotlinApp uses 11 scanning threads 
2022-04-25 08:09:15,540 [4502756]   WARN - ntellij.ui.tree.AsyncTreeModel - ignore duplicated child at 1: DevSupp 
2022-04-25 08:09:15,540 [4502756]   WARN - ntellij.ui.tree.AsyncTreeModel - ignore duplicated child at 2: DevSupp 
2022-04-25 08:09:15,565 [4502781]   WARN - ntellij.ui.tree.AsyncTreeModel - ignore duplicated child at 1: DevSupp 
2022-04-25 08:09:15,565 [4502781]   WARN - ntellij.ui.tree.AsyncTreeModel - ignore duplicated child at 2: DevSupp 
2022-04-25 08:09:15,608 [4502824]   INFO - indexing.UnindexedFilesUpdater - Scanning completed for KotlinApp. Number of scanned files: 52302; Number of files for indexing: 0 took 99ms; general responsiveness: ok; EDT responsiveness: ok 
2022-04-25 08:09:15,608 [4502824]   INFO - indexing.UnindexedFilesUpdater - Finished for KotlinApp. No files to index with loading content. 
2022-04-25 08:09:15,608 [4502824]   INFO - ij.psi.search.LogFileTypeIndex - File type index snapshot dropped 
2022-04-25 08:09:41,416 [4528632]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS) 
2022-04-25 08:09:42,072 [4529288]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files (x86)/programming/IntelliJU2021.1/plugins/java/lib/jps-launcher.jar 
2022-04-25 08:09:43,196 [4530412]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: An illegal reflective access operation has occurred 
2022-04-25 08:09:43,197 [4530413]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil (file:/C:/Program%20Files%20(x86)/programming/IntelliJU2021.1/lib/util.jar) to method java.util.ResourceBundle.setParent(java.util.ResourceBundle) 
2022-04-25 08:09:43,197 [4530413]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil 
2022-04-25 08:09:43,197 [4530413]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations 
2022-04-25 08:09:43,197 [4530413]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: All illegal access operations will be denied in a future release 
2022-04-25 08:09:45,089 [4532305]   INFO - lij.compiler.impl.CompilerUtil -     COMPILATION FINISHED (BUILD PROCESS); Errors: 0; warnings: 1 took 3677 ms: 0 min 3sec 
2022-04-25 08:09:45,095 [4532311]   INFO - xecution.runners.ExecutionUtil - Error running 'Unnamed':<br>Class 'ssw.test.kotlin.AppKotlin' not found in module 'mainModule' 
com.intellij.execution.CantRunException: Class 'ssw.test.kotlin.AppKotlin' not found in module 'mainModule'
    at com.intellij.execution.CantRunException.classNotFound(CantRunException.java:43)
    at org.jetbrains.kotlin.idea.run.KotlinRunConfiguration$MyJavaCommandLineState.getClasspathType(KotlinRunConfiguration.kt:316)
    at org.jetbrains.kotlin.idea.run.KotlinRunConfiguration$MyJavaCommandLineState.access$getClasspathType(KotlinRunConfiguration.kt:294)
    at org.jetbrains.kotlin.idea.run.KotlinRunConfiguration$MyJavaCommandLineState$createJavaParameters$classPathType$1.compute(KotlinRunConfiguration.kt:301)
    at org.jetbrains.kotlin.idea.run.KotlinRunConfiguration$MyJavaCommandLineState$createJavaParameters$classPathType$1.compute(KotlinRunConfiguration.kt:294)
    at com.intellij.openapi.project.DumbService.computeWithAlternativeResolveEnabled(DumbService.java:361)
    at org.jetbrains.kotlin.idea.run.KotlinRunConfiguration$MyJavaCommandLineState.createJavaParameters(KotlinRunConfiguration.kt:300)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:854)
    at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:61)
    at com.intellij.execution.configurations.JavaCommandLineState.getJavaParameters(JavaCommandLineState.java:44)
    at com.intellij.execution.impl.DefaultJavaProgramRunner.patchJavaCommandLineParams(DefaultJavaProgramRunner.java:153)
    at com.intellij.execution.impl.DefaultJavaProgramRunner.lambda$doExecuteAsync$5(DefaultJavaProgramRunner.java:179)
    at com.intellij.execution.target.TargetEnvironmentAwareRunProfileState.lambda$prepareTargetToCommandExecution$0(TargetEnvironmentAwareRunProfileState.java:50)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
    at java.base/java.lang.Thread.run(Thread.java:829)
2022-04-25 08:09:45,107 [4532323]   INFO - ry.NodeModulesDirectoryManager - Found 0 libraries, trying to add them: [] 
2022-04-25 08:09:45,157 [4532373]   INFO - s.CompilerReferenceServiceBase - backward reference index reader is opened 
2022-04-25 08:09:45,206 [4532422]   WARN - ntellij.ui.tree.AsyncTreeModel - ignore duplicated child at 1: DevSupp 
2022-04-25 08:09:45,206 [4532422]   WARN - ntellij.ui.tree.AsyncTreeModel - ignore duplicated child at 2: DevSupp 
2022-04-25 08:09:45,821 [4533037]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files (x86)/programming/IntelliJU2021.1/plugins/java/lib/jps-launcher.jar 
2022-04-25 08:09:46,874 [4534090]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: An illegal reflective access operation has occurred 
2022-04-25 08:09:46,874 [4534090]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil (file:/C:/Program%20Files%20(x86)/programming/IntelliJU2021.1/lib/util.jar) to method java.util.ResourceBundle.setParent(java.util.ResourceBundle) 
2022-04-25 08:09:46,874 [4534090]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil 
2022-04-25 08:09:46,874 [4534090]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations 
2022-04-25 08:09:46,874 [4534090]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: All illegal access operations will be denied in a future release 
2022-04-25 08:09:50,719 [4537935]   INFO - .deployment.AsyncDevicesGetter - adb not found 
2022-04-25 08:09:57,295 [4544511]   INFO - .deployment.AsyncDevicesGetter - adb not found 
2022-04-25 08:09:57,296 [4544512]   INFO - .deployment.AsyncDevicesGetter - adb not found 
2022-04-25 08:09:59,264 [4546480]   INFO - rationStore.ComponentStoreImpl - Saving appFileTypeManager took 11 ms 
2022-04-25 08:09:59,269 [4546485]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS) 
2022-04-25 08:09:59,271 [4546487]   INFO - j.compiler.server.BuildManager - Using preloaded build process to compile c:/kb/supp/KotlinApp 
2022-04-25 08:09:59,441 [4546657]   INFO - lij.compiler.impl.CompilerUtil -     COMPILATION FINISHED (BUILD PROCESS); Errors: 0; warnings: 0 took 177 ms: 0 min 0sec 
2022-04-25 08:09:59,447 [4546663]   INFO - xecution.runners.ExecutionUtil - Error running 'AppKotlin':<br>Class 'ssw.test.kotlin.AppKotlin' not found in module 'mainModule' 
com.intellij.execution.CantRunException: Class 'ssw.test.kotlin.AppKotlin' not found in module 'mainModule'
    at com.intellij.execution.CantRunException.classNotFound(CantRunException.java:43)
    at org.jetbrains.kotlin.idea.run.KotlinRunConfiguration$MyJavaCommandLineState.getClasspathType(KotlinRunConfiguration.kt:316)
    at org.jetbrains.kotlin.idea.run.KotlinRunConfiguration$MyJavaCommandLineState.access$getClasspathType(KotlinRunConfiguration.kt:294)
    at org.jetbrains.kotlin.idea.run.KotlinRunConfiguration$MyJavaCommandLineState$createJavaParameters$classPathType$1.compute(KotlinRunConfiguration.kt:301)
    at org.jetbrains.kotlin.idea.run.KotlinRunConfiguration$MyJavaCommandLineState$createJavaParameters$classPathType$1.compute(KotlinRunConfiguration.kt:294)
    at com.intellij.openapi.project.DumbService.computeWithAlternativeResolveEnabled(DumbService.java:361)
    at org.jetbrains.kotlin.idea.run.KotlinRunConfiguration$MyJavaCommandLineState.createJavaParameters(KotlinRunConfiguration.kt:300)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:854)
    at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:61)
    at com.intellij.execution.configurations.JavaCommandLineState.getJavaParameters(JavaCommandLineState.java:44)
    at com.intellij.execution.impl.DefaultJavaProgramRunner.patchJavaCommandLineParams(DefaultJavaProgramRunner.java:153)
    at com.intellij.execution.impl.DefaultJavaProgramRunner.lambda$doExecuteAsync$5(DefaultJavaProgramRunner.java:179)
    at com.intellij.execution.target.TargetEnvironmentAwareRunProfileState.lambda$prepareTargetToCommandExecution$0(TargetEnvironmentAwareRunProfileState.java:50)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
    at java.base/java.lang.Thread.run(Thread.java:829)
2022-04-25 08:09:59,477 [4546693]   INFO - s.CompilerReferenceServiceBase - backward reference index reader is opened 
2022-04-25 08:10:00,098 [4547314]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files (x86)/programming/IntelliJU2021.1/plugins/java/lib/jps-launcher.jar 
2022-04-25 08:10:01,314 [4548530]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: An illegal reflective access operation has occurred 
2022-04-25 08:10:01,315 [4548531]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil (file:/C:/Program%20Files%20(x86)/programming/IntelliJU2021.1/lib/util.jar) to method java.util.ResourceBundle.setParent(java.util.ResourceBundle) 
2022-04-25 08:10:01,315 [4548531]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil 
2022-04-25 08:10:01,315 [4548531]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations 
2022-04-25 08:10:01,315 [4548531]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: All illegal access operations will be denied in a future release 
2022-04-25 08:12:14,455 [4681671]   INFO - .deployment.AsyncDevicesGetter - adb not found 
2022-04-25 08:12:17,756 [4684972]   WARN - nSystem.impl.ActionToolbarImpl - 'ChooseByNameBase' toolbar by default uses any focused component to update its actions. Toolbar actions that need local UI context would be incorrectly disabled. Please call toolbar.setTargetComponent() explicitly. 
java.lang.Throwable: toolbar creation trace
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.<init>(ActionToolbarImpl.java:112)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.createActionToolbar(ActionManagerImpl.java:432)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.createActionToolbar(ActionManagerImpl.java:426)
    at com.intellij.ide.util.gotoByName.ChooseByNameBase.initUI(ChooseByNameBase.java:434)
    at com.intellij.ide.util.gotoByName.ChooseByNamePanel.initUI(ChooseByNamePanel.java:44)
    at com.intellij.ide.util.AbstractTreeClassChooserDialog$4.initUI(AbstractTreeClassChooserDialog.java:210)
    at com.intellij.ide.util.gotoByName.ChooseByNameBase.invoke(ChooseByNameBase.java:246)
    at com.intellij.ide.util.AbstractTreeClassChooserDialog.createCenterPanel(AbstractTreeClassChooserDialog.java:242)
    at com.intellij.openapi.ui.DialogWrapper.init(DialogWrapper.java:1348)
    at com.intellij.ide.util.AbstractTreeClassChooserDialog.<init>(AbstractTreeClassChooserDialog.java:107)
    at com.intellij.ide.util.TreeJavaClassChooserDialog.<init>(TreeJavaClassChooserDialog.java:49)
    at com.intellij.ide.util.TreeJavaClassChooserDialog.withInnerClasses(TreeJavaClassChooserDialog.java:57)
    at com.intellij.ide.util.TreeClassChooserFactoryImpl.createWithInnerClassesScopeChooser(TreeClassChooserFactoryImpl.java:28)
    at com.intellij.execution.ui.ClassBrowser.createClassChooser(ClassBrowser.java:59)
    at com.intellij.execution.ui.ClassBrowser.showDialog(ClassBrowser.java:46)
    at com.intellij.execution.configuration.BrowseModuleValueActionListener.actionPerformed(BrowseModuleValueActionListener.java:53)
    at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
    at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
    at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
    at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
    at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:270)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
    at java.desktop/java.awt.Component.processMouseEvent(Component.java:6652)
    at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3345)
    at java.desktop/java.awt.Component.processEvent(Component.java:6417)
    at java.desktop/java.awt.Container.processEvent(Container.java:2263)
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5027)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2784)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:886)
    at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:815)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:752)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:442)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:825)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:441)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:794)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
    at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
    at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
    at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
    at java.desktop/java.awt.Dialog.show(Dialog.java:1063)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:699)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:435)
    at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1726)
    at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1685)
    at com.intellij.execution.actions.EditRunConfigurationsAction.actionPerformed(EditRunConfigurationsAction.java:30)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performActionDumbAwareWithCallbacks$4(ActionUtil.java:240)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:261)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:240)
    at com.intellij.ui.popup.ActionPopupStep.performAction(ActionPopupStep.java:252)
    at com.intellij.ui.popup.ActionPopupStep.performAction(ActionPopupStep.java:242)
    at com.intellij.ui.popup.ActionPopupStep.lambda$onChosen$2(ActionPopupStep.java:228)
    at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)
    at com.intellij.ui.popup.AbstractPopup.lambda$dispose$18(AbstractPopup.java:1503)
    at com.intellij.util.ui.EdtInvocationManager.invokeLaterIfNeeded(EdtInvocationManager.java:101)
    at com.intellij.ide.IdeEventQueue.ifFocusEventsInTheQueue(IdeEventQueue.java:185)
    at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(IdeEventQueue.java:139)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:175)
    at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.doWhenFocusSettlesDown(IdeFocusManagerImpl.java:36)
    at com.intellij.ui.popup.AbstractPopup.dispose(AbstractPopup.java:1500)
    at com.intellij.ui.popup.WizardPopup.dispose(WizardPopup.java:163)
    at com.intellij.ui.popup.list.ListPopupImpl.dispose(ListPopupImpl.java:337)
    at com.intellij.ui.popup.PopupFactoryImpl$ActionGroupPopup.dispose(PopupFactoryImpl.java:287)
    at com.intellij.openapi.util.ObjectTree.runWithTrace(ObjectTree.java:136)
    at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:166)
    at com.intellij.openapi.util.Disposer.dispose(Disposer.java:155)
    at com.intellij.openapi.util.Disposer.dispose(Disposer.java:143)
    at com.intellij.ui.popup.WizardPopup.disposeAllParents(WizardPopup.java:266)
    at com.intellij.ui.popup.list.ListPopupImpl.handleNextStep(ListPopupImpl.java:444)
    at com.intellij.ui.popup.list.ListPopupImpl._handleSelect(ListPopupImpl.java:416)
    at com.intellij.ui.popup.list.ListPopupImpl.handleSelect(ListPopupImpl.java:372)
    at com.intellij.ui.popup.PopupFactoryImpl$ActionGroupPopup.handleSelect(PopupFactoryImpl.java:304)
    at com.intellij.ui.popup.list.ListPopupImpl$MyMouseListener.mouseReleased(ListPopupImpl.java:629)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:298)
    at java.desktop/java.awt.Component.processMouseEvent(Component.java:6652)
    at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3345)
    at com.intellij.ui.popup.list.ListPopupImpl$MyList.processMouseEvent(ListPopupImpl.java:706)
    at java.desktop/java.awt.Component.processEvent(Component.java:6417)
    at java.desktop/java.awt.Container.processEvent(Container.java:2263)
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5027)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2784)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:886)
    at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:815)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:752)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:442)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:825)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:441)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:794)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2022-04-25 08:13:05,586 [4732802]   INFO - j.ide.actions.RevealFileAction - Exit code 1 
0

Martin Sveda

What version of the IDE do you use?

How was the project created? 

How do you run the app? Are you able to run it by clicking on the green arrow icon next to the function declaration?

Did you create this Kotlin file manually?

0

Hi,

version: IntelliJ IDEA 2021.2, Build #IU-212.4746.92

This project was created by adding Kotlin to Java project. But same result I have, when I try by: New project \ Kotlin (Project template: Application).

There is no green arrow icon not for function neither for class.

This file was created manually by Right click / Kotlin Class/File and type className

0

Please, create an issue and attach all logs and your project, if possible.

0

请先登录再写评论。