lichess-org / scalachess

Chess API written in scala. Immutable and free of side effects.

Home Page:https://lichess.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Master doesn't currently compile

SethTisue opened this issue · comments

[info] compiling 67 Scala sources to /Users/tisue/scalachess/target/scala-2.13/classes ...
[error] /Users/tisue/scalachess/src/main/scala/format/pgn/Parser.scala:285:44: value repeat is not a member of String
[error]     val errorLine    = line ++ "\n" ++ " ".repeat(caret.col) ++ "^"
[error]                                            ^

this came up in the Scala 2 community build

Seems to be compiling locally, and on CI https://github.com/lichess-org/scalachess/runs/4888578574?check_suite_focus=true.

The scala-parser-combinators dependency was recently replaced with cats-parse: #239. IDK if that could be an issue.

Looks like a weird error value repeat is not a member of String. String.repeat is a java method.

Ah.... The failure I observed was on JDK 8. I'll mark the project as requiring 11+.