Open rustkas opened 3 years ago
I found a minimal example to reproduce the bug…
-module(recipe_15).
-export([x/0]).
x() ->
"This is an unterminated string,
some:more(stuff).
This results in the following when formatted…
-module(recipe_15).
-export([x/0]).
** 6: unterminated string starting with "This is an unter" **
It's actually an issue with ktn_dodger
. When we try to parse the file with no_fail
… it fails anyway.
I opened inaka/katana-code#66 for this.
Describe the bug
When I run
rebar3 format
for source code that has some syntax error in some function, that function just scapes from source code.To Reproduce
Make syntax error then run
rebar3 format
.Expected behavior
We get a description in a console and damaged source code.
Rebar3 Log
Run rebar3 with DEBUG=1 and paste its output here. (sorry, I can not do that - The code with syntax error is gone)
Additional context
Bug description for reproducing:
Source code:
Stacktrace: