-
Notifications
You must be signed in to change notification settings - Fork 96
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
Incompatible with Idea2024.1 #115
Comments
没有使用这个高的版本,这个影响使用?
我本地 2021的版本都没有这个函数 |
经常提示报错,影响啊。就算清除掉,还会提示。 |
AnAction.getActionUpdateThread() (2022.3+) return an ActionUpdateThread, which specifies if the update() method is called on a background thread (BGT) or the event-dispatching thread (EDT). The preferred method is to run the update on the BGT, which has the advantage of guaranteeing application-wide read access to PSI, the virtual file system (VFS), or project models. Actions that run the update session on the BGT should not access the Swing component hierarchy directly. Conversely, actions that specify to run their update on the EDT must not access PSI, VFS, or project data but have access to Swing components and other UI models. All accessible data is provided by the DataContext as explained in Determining the Action Context. When switching from BGT to EDT is absolutely necessary, actions can use AnActionEvent.getUpdateSession() to access the UpdateSession and then call UpdateSession.compute() to run a function on the EDT. Starting from IntelliJ Platform version 2022.3, the Plugin DevKit will have an inspection in Plugin DevKit | Code | ActionUpdateThread is missing to notify plugin authors about a missing implementation of AnAction.getActionUpdateThread(). 这里操作了 virtual-file psi 必须 用 BGT |
java.lang.Throwable: Thread context was already set: [ComponentManager(ProjectImpl@1141896172), CoroutineName(com.github.wangji92.arthas.plugin.action.arthas.ArthasShellScriptCommandAction#actionPerformed@EditorPopup), CoroutineId(13443), "com.github.wangji92.arthas.plugin.action.arthas.ArthasShellScriptCommandAction#actionPerformed@EditorPopup#13443":StandaloneCoroutine{Active}@42f5fdb4, ModalityState.NON_MODAL, ActionContextElement(ArthasShellScriptCommandAction@EditorPopup)] |
SwingUtilities.invokeLater(() ->{
ArthasShellScriptCommandDialog dialog = new ArthasShellScriptCommandDialog(event);
dialog.open("Quickly Get Available Command(shell command or common command)");
}); |
@chaoyoung 升级一下版本 ,2.45 已经支持 |
The text was updated successfully, but these errors were encountered: