[Scala3] SouceLine support for VerificationStatement API

Open
#5,049 0 comments 1 reaction 1 assignee View on GitHub

Maintainers usually reply within 1 day

@adkian-sifive is already working on this.

Since Oct 7, 2025.

Assessment

This issue has not been assessed yet.

Description

Scala 3

Type of issue: Task

Is your feature request related to a problem? Please describe.
Scala 3 implementation of assert, assume and cover VerificationStatement APIs are missing support for detecting source lines. In Scala 2, this functionality is enabled by macros which grab the compile-time source line information.

Describe the solution you'd like
Source line-aware messages from verif APIs, either using Scala 3 macros or something else

Describe alternatives you've considered
"Missing source line" will be printed with these APIs until this is implemented

Additional context
Until this is implemented assert/assume/cover fires will note that source line information is unavailable with a link to this issue

What is the use case for implementing this feature?
Keep the behavior in Scala 3 same as in Scala 2

Dominant language
Scala
Stars
4.8k
Forks
669
Avg merge
1d 12h
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from chipsalliance/chisel

All issues in chipsalliance/chisel

Similar issues

More Scala issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.