-
Notifications
You must be signed in to change notification settings - Fork 149
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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
- 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.jsonfile (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 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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working