SpinalHDL / SpinalWorkshop

Labs to learn SpinalHDL
136 stars 40 forks source link

Error when conducted sbt compile #12

Closed loonggi closed 11 months ago

loonggi commented 4 years ago

When I finished conduct sbt compile, I got errors as follow. Thanks!

[info] Loading settings for project spinalworkshop-build from plugins.sbt ...
[info] Loading project definition from /home/SpinalWorkshop/project
[info] Loading settings for project spinalworkshop from build.sbt ...
[info] Set current project to SpinalTemplateSbt (in build file:/home/SpinalWorkshop/)
[info] Executing in batch mode. For better performance use sbt's shell
[info] Compiling 35 Scala sources to /home/SpinalWorkshop/target/scala-2.11/classes ...
[error] /home/SpinalWorkshop/src/main/scala/workshop/pwm/ApbPwm.scala:3:12: object scalatest is not a member of package org
[error] import org.scalatest.FunSuite
[error]            ^
[error] /home/SpinalWorkshop/src/main/scala/workshop/simCounter/SimCounterTestbench.scala:19:26: type mismatch;
[error]  found   : Int(1000)
[error]  required: ?{def apply: ?}
[error] Note that implicit conversions are not applicable because they are ambiguous:
[error]  both method IntToUInt in package core of type (that: Int)spinal.core.UInt
[error]  and method IntToSInt in package core of type (that: Int)spinal.core.SInt
[error]  are possible conversion functions from Int(1000) to ?{def apply: ?}
[error]       Suspendable.repeat(1000) {
[error]                          ^
[error] /home/SpinalWorkshop/src/main/scala/workshop/simCounter/SimCounterTestbench.scala:19:7: not found: value Suspendable
[error]       Suspendable.repeat(1000) {
[error]       ^
[error] /home/SpinalWorkshop/src/main/scala/workshop/simStreamJoinFork/SimStreamUtils.scala:27:92: not found: type suspendable
[error]   def onStreamFire[T <: Data](stream : Stream[T], clockDomain: ClockDomain)(body : => Unit@suspendable): Unit = fork{
[error]                                                                                            ^
[error] four errors found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 4 s, completed Jul 28, 2020 2:38:46 PM
loonggi commented 4 years ago

The issue had been fit after redownloading the SpinalWorkshop and conducting the 'sbt compile'. Thanks.