Building from source

The build needs sbt 2.0 and a JDK that sbt 2 supports (17 or later). It has five projects:

Project Artifact Contents
dixtra-core/ dixtra-core the formatter (Scala 3.9)
dixtra-cli/ dixtra-cli the command line, the configuration files, reference.conf
dixtra-sbt/ sbt-dixtra the sbt plugin
dixtra-vscode/ dixtra-vscode the VS Code extension
dixtra-bench/ not published the JMH benchmarks of the formatter
sbt publishLocal                    # publish the three artifacts to the local Ivy repository
sbt test                            # the tests of the formatter and the command line
sbt sbtDixtra/scripted              # the tests of the plugin
sbt "run --check dixtra-core/src"   # the command line from the build

The sbt plugin

To build and deploy the sbt plugin locally, run:

sbt publishLocal

and the artifacts will be published under <local_ivy2>/local/com.colofabrix.scala.

The command line tool

sbt dixtraCli/nativeImage builds the command line with GraalVM native-image, into target/out/jvm/scala-3.9.0/dixtra-cli/native/dixtra (dixtra.exe on Windows).

Requirements:

The VS Code extension

sbt dixtraVsCode/vscodePackage builds the extension of dixtra-vscode/ (see The VS Code extension for what it does).

Requirements:

Everything it produces lands in dist/:

dist/
├── dixtra-vscode-<version>.vsix   the extension, installable with code --install-extension
├── win32-x64/dixtra.exe            the executable bundled with the extension
└── linux-x64/dixtra                built, but not bundled for now

Install it with code --install-extension dist/dixtra-vscode-<version>.vsix or through the UI interface.