Disabling Gradle plugin triggers WARN from other plugins on command line
已回答
I disable all IntelliJ Idea plugins that I dont use. When I disable gradle plugin (built-in), then the following warnings occur in all calls to IDEA from my command line.
Example
idea diff aa.txt ab.txt
WARN: Problems found loading plugins:
The Gradle DSL API (id=org.jetbrains.idea.gradle.dsl, path=/Applications/IntelliJ IDEA.app/Contents/plugins/android-gradle-dsl) plugin Requires plugin 'com.intellij.gradle' to be enabled
The Gradle Dependency Updater Implementation (id=org.jetbrains.plugins.gradle.dependency.updater, path=/Applications/IntelliJ IDEA.app/Contents/plugins/gradle-dependencyUpdater) plugin Requires plugin 'com.intellij.gradle' to be enabled
The Gradle-Java (id=org.jetbrains.plugins.gradle, path=/Applications/IntelliJ IDEA.app/Contents/plugins/gradle-java) plugin Requires plugin 'com.intellij.gradle' to be enabled
The SSH Remote Run (id=org.jetbrains.plugins.remote-run, path=/Applications/IntelliJ IDEA.app/Contents/plugins/remoteRun) plugin Requires plugin 'com.jetbrains.plugins.webDeployment' to be enabled
The Gradle-Java-Analysis (id=org.jetbrains.plugins.gradle.analysis, path=/Applications/IntelliJ IDEA.app/Contents/plugins/gradle-analysis) plugin Plugin 'Gradle-Java-Analysis' cannot be loaded because it depends on plugin 'Gradle-Java' which failed to load
The Jakarta EE: Gradle Integration (id=com.intellij.javaee.gradle, path=/Applications/IntelliJ IDEA.app/Contents/plugins/gradle-javaee) plugin Plugin 'Jakarta EE: Gradle Integration' cannot be loaded because it depends on plugin 'Gradle-Java' which failed to load
The Gradle-Maven (id=org.jetbrains.plugins.gradle.maven, path=/Applications/IntelliJ IDEA.app/Contents/plugins/gradle-java-maven) plugin Plugin 'Gradle-Maven' cannot be loaded because it depends on plugin 'Gradle-Java' which failed to load
In my opinion these are not warnings that should be emitted on every run from the command line. They are simply irrelevant and noisy whenever I run a command from the command line.
However, if you insist that the messages should be visible somewhere, maybe have a command like `idea doctor` (inspired by `brew doctor`)
Or alternatively, show the warnining with the actual plugin.
Could you please help me on instructions on how to remove the specific warnings above?
请先登录再写评论。
Hello!
Disabling bundled Plugins is generally not recommended, unless they cause issues, in which case this can be done as a temporary measure while issues are being addressed on our side.
In this particular case, the warnings seem valid: some of the disabled Plugins prevent other Plugins, which are still enabled from functioning as intended.