Skip to content

Start Mix for formatter plugins#78

Merged
JesseHerrick merged 1 commit into
mainfrom
fix-formatter-plugins-that-require-mix
Jun 12, 2026
Merged

Start Mix for formatter plugins#78
JesseHerrick merged 1 commit into
mainfrom
fix-formatter-plugins-that-require-mix

Conversation

@JesseHerrick

@JesseHerrick JesseHerrick commented Jun 12, 2026

Copy link
Copy Markdown
Member

Problem

In #77, @ogomezba reported that our formatter server doesn't work with Quokka. The reason for this is that Quokka attempts to call Mix functions that rely on the Mix supervisor tree being started.

Solution

  • Start Mix's supervisor tree in the persistent BEAM formatter server so plugins can call Mix APIs like Mix.Project.config/0. This only starts Mix's tree, so we don't run the risk of a performance hit from trying to start the app itself.
  • Add a regression fixture for formatter plugins that require Mix.Project.config/0, matching the Quokka failure mode.

Fixes #77

@JesseHerrick JesseHerrick merged commit 04914b1 into main Jun 12, 2026
5 checks passed
@JesseHerrick JesseHerrick deleted the fix-formatter-plugins-that-require-mix branch June 12, 2026 02:24
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.

Formatting fails when Quokka is configured as a formatter plugin

1 participant