Open
Description
When using Chisel 7.0.0-RC1, IntelliJ displays error messages even though the code compiles successfully. These errors were not present in Chisel 6.7.0 or earlier versions.
Specific Errors:
No implicit arguments of type: SourceInfo" (e.g., after IO)
No given instance of type chisel3.experimental.SourceInfo was found for parameter sourceInfo of method IO in class BaseModule
Scala 2 macro cannot be used in Dotty. See https://docs.scala-lang.org/scala3/reference/dropped-features/macros.html. To turn this error into a warning, pass -Xignore-scala2-macros to the compiler
These errors appear wherever Module is used.
Workaround:
Adding the following line suppresses the error:
implicit val info: SourceInfo = UnlocatableSourceInfo
However, it is unclear if this is the intended solution for Chisel 7.x.
Cause:
The issue was introduced by pull request #4768. It seems to be raised by the migration to scala3.
Previous Discussion:
This problem was initially reported by another user in the discussion at #4918, which provides additional context.
cc @jackkoenig
Metadata
Metadata
Assignees
Labels
No labels