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

Remove OldTastyInspector from scaladoc #17623

Merged

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

@nicolasstucki nicolasstucki self-assigned this May 30, 2023
@nicolasstucki nicolasstucki force-pushed the remove-OldTastyInspector-from-scaladoc branch from fd5273b to 931e9f2 Compare May 31, 2023 06:27
val inspector = new ScaladocTastyInspector

val (tastyPaths, nonTastyPaths) = filePaths.partition(_.endsWith(".tasty"))
val (jarPaths, invalidPaths) = nonTastyPaths.partition(_.endsWith(".jar"))
Copy link
Contributor Author

@nicolasstucki nicolasstucki May 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I could see, we do not have any tests that use JARs. Either we are missing a test or scaladoc unpack the JAR before hand. Unpacking the jar would be less efficient than reading the JAR directly.

@@ -0,0 +1,33 @@
// Copy of tasty-inspector/src/scala/tasty/inspector/Inspector.scala
// FIXME remove this copy of the file
Copy link
Contributor Author

@nicolasstucki nicolasstucki May 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The scaladoc project depends on scala3-tasty-inspector, but for some reason, some of the use cases do not include this dependency at runtime. It fails with Caused by: java.lang.ClassNotFoundException: scala.tasty.inspector.Inspector (see community-build and sbt-test/scripted). The previous version did not use the proper inspector classes either and therefore did not encounter this issue.

It is fine to have a copy of these files here for now, as it is equivalent to the current state. Someone will need to investigate and fix this issue later. I will open an issue for this.

@nicolasstucki nicolasstucki marked this pull request as ready for review May 31, 2023 08:23
@nicolasstucki nicolasstucki merged commit d0b790e into scala:main May 31, 2023
17 checks passed
@nicolasstucki nicolasstucki deleted the remove-OldTastyInspector-from-scaladoc branch May 31, 2023 08:23
nicolasstucki added a commit that referenced this pull request Jun 1, 2023
Fixes #17743
[test_windows_full]
nicolasstucki added a commit that referenced this pull request Jun 16, 2023
This a follow-up to #17623 after
reverting in #17744.

[test_windows_full]
@Kordyjan Kordyjan added this to the 3.4.0 milestone Aug 2, 2023
Kordyjan added a commit that referenced this pull request Nov 21, 2023
Backports #17623 to the LTS branch.

PR submitted by the release tooling.
Kordyjan added a commit that referenced this pull request Nov 21, 2023
Backports #17744 to the LTS branch.

PR submitted by the release tooling.
@Kordyjan Kordyjan modified the milestones: 3.4.0, 3.3.2 Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants