Skip to content

Switch the native binary on in IntelliJ IDEA, not in the build - #11

Open
abashev wants to merge 1 commit into
mainfrom
abashev/idea-native-binary
Open

abashev wants to merge 1 commit into
mainfrom
abashev/idea-native-binary

Conversation

@abashev

@abashev abashev commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Before this PR

The IntelliJ IDEA page says the native binary is switched on in the build, with openjavaformat.native.formatter=true, and works only in a project with the Gradle plugin.

After this PR

openjavaformat/open-java-format#197 makes the native binary a setting of the IDE plugin, for any project: Use native binary on the settings page, a Download the plugin carries out itself, or a binary of one's own. The page's Native binary section now says:

  • how to switch it on and download the embedded binary, and where to see what runs;
  • that a project which set openjavaformat.native.formatter ticks the box once (a note);
  • how to choose a binary of one's own;
  • what happens after an update of the plugin: the old binary keeps formatting, a notification offers Download and Ignore;
  • on which platforms a binary exists.

The Gradle page's IntelliJ IDEA section adds that the property no longer reaches the IDE.

zensical build --clean --strict passes.

Possible downsides?

  • It describes the plugin version after 21.0.1, which is not released yet.
  • The screenshot intellij-enable.webp still shows the old settings page with Code style; it will be replaced with one of the new page.

The IntelliJ IDEA page said the native binary is switched on in the
build, with openjavaformat.native.formatter=true, and only in a project
with the Gradle plugin. Since openjavaformat/open-java-format#197 it is
a setting of the IDE plugin for any project: Use native binary, with a
Download the plugin carries out itself, or a binary of one's own. The
section now says how, what the plugin does after an update, and where
the binary exists; a note tells projects that set the property to tick
the box once. The Gradle page says the property no longer reaches the
IDE.

This branch has not been deployed

No deployments
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.

1 participant