From b13b9088619b69b93ea74086cf48664f11a785eb Mon Sep 17 00:00:00 2001 From: Alex Abashev Date: Wed, 25 Nov 2026 20:37:50 +0300 Subject: [PATCH] Declare the IntelliJ plugin incompatible with palantir-java-format Both plugins register a project service named com.palantir.javaformat.intellij.PalantirJavaFormatSettings, and the IDE keys a service by its class name. With both enabled, one plugin's getService returns the instance the other plugin's class loader made, and its settings page fails with a ClassCastException (#276). Both replace the Java formatter, so the IDE now loads only one of them. --- .../src/main/resources/META-INF/plugin.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/open-java-format-idea-plugin/src/main/resources/META-INF/plugin.xml b/open-java-format-idea-plugin/src/main/resources/META-INF/plugin.xml index 73225c6d8..920e032ec 100644 --- a/open-java-format-idea-plugin/src/main/resources/META-INF/plugin.xml +++ b/open-java-format-idea-plugin/src/main/resources/META-INF/plugin.xml @@ -19,6 +19,10 @@ com.intellij.modules.java com.intellij.modules.lang com.intellij.modules.platform + + palantir-java-format