vscode_erlang icon indicating copy to clipboard operation
vscode_erlang copied to clipboard

Erlang formatter does not work with non-ASCII characters in source-code

Open lffg opened this issue 4 years ago • 1 comments

When some of my Erlang files have any non-ASCII character (such as é, á, etc), the formatter does not work. It keeps loading endlessly:

image

Examples of "OK" code:

-module(first_module).
-export([test/0]).
test() -> "A".
% This is OK.
-module(useless_module).

Examples of "not-OK" code:

-module(first_module).
-export([test/0]).
test() -> "Á".
% This not OK: "É".
-module(useless_module).

Is there a way to fix this incorrect behavior?

lffg avatar Apr 09 '20 22:04 lffg

Fixed by #224

wojteksurowka avatar Jan 02 '22 14:01 wojteksurowka