Skip to content

Cyclic reference error when using doc but not compile #14059

Closed
@keirlawson

Description

@keirlawson

Compiler version

3.1.0

Minimized code

Based on https://github.com/chadselph/reproduce-dotty-cyclical-error

package example

import software.amazon.awssdk.services.cloudwatchlogs.model.GetLogEventsRequest

object DottyCylicalRefError {

  GetLogEventsRequest
    .builder()
    .limit(0)
}

Output

sbt:root> doc
[info] Main Scala API documentation to /home/keirlawson/Code/reproduce-dotty-cyclical-error/target/scala-3.1.0/api...
exception caught when loading trait Builder: Cyclic reference involving object GetLogEventsRequest
exception caught when loading module class GetLogEventsRequest$: Cyclic reference involving object GetLogEventsRequest
Cyclic reference involving object GetLogEventsRequest while compiling /home/keirlawson/Code/reproduce-dotty-cyclical-error/target/scala-3.1.0/classes/example/DottyCylicalRefError.tasty

Expectation

No cyclic reference as compile passes fine.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions