Open edwardcwang opened 6 years ago
Conclusion: add scalacOptions += "-language:reflectiveCalls"
to the chisel template at some point, and maybe investigate why it's happening
The "why" is that standard Chisel style uses structural typing, eg.
val io = IO(new Bundle {
val foo = Output(UInt(8.W))
})
accessing fields of structural types requires reflection, which is not available on all platforms (eg. ScalaJS)
Type of issue: bug report | feature request
Impact: no functional change
Development Phase: request
Please tell us about your environment: Chisel 3.1
What is the use case for changing the behavior?
Is there a way for us to suppress feature warnings (or at the very least "reflective access of structural type member" warnings) which are irrelevant to users?
Currently running sbt raises feature warnings to users by default:
Enabling them leads sbt/scalac to complain excessively about accessing
io
fields, which is confusing to users since they have to wonder if this is a bug in their code (which it is not):