bloc icon indicating copy to clipboard operation
bloc copied to clipboard

fix: com.bloc.intellij_generator_plugin.action.GenerateBlocAction retains disposed Project

Open viuginick1 opened this issue 1 year ago • 3 comments

(root): java.lang.Class(com.intellij.openapi.actionSystem.impl.actionholder.ActionRefKt)
(static): kotlin.SynchronizedLazyImpl
_value: com.intellij.openapi.actionSystem.impl.ActionManagerImpl
idToAction: kotlinx.collections.immutable.implementations.immutableMap.PersistentHashMap
node: kotlinx.collections.immutable.implementations.immutableMap.TrieNode
buffer: java.lang.Object[]
[]: kotlinx.collections.immutable.implementations.immutableMap.TrieNode
buffer: java.lang.Object[]
[]: com.bloc.intellij_generator_plugin.action.GenerateBlocAction
dataContext: com.intellij.openapi.actionSystem.impl.PreCachedDataContext
myCachedData: com.intellij.util.containers.FList
myTail: com.intellij.util.containers.FList
myHead: com.intellij.openapi.actionSystem.impl.PreCachedDataContext$ProviderData
table: java.util.concurrent.ConcurrentHashMap$Node[]
[]: java.util.concurrent.ConcurrentHashMap$Node
next: java.util.concurrent.ConcurrentHashMap$Node
val: com.intellij.ide.projectView.impl.ProjectViewImpl
myCopyPasteDelegator: com.intellij.ide.CopyPasteDelegator
myProject: com.intellij.openapi.project.impl.ProjectImpl (disposed)

viuginick1 avatar Jun 18 '24 15:06 viuginick1

Hi 👋 Thanks for opening an issue! Can you please provide some detailed reproduction steps? Thanks!

felangel avatar Jun 18 '24 15:06 felangel

This snapshot is from the Android Studio memory usage report, so unfortunately we don't have steps to reproduce it.

viuginick1 avatar Jun 19 '24 14:06 viuginick1

Similar problem with GenerateCubitAction:

(root): java.lang.Class(com.intellij.openapi.actionSystem.impl.actionholder.ActionRefKt)
(static): kotlin.SynchronizedLazyImpl
_value: com.intellij.openapi.actionSystem.impl.ActionManagerImpl
idToAction: kotlinx.collections.immutable.implementations.immutableMap.PersistentHashMap
node: kotlinx.collections.immutable.implementations.immutableMap.TrieNode
buffer: java.lang.Object[]
[]: kotlinx.collections.immutable.implementations.immutableMap.TrieNode
buffer: java.lang.Object[]
[]: com.bloc.intellij_generator_plugin.action.GenerateCubitAction
dataContext: com.intellij.openapi.actionSystem.impl.PreCachedDataContext
myCachedData: com.intellij.util.containers.FList
myTail: com.intellij.util.containers.FList
myHead: com.intellij.openapi.actionSystem.impl.PreCachedDataContext$ProviderData
table: java.util.concurrent.ConcurrentHashMap$Node[]
[]: java.util.concurrent.ConcurrentHashMap$Node
next: java.util.concurrent.ConcurrentHashMap$Node
val: com.intellij.usages.UsageTarget[]
[]: com.intellij.find.findUsages.PsiElement2UsageTargetAdapter
myOptions: com.intellij.find.findUsages.FindUsagesOptions
searchScope: com.intellij.psi.search.ProjectScopeImpl
myProject: com.intellij.openapi.project.impl.ProjectImpl (disposed)

viuginick1 avatar Jun 19 '24 14:06 viuginick1

Closing for now but if this is still happening in the latest version (v4.0.2) please let me know and I'm happy to take a closer look, thanks!

felangel avatar Oct 09 '24 03:10 felangel

Hello Felix, I don't see any recent changes in GenerateBlocAction#dataContext or GenerateCubitAction#dataContext

viuginick1 avatar Oct 09 '24 11:10 viuginick1