-
Notifications
You must be signed in to change notification settings - Fork 507
IntelliJ IDEA is giving com.intellij.diagnostic.PluginException for Tabnine plugin of version 1.209.0 #678
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
Comments
/**
import { EventEmitter } from 'events'; export interface CompletionOption { export interface CompletionRequest { export interface CompletionCache { export class CodeCompletionService extends EventEmitter { constructor() { public static getInstance(): CodeCompletionService { /**
/**
/**
} /**
/**
/**
} /**
} /**
} /**
/**
} export const codeCompletionService = CodeCompletionService.getInstance(); |
Below is a comprehensive explanation of what’s happening and several suggestions on how to move forward. What’s HappeningThe error you’re seeing is:
This indicates that the TabNine plugin is using an outdated API in one of its actions (likely in the class called Why This Error Occurs
In your case, the TabNine plugin (version 1.209.0) still hasn’t updated the affected action ( How to Fix It1. If You’re a TabNine Maintainer or Can Patch the PluginLocate the implementation of import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnActionEvent;
import org.jetbrains.annotations.NotNull;
// Inside your FixCodeAction class
@Override
public @NotNull ActionUpdateThread getActionUpdateThread() {
// Return EDT (most common for UI actions) or BGT if the update is expensive.
return ActionUpdateThread.EDT;
} Make sure that all actions in the plugin now explicitly override this method. Consult the [ActionUpdateThread documentation](https://www.jetbrains.org/intellij/sdk/docs/user_guide/working_with_actions/action_update_thread.html) for additional guidance on choosing between EDT (for quick UI updates) and BGT (for longer-running computations). 2. If You’re an End-UserSince TabNine is a third-party plugin that you likely do not control directly:
3. Workarounds
A Note on the Code Snippet ProvidedThe code snippet (from the // Avoid concurrent cleanups - fixes TabNine issue IntelliJ IDEA is giving ... #678
if (this.isCleaningUp && !force) {
return;
} This comment is unrelated to the deprecation error mentioned above—it’s more about preventing concurrent cache cleanup—and shows that the team is aware of prior issues. The main action needed, however, is in the UI action classes (like Can We Help?Let me know if you’d like further assistance in any of these areas:
I hope this helps clarify what’s going wrong and how to address it. Let me know if you need further assistance or more detailed code examples! |
IntelliJ IDEA is giving the following exception for Tabnine plugin of version 1.209.0:
com.intellij.diagnostic.PluginException:
ActionUpdateThread.OLD_EDTis deprecated and going to be removed soon. 'FixCodeAction' must override
getActionUpdateThread()and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: com.tabnine.TabNine] at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23) at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90) at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:125) at com.intellij.openapi.actionSystem.ActionUpdateThreadAware.getActionUpdateThread(ActionUpdateThreadAware.java:21) at com.intellij.openapi.actionSystem.AnAction.getActionUpdateThread(AnAction.java:201)
The IntelliJ IDEA version used is
`IntelliJ IDEA 2024.2.4 (Ultimate Edition)
Build #IU-242.23726.103, built on October 23, 2024
Licensed to XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (removed company / user information from here)
You have a perpetual fallback license for this version.
Subscription is active until March 3, 2026.
Runtime version: 21.0.4+13-b509.26 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 10.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 28
Registry:
ide.windowSystem.autoShowProcessPopup=true
ide.experimental.ui=true
i18n.locale=
Non-Bundled Plugins:
com.jetbrains.space (242.23726.16)
com.jetbrains.jax.ws (242.20224.159)
com.tabnine.TabNine (1.209.0)
com.intellij.javaee.ejb (242.20224.159)
com.intellij.ml.llm (242.23726.20)
org.mapstruct.intellij (1.8.0)
org.sonarlint.idea (10.11.1.79663)
Kotlin: 242.23726.103-IJ
`
gz#39920
(related to Zendesk ticket #39920)
The text was updated successfully, but these errors were encountered: