sile / efmt

Erlang code formatter
Apache License 2.0
68 stars 4 forks source link

`rebar3 efmt` doesn't work with stdin #94

Open verbit opened 4 months ago

verbit commented 4 months ago

When calling efmt via rebar3, formatting through stdin doesn't work:

# This works
cat mymod.erl | efmt -
# This blocks indefinitely
cat mymod.erl | rebar3 efmt -

Versions:

$ rebar3 efmt -V
efmt 0.15.0
$ rebar3 version
rebar 3.19.0 on Erlang/OTP 25 Erts 13.1.5
sile commented 4 months ago

Thank you for reporting this bug. However, adding stdin support to the rebar3 plugin appears to be not so easy, so I do not plan to address this issue in the near future.