ExtensionPoints will not load properly in 2020.3 IDEA, but will load properly in 2022.3 IDEA

Answered

1. My plugin is divided into root module and sub-module. Some ExtensionPoints are defined in root module, and these ExtensionPoints are extended in sub-module. Sub-modules are used to realize different functions under different Intellij products. The java language submodule extension implementation works in IDEA, and the python submodule extension implementation works in Pycharm

- Project structure

- root plugin.xml declara extensionPoints

- Sub-modules implementation

2, I use ExtensionPointName. Create to obtain RelateContext extension point: ExtensionPointName. Create (" com. Vivo. Aicode. RelateContext ").getExtensionList(), which I used in version 2022.3 of IDEA to load to the implemented extension point normally. However, the 2020.3 version of IDEA cannot load getExtensionList() and gets size 0

- 2020.3 log print

- 2022.3 log print

my plugin zip file:https://Upload id: 2024_08_08_vAjxkEFdc3Gkn2fmYSWaXy (file: AICode-2.4.0-beta.zip)

 

4、My question:
a)ExtensionPointName. If the create is do not support running in version 2020.3?
b)What should I do to get the extension list correctly in 2020.3

 

0
1 comment

Hi,

Before analysing the issue, I would like to know the reason for targeting so old versions. We recommend targeting the 3 latest major versions, which today are: 2024.2, 2024.1, 2023.3. See:
https://plugins.jetbrains.com/docs/marketplace/product-versions-in-use-statistics.html

2020.3 was released 12 versions ago, and its usage is very low. According to the table on the linked page, it was 1.93% one year ago, and today must be even lower.

0

Please sign in to leave a comment.