You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Native abort when formatting a discovered config containing [[overrides]] #5
import{format}from'tombit'// a.toml lives next to tombi.tomlawaitformat('[t]\nkey = 1\n','/tmp/tombit-repro/a.toml')
What works / what aborts
call
result
config: false
ok
explicit config: { content, path } with [[overrides]]
ok
discovery with [[overrides]] (no overrideConfig)
abort
overrideConfig.overrides (or explicit config + any overrideConfig)
abort
Notes
@tombi-toml/[email protected] formats the same config without crashing (with config: { content, path }).
The README says discovery includes [[overrides]] glob matching, so this should be supported.
It looks like the merged config is re-serialized and the formatter rejects the document, hitting unreachable!("Document must be valid TOML.") at serde_tombi/src/ser.rs:155.
Activity
fix: serialize the resolved config with toml
fix: serialize the resolved config with toml
fix: serialize the resolved config with toml_edit