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

Capability disposal issue #565

Open
K4ryuu opened this issue Aug 29, 2024 · 1 comment
Open

Capability disposal issue #565

K4ryuu opened this issue Aug 29, 2024 · 1 comment
Labels
untriaged New issue has not been triaged

Comments

@K4ryuu
Copy link

K4ryuu commented Aug 29, 2024

Description

When you hotReload a plugin that has capability added (no static fields, initiated in Load, not at variable aswell) and you have a consumer plugin, when you hotReload the provider, it won't delete the capability, which results in that if you reload the user plugin aswell, it still use the functions which are NOT loaded in form of plugin.

Reproduce steps

  • Create a List or something into provider plugin.
  • Create a capability to add items to list and get its count.
  • Add items from consumer with a cmd or so, which use the capability of provider.
  • Reload provider, then reload consumer.
  • Use the get size function and you'll see the item count is that which got unloaded due to the hotReload.
@github-actions github-actions bot added the untriaged New issue has not been triaged label Aug 29, 2024
@KillStr3aK
Copy link
Contributor

#613 might resolve this, requires further investigation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

2 participants