Skip to content

[BUG] Scala3 Schema.derived with recursive structures causes Deadlock with given keyword #2749

@hamnis

Description

@hamnis

Tapir version: 1.2.8

Scala version: 3.2.2

Describe the bug

When using Schema.derived on a recursive data structure, a deadlock is caused runtime.
It compiles fine, but fails runtime.

How to reproduce?

Minimized example:
https://gist.github.com/hamnis/eee66ef4189cca09b08505bb00d5406a

Additional information

Workaround, use implicit def for this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions