Skip to content

Types unhandled by the scaladoc TASTy types support #22761

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

Open
WojciechMazur opened this issue Mar 10, 2025 · 1 comment · May be fixed by #23320
Open

Types unhandled by the scaladoc TASTy types support #22761

WojciechMazur opened this issue Mar 10, 2025 · 1 comment · May be fixed by #23320

Comments

@WojciechMazur
Copy link
Contributor

The following projects are emmiting warning when generating scaladoc:

scalapb/zio-grpc - build logs

rescala-lang/rescala - build logs

Compiler version

3.7.0-RC1-bin-20250307-977232c-NIGHTLY

Needs minimizaiton

Output

scala.MatchError: Encountered unsupported type. Report this problem to https://github.com/scala/scala3/.
<Internal compiler type SkolemType(1162214087) does not have a corresponding reflect extractor> (of class java.lang.String)
        at dotty.tools.scaladoc.tasty.TypesSupport.inner(TypesSupport.scala:324)
        at dotty.tools.scaladoc.tasty.TypesSupport.inner(TypesSupport.scala:272)
        at dotty.tools.scaladoc.tasty.TypesSupport.dotty$tools$scaladoc$tasty$TypesSupport$$topLevelProcess(TypesSupport.scala:77)
[warn]    |scala.MatchError: Encountered unsupported type. Report this problem to [https://github.com/scala/scala3/.](https://github.com/scala/scala3/)
[warn]    |FlexibleType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix(), "nio")), "channels"), "Selector")) (of class java.lang.String)
[warn]    |	at dotty.tools.scaladoc.tasty.TypesSupport.inner(TypesSupport.scala:324)
[warn]    |	at dotty.tools.scaladoc.tasty.TypesSupport.dotty$tools$scaladoc$tasty$TypesSupport$$topLevelProcess(TypesSupport.scala:77)
[warn]    |	at dotty.tools.scaladoc.tasty.TypesSupport$TypeSyntax$.asSignature(TypesSupport.scala:29)

Expectation

Should be handled by scaladoc

@WojciechMazur WojciechMazur added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels Mar 10, 2025
@Gedochao Gedochao added area:doctool and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels Mar 10, 2025
@WojciechMazur
Copy link
Contributor Author

Actually this issue can be even found in our own codebase:

[warn] -- Warning: compiler/src/dotty/tools/MainGenericCompiler.scala:90:6 ------------
[warn] 90 |  val classpathSeparator = File.pathSeparator
[warn]    |  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[warn]    |scala.MatchError: Encountered unsupported type. Report this problem to [https://github.com/scala/scala3/.](https://github.com/scala/scala3/)
[warn]    |FlexibleType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix(), "java")), "lang"), "String")) (of class java.lang.String)
[warn]    |	at dotty.tools.scaladoc.tasty.TypesSupport.inner(TypesSupport.scala:324)
[warn]    |	at dotty.tools.scaladoc.tasty.TypesSupport.dotty$tools$scaladoc$tasty$TypesSupport$$topLevelProcess(TypesSupport.scala:77)
[warn]    |	at dotty.tools.scaladoc.tasty.TypesSupport$TypeSyntax$.asSignature(TypesSupport.scala:29)

@2m 2m linked a pull request Jun 5, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants