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

Links missing between scala jars #11706

Open
ashawley opened this issue Aug 22, 2019 · 0 comments · May be fixed by scala/scala#8364

Comments

@ashawley
Copy link
Member

commented Aug 22, 2019

The api docs for scala-library, scala-compiler and scala-reflect have missing cross-links. This is because autoAPIMappings isn't enabled.

There are warnings from Scaladoc that confirm this problem, for example:

[warn] src/reflect/scala/reflect/api/Annotations.scala:19:1: Could not find any member to link for "scala.annotation.StaticAnnotation".
[warn] /**
[warn] ^
[warn] src/reflect/scala/reflect/api/Constants.scala:17:1: Could not find any member to link for "scala.Predef#classOf".
[warn] /**
[warn] ^
[warn] src/reflect/scala/reflect/api/Symbols.scala:854:5: Could not find any member to link for "scala.Double".
[warn]     /** Does this symbol represent the definition of a numeric value class?
[warn]     ^
[warn] src/reflect/scala/reflect/api/Symbols.scala:846:5: Could not find any member to link for "scala.Double".
[warn]     /** Does this symbol represent the definition of a primitive class?
[warn]     ^
[warn] src/reflect/scala/reflect/api/Symbols.scala:807:5: Could not find any member to link for "throws".
[warn]     /** Exceptions that this method is known to throw.
[warn]     ^
[warn] src/compiler/scala/tools/reflect/ToolBox.scala:112:3: Could not find any member to link for "scala.reflect.macros.Typers.untypecheck".
[warn]   /**
[warn]   ^
[warn] src/compiler/scala/tools/nsc/typechecker/Contexts.scala:98:3: Could not find any member to link for "scala.Predef".
[warn]   /** List of symbols to import from in a root context.  By default, that
[warn]   ^
[warn] src/library/scala/reflect/ClassTag.scala:18:1: Could not find any member to link for "scala.reflect.api.TypeTags#TypeTag".
[warn] /**
[warn] ^

Unfortunately, the apiURL is wrong for scala-compiler and scala-reflect. It is set for all projects as https://www.scala-lang.org/api/ which is for the scala-library.

Fortunately, there aren't a bunch of cross-references between the scala-*.jars, but it would be good to reduce the warnings, and also publish the correct API url in the Ivy XML for scala-compiler and scala-reflect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.