Skip to content

Releases

0.0.8 — Reliable headless Java cleanup

Choose a tag to compare

@javanoo6 javanoo6 released this 27 Oct 09:59

Fixes intermittent Java import cleanup failures during cold formatter startup.

  • Recheck IntelliJ smart mode under the EDT write lock before processing files.
  • Release the write lock and wait again when VFS/PSI initialization starts more indexing.
  • Run headless code processors synchronously without modal progress tasks.
  • Add regression coverage for cold one-shot and repeated-daemon Java cleanup.

Download formatter-cli-full.jar and verify it against SHA256SUMS. JDK 21 is required.

Validation: clean Maven reactor build; all 17 formatter integration tests passed on Linux, including eight Java cleanup scenarios; 110 Neovim/conform.nvim integration checks passed against this JAR. macOS and Windows were not tested for this patch.

0.0.7 — Bash and YAML formatting

Choose a tag to compare

@javanoo6 javanoo6 released this 27 Oct 08:58

Adds Bash/shell formatting and YAML formatting for both .yaml and .yml files.

  • Bundle IntelliJ's YAML and Shell Script plugins.
  • Bundle shfmt 3.14.1 for Linux and macOS on AMD64/ARM64, and Windows on AMD64. No separate shfmt installation or runtime download is needed.
  • Respect .editorconfig, including indentation and shell-specific settings, and the existing --editorconfig option for files outside the config root.
  • Support .sh, .bash, and shell-shebang files in one-shot and daemon modes.
  • Wait for shell formatting to finish before reporting success; invalid shell syntax returns an error and leaves that script unchanged.
  • Verify downloaded native binaries against pinned SHA-256 checksums at build time and include the shfmt BSD license.
java -jar formatter-cli-full.jar --format config.yaml config.yml script.sh

Shell formatting uses tabs by default. Set indent_style = space and indent_size = 2 in the appropriate .editorconfig section for spaces. shfmt detects the dialect from the filename and shebang; Bash-specific .sh files should use a Bash shebang or shell_variant = bash.

Download formatter-cli-full.jar and verify it against SHA256SUMS. JDK 21 is required.

Validation: clean Maven reactor build and 15 integration checks on Linux AMD64 with JDK 21, covering Python, Bash/shell, both YAML extensions, Java, JSON, Markdown, XML, EditorConfig, daemon reuse, mixed-language requests, heredocs, Bash arrays, executable-file permissions, and failed-request recovery. Also verified that a corrupted cached native binary causes the build to fail. macOS and Windows binaries are bundled but were not executed during this validation.

Includes the Python support from 0.0.6, now merged into master. Python import sorting and unused-import removal remain unsupported in the standalone temporary project.

0.0.6 — Python formatting support

Choose a tag to compare

@javanoo6 javanoo6 released this 27 Oct 08:45

Adds Python formatting for .py, .pyw, and .pyi files using the bundled JetBrains Python Community Edition plugin.

  • Respect .editorconfig, including Python indentation settings.
  • Format Python without installing a Python interpreter.
  • Support one-shot formatting and repeated daemon requests.
  • Include TOML support required by the Python plugin.

Download formatter-cli-full.jar and verify it against SHA256SUMS. JDK 21 is required.

java -jar formatter-cli-full.jar --format /absolute/path/to/script.py

Python import sorting and unused-import removal remain unsupported in the standalone temporary project; --optimize-imports may leave Python imports unchanged. YAML and Bash formatting are not included in this release.

Validation: clean Maven reactor build and six integration checks covering .py, .pyw, .pyi, EditorConfig indentation, daemon reuse and idempotence, combined operation flags, and Java/JSON/Markdown regression checks on Linux with JDK 21. macOS was not retested for this release.

Released from python-formatting-support.

0.0.5 — macOS runtime support

Choose a tag to compare

@javanoo6 javanoo6 released this 29 Sep 18:06

Fixes formatter startup on macOS, including Apple Silicon, with JDK 21.

  • Select bundled JNA libraries using the JVM architecture instead of always using amd64.
  • Open the Apple desktop Java modules required by IntelliJ on macOS.
  • Document Homebrew JDK 21 setup.
  • Includes the previously unreleased external-file EditorConfig handling from commit 46774d8, already used by the Neovim configuration.

Download formatter-cli-full.jar; verify it against SHA256SUMS. The same JAR is used for the supported platforms. JDK 21 is required.

Validation: Maven build; one-shot formatting; initial and repeated daemon formatting on macOS Apple Silicon; formatted Java compiles. Intel macOS and Linux were not retested.

Merged into master. Source commit 085e2565fe3c9f1c171850f54ec1b92faf7487f5.

0.0.4

Choose a tag to compare

@javanoo6 javanoo6 released this 13 May 18:11

md files formatting support

Optimize Imports Fixed

Choose a tag to compare

@javanoo6 javanoo6 released this 08 May 12:37

unused imports are actually removed upon imports optimize: --optimize-imports

Daemonized headless formatter

Choose a tag to compare

@javanoo6 javanoo6 released this 30 Apr 15:46

Run The Formatter

Basic shape:

java -jar formatter-cli/target/formatter-cli-full.jar \
  --format \
  --optimize-imports \
  --rearrange \
  --editorconfig /absolute/path/to/.editorconfig \
  /absolute/path/to/File.java

Daemon Mode

By default, the formatter runs in daemon mode. On the first call, a background IntelliJ JVM is started and kept alive. Subsequent calls connect to it directly, skipping the 3–5 second startup cost.

First call  (~5s): engine extracted, daemon started, file formatted
Second call (<1s): connects to running daemon, file formatted instantly

The daemon port is stored in $TMPDIR/intellij-formatter-daemon-*.port.
Daemon logs go to $TMPDIR/intellij-formatter-daemon-*.log.

Stop the daemon

java -jar formatter-cli/target/formatter-cli-full.jar --stop-daemon

Primary implementation of formatter

Choose a tag to compare

@javanoo6 javanoo6 released this 30 Apr 15:24

Usage:

java -jar formatter-cli/target/formatter-cli-full.jar \
  --format \
  --optimize-imports \
  --rearrange \
  --editorconfig /absolute/path/to/.editorconfig \
  /absolute/path/to/File.java