pgourlain / vscode_erlang

Erlang support for Visual Studio Code
MIT License
130 stars 46 forks source link

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

Open lffg opened 4 years ago

lffg commented 4 years ago

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?

wojteksurowka commented 2 years ago

Fixed by #224