You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scala-cli setup-ide generates .bsp/scala-cli.json in latin-1, while it should be encoded in UTF-8 (I was unable to check the other files).
This breaks the integration with metals for users with a home on a non-ASCII path.
To Reproduce
Set your scala-cli instalation directory to somewhere with a non-ASCII character (in my case: C:\Users\João\AppData\Local\Coursier\data\bin\.scala-cli.aux.exe)
Run scala-cli setup-ide
Check the .bsp/scala-cli.json file (in my case, the ã was encoded as 0xe3)
Expected behaviour
I would expect the file to be encoded in UTF-8.
In my case, I would expect the ã to be encoded as either 0xc3 0xa3 (LATIN SMALL LETTER A WITH TILDE) or 0x61 0xcc 0x83 (LATIN SMALL LETTER A with COMBINING TILDE).
scala-cli setup-ide . --charset utf-8 seems to do the trick. I would expect this to be the default, as metals won't work otherwise.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Version(s)
v1.1.0
Describe the bug
scala-cli setup-ide
generates.bsp/scala-cli.json
in latin-1, while it should be encoded in UTF-8 (I was unable to check the other files).This breaks the integration with metals for users with a home on a non-ASCII path.
To Reproduce
C:\Users\João\AppData\Local\Coursier\data\bin\.scala-cli.aux.exe
)scala-cli setup-ide
.bsp/scala-cli.json
file (in my case, theã
was encoded as0xe3
)Expected behaviour
I would expect the file to be encoded in UTF-8.
In my case, I would expect the
ã
to be encoded as either0xc3 0xa3
(LATIN SMALL LETTER A WITH TILDE) or0x61 0xcc 0x83
(LATIN SMALL LETTER A with COMBINING TILDE).scala-cli setup-ide . --charset utf-8
seems to do the trick. I would expect this to be the default, as metals won't work otherwise.The text was updated successfully, but these errors were encountered: