Incompatible Changes in IntelliJ Platform and Plugins API 2022.*
Please see 验证插件兼容性 on how to use Plugin Verifier and IDE inspections to check such problems.
Early Access Program (EAP) releases of upcoming versions are available here.
2022.3
IntelliJ Platform 2022.3
2022.2
IntelliJ Platform 2022.2
- com.intellij.openapi.actionSystem.TypeSafeDataProvider class removed
Use
com.intellij.openapi.actionSystem.DataProviderclass instead.- com.intellij.openapi.actionSystem.DataSink class removed
Removed along with
com.intellij.openapi.actionSystem.TypeSafeDataProvider.- com.intellij.openapi.vcs.changes.ui.ChangesBrowser class removed
Use
com.intellij.openapi.vcs.changes.ui.ChangesBrowserBaseorcom.intellij.openapi.vcs.changes.ui.SimpleChangesBrowserinstead.- com.intellij.openapi.vcs.changes.ui.ChangesBrowser.MyUseCase class removed
Removed along with
com.intellij.openapi.vcs.changes.ui.ChangesBrowser.- com.intellij.openapi.vcs.changes.ui.ChangesTreeList class removed
Use
com.intellij.openapi.vcs.changes.ui.ChangesTreeorcom.intellij.openapi.vcs.changes.ui.ChangesTreeImplinstead.- com.intellij.ide.IdeEventQueue.unsafeNonblockingExecute(Runnable) method removed
Method does not make sense anymore, please see JBR-4328.
- com.intellij.vcs.log.VcsLogHighlighter.getStyle(int, VcsShortCommitDetails, boolean) method removed
Use
com.intellij.vcs.log.VcsLogHighlighter.getStyle(int, VcsShortCommitDetails, int, boolean)instead.- com.intellij.AbstractBundle.getResourceBundle(java.lang.String, java.lang.ClassLoader) method removed
Use
com.intellij.DynamicBundle.getResourceBundle(java.lang.ClassLoader, java.lang.String)instead
Java Plugin 2022.2
- com.intellij.codeInspection.javaDoc.JavaDocLocalInspection class removed
Use
com.intellij.codeInspection.javaDoc.JavadocDeclarationInspection.ADDITIONAL_TAGSfield instead ofJavaDocLocalInspection.myAdditionalJavadocTags.
Plugin DevKit Plugin 2022.2
- icons.DevkitIcons class renamed to org.jetbrains.idea.devkit.DevKitIcons
Use
org.jetbrains.idea.devkit.DevKitIconsinstead.- icons.DevkitIcons.Gutter class renamed to org.jetbrains.idea.devkit.DevKitIcons.Gutter
Use
org.jetbrains.idea.devkit.DevKitIcons.Gutterinstead.
Collaboration Tools 2022.2
- com.intellij.collaboration.auth.ui.AccountsListModelBase.notifyCredentialsChanged(A account) method visibility changed from protected to private
Method hidden for better encapsulation.
- com.intellij.collaboration.auth.ui.AccountsPanelFactory.INSTANCE field removed
Factory is now a factory.
- com.intellij.collaboration.auth.ui.LoadingAccountsDetailsProvider.DetailsLoadingResult class removed
Better API introduced in the form of
com.intellij.collaboration.auth.ui.AccountsDetailsLoader.- com.intellij.collaboration.auth.ui.LoadingAccountsDetailsProvider class removed
Better API introduced in the form of
com.intellij.collaboration.auth.ui.AccountsDetailsLoader.- com.intellij.collaboration.ui.codereview.avatar.CachingAvatarIconsProvider class renamed to com.intellij.collaboration.ui.codereview.avatar.CachingCircleImageIconsProvider
Icon provider implementation changes to async.
GitHub 2022.2
- org.jetbrains.plugins.github.api.GithubApiRequestExecutorManager.getExecutor(GithubAccount) method return type changed from org.jetbrains.plugins.github.api.GithubApiRequestExecutor.WithTokenAuth to org.jetbrains.plugins.github.api.GithubApiRequestExecutor
Hidden implementation details.
- org.jetbrains.plugins.github.api.GithubApiRequestExecutorManager.getExecutor(GithubAccount, Project) method return type changed from org.jetbrains.plugins.github.api.GithubApiRequestExecutor.WithTokenAuth to org.jetbrains.plugins.github.api.GithubApiRequestExecutor
Hidden implementation details.
- org.jetbrains.plugins.github.api.GithubApiRequestExecutorManager.getExecutor(GithubAccount, JComponent) method return type changed from org.jetbrains.plugins.github.api.GithubApiRequestExecutor.WithTokenAuth to org.jetbrains.plugins.github.api.GithubApiRequestExecutor
Hidden implementation details.
Grazie Plugin 2022.2
- Method com.intellij.grazie.GrazieBundle.message(key, parameters) marked static
To shorten Java callers.
Docker Plugin 2022.2
- com.intellij.docker.registry.DockerRegistry class renamed to com.intellij.docker.registry.DockerRegistryConfiguration
Please update usages.
JavaScript Plugin 2022.2
- com.intellij.lang.javascript.buildTools.webpack.WebPackConfigManager.setConfig(WebPackConfig) method moved to the superclass
Should be used only in tests (marked with
@TestOnly).- com.intellij.lang.javascript.buildTools.webpack.WebPackConfig class renamed to com.intellij.lang.javascript.buildTools.bundler.WebBundlerConfig
Use
com.intellij.lang.javascript.buildTools.bundler.WebBundlerConfiginstead.- com.intellij.lang.javascript.buildTools.webpack.WebPackResolve class renamed to com.intellij.lang.javascript.buildTools.bundler.WebBundlerResolve
Use
com.intellij.lang.javascript.buildTools.bundler.WebBundlerResolveinstead.- com.intellij.lang.javascript.buildTools.webpack.WebPackConfigPath class removed
A regular String class is used instead.
2022.1
IntelliJ Platform 2022.1
- org.apache.log4j package removed
log4j library removed from IntelliJ Platform, please see this blog post for migration instructions.
- org.slf4j package removed
log4j library removed from IntelliJ Platform, please see this blog post for migration instructions.
- com.intellij.openapi.diagnostic.Log4jBasedLogger class removed
log4j library removed from IntelliJ Platform, please see this blog post for migration instructions.
- com.intellij.platform.DirectoryProjectConfigurator.configureProject(Project, VirtualFile, Ref
, boolean) marked abstract Implement it instead of removed one.
- com.intellij.psi.impl.java.stubs.index.JavaStubIndexKeys.CLASS_FQN field type changed from StubIndexKey
to StubIndexKey JavaFullClassNameIndexnow takesCharSequenceinstead of itshashCodeto allow specific optimizations.- com.intellij.psi.impl.java.stubs.index.JavaFullClassNameIndex.getKey method return type changed from StubIndexKey
to StubIndexKey JavaFullClassNameIndexnow takesCharSequenceinstead of itshashCodeto allow specific optimizations.- com.intellij.psi.impl.java.stubs.index.JavaFullClassNameIndex.get(Integer, Project, GlobalSearchScope) method parameter type changed from Integer to CharSequence
JavaFullClassNameIndexnow takesCharSequenceinstead of itshashCodeto allow specific optimizations.- com.jcraft.jsch package removed
JSch library was removed, bundle it with your plugin instead.
- com.intellij.diagnostic.DialogAppender.addFilter(Filter) method removed
DialogAppendernow implementsjava.util.logging.Handler, usesetFiltermethod if you need to apply a filter.- com.intellij.psi.impl.cache.impl.BaseFilterLexerUtil.ScanContent class removed
Todo index is removed from the indexing procedure, use specific
calcIdEntriesorcalcTodoEntriesmethod instead.- com.intellij.psi.impl.cache.impl.BaseFilterLexerUtil.scanContent(FileContent, IdAndToDoScannerBasedOnFilterLexer) method removed
Todo index is removed from the indexing procedure, use specific
calcIdEntriesorcalcTodoEntriesmethod instead.- com.intellij.util.ui.StartupUiUtil.createStyleSheet(String) method removed
Method moved to
com.intellij.util.ui.StyleSheetUtil
Collaboration Tools 2022.1
- com.intellij.collaboration.auth.ui.AccountsPanelFactory.accountsPanel(Row, AccountManager, PersistentDefaultAccountHolder, AccountsListModel, AccountsDetailsProvider, Disposable, Icon) method removed
Support for default accounts required a signature change.
Markdown Plugin 2022.1
- org.intellij.markdown.parser.constraints.MarkdownConstraints.Companion class removed
Some methods from a companion object were moved to
CommonMarkdownConstraintsand to extension functions onMarkdownConstraints.- org.intellij.markdown.parser.constraints.MarkdownConstraints.Companion field removed
Some methods from a companion object were moved to
CommonMarkdownConstraintsand to extension functions onMarkdownConstraints.- org.intellij.markdown.parser.constraints.MarkdownConstraints class now interface
Use
CommonMarkdownConstraintsfor default method implementations instead.- org.intellij.markdown.parser.markerblocks.providers.AtxHeaderProvider(boolean) constructor parameter boolean removed
AtxHeaderProvidernow always requires at least one space between#and its content as specified by the CommonMark spec.- org.intellij.markdown.html.HtmlGenerator.generateHtml() method removed
Use
org.intellij.markdown.html.HtmlGenerator.generateHtml(org.intellij.markdown.html.HtmlGenerator.TagRenderer)instead.- org.intellij.markdown.parser.markerblocks.MarkerBlockProvider.Companion.passSmallIndent(CharSequence) method removed
Use
org.intellij.markdown.parser.markerblocks.MarkerBlockProvider.Companion.passSmallIndent(CharSequence, Integer)instead.
Database Tools and SQL Plugin 2022.1
- com.intellij.database.datagrid.DataProducer.processRequest(DataRequest) method parameter type changed from DataRequest to GridDataRequest
GridDataRequestis a part of new API for async loading of table data. It's not possible to keep old method with default implementation becauseDataProducerwill no longer have dependency onDataRequest. Plugins need to be recompiled to maintain bytecode compatibility.- com.intellij.database.datagrid.DataRequest.RawQueryRequest.afterLastRowAdded(DataRequest.Context, int) method parameter type changed from DataRequest.Context to GridDataRequest.Context
The signature of the method was changed in the interface
com.intellij.database.datagrid.DataConsumerthat is now a part of new API for async loading of table data. Change the parameter type of the overridden method and recompile plugin to maintain bytecode compatibility.- com.intellij.database.datagrid.DataConsumer.addRows(DataRequest.Context, List
) method parameter type changed from DataRequest.Context to GridDataRequest.Context The signature of the method was changed in the interface
com.intellij.database.datagrid.DataConsumerthat is now a part of new API for async loading of table data. Change the parameter type of the overridden method and recompile plugin to maintain bytecode compatibility.- com.intellij.database.datagrid.DataConsumer.addRows(DataRequest.Context, List
) method parameter type changed from List to List extends GridRow> The signature of the method was changed in the interface
com.intellij.database.datagrid.DataConsumerthat is now a part of new API for async loading of table data. Change the parameter type of the overridden method and recompile plugin to maintain bytecode compatibility.- com.intellij.database.extractors.ObjectFormatter.getPlainValue(Object, DataConsumer.Column, Dbms) method removed
Method was removed because we refactor table editor API. It will not depend on Dbms anymore. Please use
ObjectFormatter.objectToStringinstead.- com.intellij.database.DatabaseDataKeys.DATA_SOURCE_KEY field removed
DatabaseDataKeysno longer extendsDatabaseDataKeysCorebecauseDatabaseDataKeyswas moved to a separate module for table editor.DATA_SOURCE_KEYnow has to be accessed directly viaDatabaseDataKeysCore.- com.intellij.database.extractors.ObjectFormatter class now interface
Method was removed because we refactor table editor API. New API will allow to use table editor in other products and fully customize it.