8000 [2.x] Support debug output for macros by eed3si9n · Pull Request #8140 · sbt/sbt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[2.x] Support debug output for macros #8140

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

Merged
merged 1 commit into from
May 27, 2025
Merged

Conversation

eed3si9n
Copy link
Member

It's sometimes useful to get the output of the macro-generated code. This adds a mechanism to allow plugins.sbt to pass in scalacOptions, which we can later check from the macro.

  1. -Xmacro-settings:sbt:Vprint prints out the code.
  2. Adding -Xmacro-settings:sbt:print-tree-structure prints out the tree structure.

It's sometimes useful to get the output of the macro-generated code.
This adds a mechanism to allow plugins.sbt to pass in scalacOptions,
which we can later check from the macro.

1. -Xmacro-settings:sbt:Vprint prints out the code.
2. Adding -Xmacro-settings:sbt:print-tree-structure prints out the tree structure.
@eed3si9n eed3si9n merged commit 8431c38 into sbt:develop May 27, 2025
12 checks passed
@eed3si9n eed3si9n deleted the wip/eval-debug branch May 27, 2025 05:29
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.

1 participant
0