jonathanlermitage / intellij-extra-icons-plugin

šŸ§© Issues and feature requests for Extra Icons plugin for IntelliJ-based IDEs. Also provides Theme Packs for Extra Icons.
https://plugins.jetbrains.com/plugin/11058-extra-icons
Other
172 stars 52 forks source link

java.lang.Throwable: TreeUI should be accessed only from EDT #172

Closed nunonux closed 11 months ago

nunonux commented 11 months ago

Running environment

Bug description

Please include steps to reproduce (like go to.../click on... etc.) + expected and actual behaviour.
Please attach IDE logs. Open your IDE and go to Help, Show Log in Explorer, then pick idea.log.

IDE - additional info

N/A

IDE - stack trace


java.lang.Throwable: TreeUI should be accessed only from EDT
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
    at com.intellij.ui.tree.ui.DefaultTreeUI.isValid(DefaultTreeUI.java:216)
    at com.intellij.ui.tree.ui.DefaultTreeUI.getRowCount(DefaultTreeUI.java:772)
    at java.desktop/javax.swing.JTree.getRowCount(JTree.java:1697)
    at com.intellij.util.ui.tree.TreeUtil.collectExpandedObjects(TreeUtil.java:192)
    at com.intellij.util.ui.tree.TreeUtil.collectExpandedPaths(TreeUtil.java:175)
    at com.intellij.ide.util.treeView.TreeState.createOn(TreeState.java:173)
    at com.jetbrains.rider.projectView.views.SolutionViewPaneBase.createTreeState(SolutionViewPaneBase.kt:293)
    at com.intellij.ide.projectView.impl.AbstractProjectViewPane.saveExpandedPaths(AbstractProjectViewPane.java:702)
    at com.jetbrains.rider.projectView.views.SolutionViewPaneBase.updateFromRoot(SolutionViewPaneBase.kt:299)
    at com.jetbrains.rider.projectView.views.SolutionViewPaneBase.updateFromRoot(SolutionViewPaneBase.kt:296)
    at com.intellij.ide.projectView.impl.ProjectViewImpl.refresh(ProjectViewImpl.java:1154)
    at lermitage.intellij.extra.icons.utils.ProjectUtils.refreshProject(ProjectUtils.java:29)
    at lermitage.intellij.extra.icons.enablers.AbstractInFolderEnabler.init(AbstractInFolderEnabler.java:52)
    at lermitage.intellij.extra.icons.enablers.EnablerUtils.lambda$forceInitAllEnablers$0(EnablerUtils.java:24)
    at java.base/java.util.Optional.ifPresent(Optional.java:178)
    at lermitage.intellij.extra.icons.enablers.EnablerUtils.forceInitAllEnablers(EnablerUtils.java:24)
    at lermitage.intellij.extra.icons.activity.EnablerServicesPostStartupActivity.lambda$execute$0(EnablerServicesPostStartupActivity.java:24)
    at com.intellij.openapi.project.DumbService.runReadActionInSmartMode$lambda$2(DumbService.kt:129)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:909)
    at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:65)
    at com.intellij.openapi.project.DumbService.runReadActionInSmartMode(DumbService.kt:122)
    at lermitage.intellij.extra.icons.activity.EnablerServicesPostStartupActivity.execute(EnablerServicesPostStartupActivity.java:23)
    at com.intellij.ide.startup.impl.StartupManagerImplKt$launchActivity$1.invokeSuspend(StartupManagerImpl.kt:482)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    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)
jonathanlermitage commented 11 months ago

@nunonux This should be fixed in more recent versions of Extra Icons, like version 2023.3-231.
Version 2023.2.11-231 is too old. Can you please update Extra Icons plugin? Feel free to re-open this issue if this is not fixed in version 2023.3-231 (or, better, 2023.4.*). Thanks

nunonux commented 9 months ago

@jonathanlermitage this was fun, or jetbrains rider is doing a great job or it's extraicons, because I don't remember me creating this. Well, good job!