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

Fix scaladoc TastyInspector regressions #21716

Merged
merged 4 commits into from
Oct 8, 2024

Conversation

jchyb
Copy link
Contributor

@jchyb jchyb commented Oct 7, 2024

Fixes #20476 (which would previously crash in the ReadTasty phase) and #18231 (LTS-only issue, only applicable after backport)

Adds an inspectAllTastyFilesInContext method in scaladoc-only version of TastyInspector (similarly to how it was before #18989, where the regressions were introduced). I still do not know the exact reason why those regressions happen, but I think this is kind of a fix is better than a whole revert we would have to do otherwise.

Notably, those issues are not being fixed in the stable TastyInspector - this is scaladoc only.

Also the scaladoc copy of the TastyInspector had to be renamed, as otherwise we run into classpath issues with the stable tasty inspector taking precedence.

I really wanted to include the test for both issues, but both required non-standard specification, so I could not use scaladoc-testcases and ended up having to use sbt scripted tests unfortunately.

Adds an inspectAllTastyFilesInContext method in scaladoc-only version of
TastyInspector.
@jchyb jchyb force-pushed the scaladoc-tasty-inspector branch from e460f21 to 513664a Compare October 7, 2024 15:35
@jchyb jchyb force-pushed the scaladoc-tasty-inspector branch from bdf9317 to 09a99e7 Compare October 7, 2024 19:26
@jchyb jchyb force-pushed the scaladoc-tasty-inspector branch from 04a008c to 682c8b4 Compare October 7, 2024 23:33
@jchyb jchyb requested a review from Florian3k October 8, 2024 08:43
Co-authored-by: Mikołaj Fornal <[email protected]>
@jchyb jchyb enabled auto-merge (squash) October 8, 2024 13:51
@jchyb jchyb merged commit 21a7cbd into scala:main Oct 8, 2024
25 checks passed
@jchyb jchyb deleted the scaladoc-tasty-inspector branch October 8, 2024 17:08
@WojciechMazur WojciechMazur added this to the 3.6.0 milestone Oct 8, 2024
hamzaremmal added a commit that referenced this pull request Oct 9, 2024
@WojciechMazur WojciechMazur modified the milestones: 3.6.0, 3.6.1 Oct 9, 2024
hamzaremmal added a commit that referenced this pull request Oct 9, 2024
Reverts #21716

I don't have time to fix this. @jchyb, feel free to merge it again
when/if you fix it
@hamzaremmal hamzaremmal mentioned this pull request Oct 9, 2024
@WojciechMazur WojciechMazur modified the milestones: 3.6.1, 3.6.3 Nov 8, 2024
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.

doc fails to read scala.scalajs.js.Promise.then symbol
3 participants