Skip to content

Dependency graph resolves modules in the 2024.2 layout #1106

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

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

novotnyr
Copy link
Collaborator

@novotnyr novotnyr commented Jul 2, 2024

When creating dependency graph, resolve modules in the 2024.2.

Treat IdeModule as a plugin that treats itself as a module, in the same vein as if it was declared in the <module> element in the descriptor.

This fixes reports of failed module/plugin resolutions in the dependency report, such as:

(failed) module intellij.platform.vcs.impl: Plugins declaring module 'intellij.platform.vcs.impl' are not found in JetBrains Marketplace https://plugins.jetbrains.com
| +--- (optional) com.intellij.java:242.19533.56

This resolves the situation in the BundledPluginsRepository which discovers plugin by the module ID (findPluginByModule). Since many bundled plugins now pose as platform modules, the bundled plugin that is both module and a plugin is now discovered with the same algorithm as the original bundled plugins which are not modules yet.

See MP-6704 Plugin Verifier: Reports do not show properly resolved dependencies

@novotnyr novotnyr merged commit c654446 into master Jul 3, 2024
4 checks passed
@novotnyr novotnyr deleted the mp-6704-dependency-resolution-and-graph branch July 3, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants