We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be super awesome if we could import compiler plugins. eg ammonite allows
import $plugin.$ivy.`org.spire-math::kind-projector:0.6.3`
I have no idea if this is feasible or not but it would be epic!
The text was updated successfully, but these errors were encountered:
Thank you for reporting! You can enable compiler plugins with the $scalac magic import, see example here
$scalac
mdoc/tests/unit/src/test/scala/tests/imports/ScalacSuite.scala
Line 11 in 24193c5
You can try to fetch the jar locally first
❯ cs fetch --intransitive org.spire-math:kind-projector_2.12:0.9.10 /Users/lgeirsson/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/spire-math/kind-projector_2.12/0.9.10/kind-projector_2.12-0.9.10.jar
Then add it via -Xplugin:...
-Xplugin:...
import $scalac.`-Xplugin:/Users/lgeirsson/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/spire-math/kind-projector_2.12/0.9.10/kind-projector_2.12-0.9.10.jar`
Can you confirm this works as expected? I'm open to add built-in support for a $plugin magic import
$plugin
Sorry, something went wrong.
I think this doesn't work in worksheets as far as I tried, not sure exactly why.
No branches or pull requests
It would be super awesome if we could import compiler plugins. eg ammonite allows
I have no idea if this is feasible or not but it would be epic!
The text was updated successfully, but these errors were encountered: