Inspectopedia
 
2024.3

Usage of IntelliJ API not available in older IDEs

Error
Sanity
New
Last modified: 03 December 2024

Reports usages of IntelliJ Platform API introduced in a version newer than the one specified in <idea-version> @since-build in plugin.xml.

Using such API may lead to incompatibilities of the plugin with older IDE versions.

To avoid possible issues when running the plugin in older IDE versions, increase since-build accordingly, or remove usages of this API.

See Build Number Ranges in IntelliJ Platform Plugin SDK docs for more details.

Configure the inspection:

If <idea-version> @since/until-build attributes are not specified in plugin.xml, set Since/Until explicitly.