Skip to content

doc with --test fails on top level @main #3584

Open
@Gedochao

Description

@Gedochao

Version(s)
1.7.1

To Reproduce
Try to generate docs with the doc command for the following test input source

// example.test.scala
@main def main() = println("Hello World!")
scala-cli doc . --test

Fails with:

class example.test$package cannot be unpickled because no class file was found for denot: val <none>
1 warning found
1 error found
[error]  Scaladoc generation failed (exit code: 1)

Expected behaviour
Should work, same as in main scope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked upstreamIssues and changes blocked by something in an external project.bugSomething isn't workingdoc commandIssues tied to the doc sub-command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions