question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[3.4.0-RC1] missing reference

See original GitHub issue

I have this example circuit: https://scastie.scala-lang.org/XSpo4Q6kRnO2LCO4mKtW4w

It elaborates successfully with Chisel 3.3.x but on 3.4.0-RC1 I get an internal error where Chisel is trying to get the value of a _ref which is None:

Caused by: java.util.NoSuchElementException: None.get
	at scala.None$.get(Option.scala:529)
	at scala.None$.get(Option.scala:527)
	at chisel3.internal.HasId.getRef(Builder.scala:228)
	at chisel3.internal.HasId.getRef$(Builder.scala:228)
	at chisel3.experimental.BaseModule.getRef(Module.scala:162)
	at chisel3.internal.HasId.recArg$1(Builder.scala:162)
	at chisel3.internal.HasId.$anonfun$computeName$5(Builder.scala:164)
	at scala.Option.flatMap(Option.scala:271)
	at chisel3.internal.HasId.buildAggName$1(Builder.scala:164)
	at chisel3.internal.HasId.$anonfun$computeName$6(Builder.scala:177)
	at scala.collection.immutable.List.foreach(List.scala:392)
	at chisel3.internal.HasId.buildName$1(Builder.scala:174)
	at chisel3.internal.HasId.computeName(Builder.scala:188)
	at chisel3.internal.HasId.computeName$(Builder.scala:151)
	at chisel3.Data.computeName(Data.scala:275)
	at chisel3.RawModule.$anonfun$namePorts$1(RawModule.scala:45)
	at chisel3.RawModule.$anonfun$namePorts$1$adapted(RawModule.scala:44)
	at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
	at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
	at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
	at chisel3.RawModule.namePorts(RawModule.scala:44)
	at chisel3.RawModule.generateComponent(RawModule.scala:68)
	at chisel3.Module$.do_apply(Module.scala:69)
	at chisel3.stage.ChiselGeneratorAnnotation.$anonfun$elaborate$1(ChiselAnnotations.scala:60)
	at chisel3.internal.Builder$.$anonfun$build$1(Builder.scala:625)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at chisel3.internal.Builder$.build(Builder.scala:622)
	at chisel3.stage.ChiselGeneratorAnnotation.elaborate(ChiselAnnotations.scala:60)

The circuit was working with an earlier SNAPSHOT release of 3.4 so this regression seems like it was recently introduced.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ekiwicommented, Sep 22, 2020

I don’t think this has anything to do with RC2, this is just an open bug that is not yet fixed.

Yes, I just wanted to call attention to it.

This seems to be a regression since this circuit works with Chisel 3.3

0reactions
jackkoenigcommented, Feb 9, 2021

Randomly came across this, it has been fixed since 3.4.1 and remains fixed in 3.4.2.

See same example with 3.4.2 working: https://scastie.scala-lang.org/lhXp0aEsRsq2ho5F7Jw9vA

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot start Thehive 3.4.0-RC1 · Issue #1020 - GitHub
After installing from bintray (3.4.0-RC1) The hive service is unable to ... ConfigException$Missing: No configuration setting found for key ...
Read more >
Reference Documentation - Spring
3.0.0.RC1 ... References to other beans (collaborators); 3.4.2.3. ... For example, the bean throws an exception as a result of a missing or...
Read more >
Mono (reactor-core 3.4.0-RC1)
The recommended way to learn about the Mono API and discover new operators is through the reference documentation, rather than through this javadoc...
Read more >
Diff - pub/scm/linux/kernel/git/horms/renesas-bsp
... into v4.9-rc1/rcar-3.4.x ... device registers + - interrupts: the interrupt for the device + - clocks: Reference to the parent clock +...
Read more >
Changelog — Elyra 3.13.0 documentation
Fix missing placeholder text in metadata editor - #2764 ... Remove references to deprecated 'elyra-examples-airflow-catalog' package - #2529 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found