lichess-org / lila-gitpod

Lichess development environment
https://lichess-org.github.io/lila-gitpod/
GNU Affero General Public License v3.0
43 stars 25 forks source link

doesn’t work by default with latest Lichess #28

Closed ghost closed 1 year ago

ghost commented 1 year ago

(Seems to be caused by https://github.com/lichess-org/lila/commit/01a0a7b170a96705b28a0934550b42c7356d167b.)

I get a lot of unmappable character (0xAB) for encoding US-ASCII errors (with different hex codes) while building the i18n module.

I was able to fix it by modifying the .bloop/i18n.json file. I changed the "project" → "java" → "options" array (which was initally empty) to contain the strings "-encoding", "utf-8", and the project built successfully again! It looked like this:

...
"java": {
    "options": [
        "-encoding", "utf-8"
    ]
},
...
fitztrev commented 1 year ago

Thanks for the report. I'm seeing it too.

Compiling i18n (12 Scala sources and 130 Java sources)
Compiled search (4885ms)
Compiled memo (13218ms)
Compiling socket (9 Scala sources)
Compiled socket (7896ms)
 [E102] modules/i18n/target/scala-3.3.0-RC5/src_managed/main/ar_SA.java
        Recompile with -Xlint:unchecked for details.
 [E101] modules/i18n/target/scala-3.3.0-RC5/src_managed/main/ar_SA.java
        Some input files use unchecked or unsafe operations.
[E] [E100] modules/i18n/target/scala-3.3.0-RC5/src_managed/main/af_ZA.java:1011
[E]        unmappable character (0xAA) for encoding US-ASCII
[E] [E99] modules/i18n/target/scala-3.3.0-RC5/src_managed/main/af_ZA.java:1011
[E]       unmappable character (0xC3) for encoding US-ASCII
[E] [E98] modules/i18n/target/scala-3.3.0-RC5/src_managed/main/af_ZA.java:978
[E]       unmappable character (0xAB) for encoding US-ASCII
[E] [E97] modules/i18n/target/scala-3.3.0-RC5/src_managed/main/af_ZA.java:978
[E]       unmappable character (0xC3) for encoding US-ASCII
[E] [E96] modules/i18n/target/scala-3.3.0-RC5/src_managed/main/af_ZA.java:975
[E]       unmappable character (0xAA) for encoding US-ASCII
[E] [E95] modules/i18n/target/scala-3.3.0-RC5/src_managed/main/af_ZA.java:975
[E]       unmappable character (0xC3) for encoding US-ASCII
[E] [E94] modules/i18n/target/scala-3.3.0-RC5/src_managed/main/af_ZA.java:937
[E]       unmappable character (0xAA) for encoding US-ASCII
schlawg commented 1 year ago

Try configuring that encoding in ~/.bloop/bloop.json rather than lila/.bloop/i18n.json. You want that setting to persist but anything in lila/.bloop is prone to being erased or overwritten

fitztrev commented 1 year ago

Thanks @schlawg that worked!