Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot be unpickled because no class file was found for denot: val <none> #20911

Open
Quafadas opened this issue Jul 1, 2024 · 0 comments
Open
Labels
itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label

Comments

@Quafadas
Copy link

Quafadas commented Jul 1, 2024

Compiler version

3.5.0-RC2

Minimized code

save this, in ext.ret.scala

//> using scala 3.5.0-RC2

package vecxt

export Retentions.*

object Retentions:
    opaque type Retention = Double
    extension (x: Retention)
        inline def retention: Double = x
end Retentions

Now this command scala-cli doc ext.ret.scala -o scaladoc -f

gives me this;

Output

Although it doesn't crash, it also doesn't provide any scala doc. I think it should, as it compiles?

Compiling project (Scala 3.5.0-RC2, JVM (21))
Compiled project (Scala 3.5.0-RC2, JVM (21))
class vecxt.ext.ret$package cannot be unpickled because no class file was found for denot: val <none>
1 error found
Wrote Scaladoc to ./scaladoc

Expectation

Generates scaladoc.

Workaround

Change the name of the file, to be ret.scala instead of ext.ret.scala. If the file is ret.scala then scaladoc seems successfully generated.

I believe however, that the second filename, should also be valid?

Prior art / duplicate of?
#16036

Which is closed - although I get this with scala 3.5.0-RC2. I'm unclear if it's the same or a different issue.

@Quafadas Quafadas added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label
Projects
None yet
Development

No branches or pull requests

1 participant