bram209 / leptosfmt

A formatter for the leptos view! macro
Apache License 2.0
272 stars 29 forks source link

When parsing errors, return the stdin instead of an empty string with the `--stdin` #75

Closed drgarlic closed 1 year ago

drgarlic commented 1 year ago

It breaks format pipelines (in my editor for example) by wiping the content of the whole file since the leptosfmt pipe returns an empty string.

It's only with the --stdin option, since it completely makes sense for other use cases to just show an error

bram209 commented 1 year ago

hi, could you try the latest version (0.1.14)? This should be fixed in #78

bram209 commented 1 year ago

I will close the issue for now, if the problem persists, please don't hesitate to reopen the issue