Skip to content

IntelliJ Errors with Chisel 7.0.0-RC1 Despite Successful Compilation #4929

Open
@Emin017

Description

@Emin017

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:

  1. No implicit arguments of type: SourceInfo" (e.g., after IO)
  2. No given instance of type chisel3.experimental.SourceInfo was found for parameter sourceInfo of method IO in class BaseModule
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions