Open nmk456 opened 1 year ago
Looks like this is an issue with the Scala version. 2.12.16 (used in this repo) produces the error, 2.11.12 (used in the dependency template repo) doesn't. It looks like VexRiscv uses 2.11.12 so that's where the mismatch is.
Hi, yes you are right, you need to downgrade to 2.11.12 :)
Is there any chance that the VexRiscv Scala version could be upgraded to 2.12 or higher? It seems like 2.11 has issues with the latest version of Metals (https://github.com/scalameta/metals/issues/5561), so autocomplete no longer works.
Did you tried updating https://github.com/SpinalHDL/VexRiscv/blob/master/build.sbt#L7 to scala 2.12 ? It should normaly work fine.
Then, could try a multi version build.sbt, but seems that it often break people stuff easily XD So maybe a master_2.12 branch could be added ?
I am attempting to copy the changes from SpinalTemplateSbtDependencies to my
build.sbt
in a project based on SpinalTemplateSbt. When I compile, I get the following error:I'm able to reproduce this on a fresh project created from this template with the following changes:
Steps:
git clone https://github.com/SpinalHDL/SpinalTemplateSbt
cd SpinalTemplateSbt
sbt compile
I've also tried pointing it at a local copy of VexRiscv and got the same error.
I'm not really sure if this is an issue with the template, VexRiscv, sbt, or something else. I can move this somewhere else if necessary.