Plugin verifier fails with #Plugin 'com.intellij.modules.json' not declared as a plugin dependency

I’m encountering compatibility problems in the Plugin Verifier:

#Plugin 'com.intellij.modules.json' not declared as a plugin dependency for class com.intellij.json.psi.JsonPsiUtil. JSON support has been extracted to a separate plugin.
        Plugin 'com.intellij.modules.json' is not declared in the plugin descriptor as a dependency for class com.intellij.json.psi.JsonPsiUtil. JSON support has been extracted to a separate plugin.

Configuration:

platformVersion = 251.21418.62
id("org.jetbrains.intellij.platform") version "2.2.2-SNAPSHOT"

I tried adding bundledModules, but the issue persists:

bundledPlugins("com.intellij.modules.json")
bundledModules("intellij.json.split", "com.intellij.modules.json")

This seems similar to the issue with yaml.

Please add this configuration in gradle.properties then it should work:

platformBundledPlugins = com.intellij.modules.json

in plugin.xml

<depends>com.intellij.modules.json</depends>

These configurations are already added.

The issue occurs only with 2025.1 EAP; 2024.3 works correctly. It affects only the Plugin Verifier — the plugin itself runs fine.

Can you provide a link to your plugin? Either to the JetBrains Marketplace or to the standalone artifact?

add this configuration the gradle buildPlugin will fail, my plugin needs to support 20.1 till latest version, is there a solution?

You can ref to this script.

fwiw, my plugin has the same (invalid) error reported re com.intellij.modules.json.

The issue can be reproduced with the plugin you mentioned. Simply replace this:

pluginVerification {
    ides {
        ides(prop("ideVersionVerifier").split(","))
    }

with this

pluginVerification {
    ides {
        recommended()
    }

This causes the verification to run against IC-251.21418.62, resulting in a failure.

I haven’t uploaded the version for 2025.1 yet because the CI fails due to this issue. However, you can reproduce it with the plugin mentioned above: github.com/getappmap/appmap-intellij-plugin by running verifyPlugin against IC-251.21418.62.

Hi!

Also now getting the same error for IU-251.22821.72 on my project, even though I do have com.intellij.modules.json as a dependency, as you can see here.

This is currently blocking our CI, so I guess I’ll have to find a way to ignore that error temporarily.

I have the same problem with the current 2025.1 EAP.
I think the IDE distribution is broken or at least incompatible with the plugin verifier.
This is shown in the output of the plugin verifier:

[main] WARN  c.j.p.s.i.r.LayoutComponentsProvider - Layout component 'intellij.json' has some nonexistent 'classPath' elements: 'plugins/json/lib/modules/intellij.json.jar'
1 Like

Updating org.jetbrains.intellij.platform to version 2.3.0 resolves the issue locally and in CI, but compatibility problems persist in the Marketplace.

@AntonShuvaev Strange, in my case, updating to 2.3.0 did not solve the issue. Still getting the same error.

Any update about this issue from JetBrains people would be greatly appreciated!

Turns out I forgot that I had pluginVerification set to a fixed version (251.20015.29) instead of the latest. On the latest version, the issue still exists.

1 Like

Yeah same here, Marketplace still reports compatibility errors for the JSON plugin. JB, is there a plan to fix this, or at least a workaround?

1 Like

@robert.novotny I am experiencing the same (false positive) error. Here is a link to my plugin: https://plugins.jetbrains.com/plugin/10057-manifold-ij/edit/versions/stable/692572

Same here. The link to my plugin:

@isNotOkay - is this the same plug-in your seeing this issue here??: