Skip to content

Conversation

@nicolasstucki
Copy link
Contributor

To print the contents of a tasty file we only need the bytes of the file.
The current architecture forced us to load the context and have a wroking classpath.
When debugging, we sometimes need to see the contents of a tasty file witouth having the full classpath available.

  • Use dotty.tools.dotc.core.TastyPrinter.main as new entry point
  • Decouple -decompile from -print-tasty
  • Only require .tasty file to be able to print its contents
  • Keep the same CLI commands and flags
@nicolasstucki
Copy link
Contributor Author

nicolasstucki commented Aug 10, 2021

This improvement was necessary to debug #13234

@nicolasstucki nicolasstucki self-assigned this Aug 10, 2021
@nicolasstucki nicolasstucki force-pushed the standalone-tasty-printer branch from 6e32ac5 to 90b7514 Compare August 10, 2021 14:09
To print the contents of a tasty file we only need the bytes of the file. The current architecture forced us to load the context and have a wroking classpath. When debugging, we sometimes need to see the contents of a tasty file witouth having the full classpath available. * Use `dotty.tools.dotc.core.TastyPrinter.main` as new entry point * Decouple `-decompile` from `-print-tasty` * Only require .tasty file to be able to print its contents * Keep the same CLI commands and flags
@nicolasstucki nicolasstucki force-pushed the standalone-tasty-printer branch from 058e734 to daab244 Compare August 12, 2021 10:13
@nicolasstucki nicolasstucki marked this pull request as ready for review August 12, 2021 13:39
Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

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

LGTM, outside that suggestion

@dwijnand dwijnand merged commit cd46102 into scala:master Aug 16, 2021
@dwijnand dwijnand deleted the standalone-tasty-printer branch August 16, 2021 13:10
@Kordyjan Kordyjan added this to the 3.1.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants