Skip to content

Fix Ticker @implicitNotFound message to reference testkit-available API#4592

Open
mvanhorn wants to merge 1 commit intotypelevel:series/3.7.xfrom
mvanhorn:osc/1875-ticker-implicit-notfound
Open

Fix Ticker @implicitNotFound message to reference testkit-available API#4592
mvanhorn wants to merge 1 commit intotypelevel:series/3.7.xfrom
mvanhorn:osc/1875-ticker-implicit-notfound

Conversation

@mvanhorn
Copy link
Copy Markdown

Closes #1875.

The @implicitNotFound message on Ticker in testkit/shared/src/main/scala/cats/effect/testkit/TestInstances.scala told users to use \in ticked { implicit ticker =>`. But tickedis defined only intests/shared/src/test/scala/cats/effect/Runners.scala(and, for property-based variants, intests/shared/src/test/scala/cats/effect/BaseSuite.scala) and is not part of the published cats-effect-testkit` artifact. A downstream user picking up the message had no way to follow it.

The new message points at the constructor that testkit actually exports:

implicit val ticker: Ticker = Ticker()

Doc/ergonomics only; no runtime behavior affected.

@armanbilge
Copy link
Copy Markdown
Member

Thanks for the PR! We should be able to land this fix in 3.7.x, would you mind retargeting to that branch? Thanks!
https://github.com/typelevel/cats-effect/tree/series/3.7.x

@mvanhorn mvanhorn changed the base branch from series/3.x to series/3.7.x April 22, 2026 22:15
@mvanhorn mvanhorn changed the base branch from series/3.7.x to series/3.x April 22, 2026 22:15
The previous message pointed users at `ticked { implicit ticker => }`, which
is defined in the internal tests module (tests/shared/src/test/scala/cats/
effect/Runners.scala) and is not visible to downstream users of the public
testkit artifact. Replace it with an instruction that uses the constructor
already exported from testkit.

Closes typelevel#1875.
@mvanhorn mvanhorn changed the base branch from series/3.x to series/3.7.x April 22, 2026 22:16
@mvanhorn mvanhorn force-pushed the osc/1875-ticker-implicit-notfound branch from 9de09ab to 328d694 Compare April 22, 2026 22:16
@mvanhorn
Copy link
Copy Markdown
Author

Done @armanbilge - retargeted onto series/3.7.x and cherry-picked the fix. Diff is still 1+/1- on testkit/shared/src/main/scala/cats/effect/testkit/TestInstances.scala (328d694).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@implicitNotFound on Ticker says to use ticked but it's not part of the testkit

2 participants