Skip to content

How do I know if my plugin is loaded? #23136

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

Open
som-snytt opened this issue May 11, 2025 · 1 comment
Open

How do I know if my plugin is loaded? #23136

som-snytt opened this issue May 11, 2025 · 1 comment
Labels
area:compiler-plugins Issues tied with handling of compiler plugins. itype:bug

Comments

@som-snytt
Copy link
Contributor

Compiler doesn't tell me if my plugin is junk even though I "require" it.

~/projects/dotty/bin/scalacQ -Xplugin-list -Xplugin-require junk

Discussed in #21238

Originally posted by kincsescsaba July 21, 2024
Hi there,

I had a working plugin and could not isolate why it had stopped working. There are no error messages. What I see is that I can add the plugin with -Xplugin:path/to/jar, and there are no error messages, but the plugin does not do its job of filtering specific code parts that worked previously.

I tried scala -Xplugin:path/to/jar -Xplugin-list options, this returns an empty line, then quits.

What are the best practices to resolve an issue like this?

@som-snytt som-snytt added itype:bug area:compiler-plugins Issues tied with handling of compiler plugins. labels May 11, 2025
@som-snytt
Copy link
Contributor Author

Is a plugin permitted to produce no phases?

Maybe the default initialize should return a sentinel phase that is not enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:compiler-plugins Issues tied with handling of compiler plugins. itype:bug
Projects
None yet
Development

No branches or pull requests

1 participant