hello! trying to compile simple project with scala...
# general
b
hello! trying to compile simple project with scala 2.13. source of project is on https://github.com/k-bespalov/pants-scala-helloworld try to compile via command
./pants compile src/main:hello --scala-version=custom --scala-suffix-version=2.13
and get error
Copy code
zinc[zinc-only](src/main:hello) failed: sequence item 0: expected str instance, ArtifactClasspathEntry found
FAILURE: Compilation failure: Failed jobs: zinc[zinc-only](src/main:hello)
anybody knows what does it mean? and how I can fix it? if I remove BUILD.tools file and compile with
--scala-version=2.12
compilation is successful, but when I construct jar via
binary
command, jar doesn’t contain scala library and I get ClassNotFoundExceprion(this is my next question 😄 ). thank you in advance
a
which pants version are you using?
w
the "suffix version" is something different from the
--scala-version
, ftr: i think it would need to be the entire scala version
☝️ 1
a
i am almost positive this is a very silly bug -- we switched from using strings for classpath entries to using this
ArtifactClasspathEntry
object and it looks like something is trying to make it quack like a string
also, the
binary
issue might be another bug that i've been trying to nail down
w
but yea... possibly a bug.
b
pants 1.19.0
with
--scala-suffix-version=2.13.0
i have the same problem
create an issue?
w
yes please!