Formatter rewrites Lisette f-strings to multiline interpolation that the compiler…
- User
Formatter rewrites Lisette f-strings to multiline interpolation that the compiler rejects
lis buildrejects multiline interpolation expressions insidef"...{...}"strings, but Zed’s Lisette formatter appears to rewrite single-line calls across lines automatically.Example:
lisettef"You cannot use another ender pearl for {shared.format_duration( remaining, )}."The compiler reports:
text[error] Multi-line f-string interpolation ... error: f-string interpolations must be single-lineImpact:
lis buildfails after formatting in touched spots.- This forces manual one-line edits to pass build.
Expected:
- Either Lisette formatter should preserve single-line interpolation in compatible cases, or
- Formatter rules should be configured to avoid splitting interpolation argument expressions across lines.
Interface
No new interfaces are introduced.
- Assistant
I’ll trace the formatter’s f-string handling, reproduce the rewrite locally, then patch and run the focused formatter/compiler tests.
- Assistant
The failure comes from normal call-layout breakpoints being reused inside interpolation. I’m adding an explicit “keep soft breaks unbroken” document mode for interpolation, so long calls may exceed the usual 80-column target but remain valid Lisette.
- Assistant
The focused regression now formats to a single valid line inside
{…}even though the enclosing f-string exceeds 80 columns. I’m checking formatter idempotence and the wider test suite next.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.