https://pantsbuild.org/ logo
#general
Title
# general
b

brief-journalist-82593

09/12/2019, 3:43 PM
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

aloof-angle-91616

09/12/2019, 6:10 PM
which pants version are you using?
w

witty-crayon-22786

09/12/2019, 6:10 PM
the "suffix version" is something different from the
--scala-version
, ftr: i think it would need to be the entire scala version
☝️ 1
a

aloof-angle-91616

09/12/2019, 6:10 PM
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

witty-crayon-22786

09/12/2019, 6:12 PM
but yea... possibly a bug.
b

brief-journalist-82593

09/13/2019, 7:38 AM
pants 1.19.0
with
--scala-suffix-version=2.13.0
i have the same problem
create an issue?
w

witty-crayon-22786

09/13/2019, 5:44 PM
yes please!
6 Views