Replies: 1 comment 2 replies
-
Hello!
and have tried to debug using https://github.com/tschuchortdev/kotlin-compile-testing I currently use a rather "primitive" approach to testing: I package the plugin locally and then use a test project to compile it and observe the results. Although I'm not currently using it, I thought you might like to look at kotlin-compile-testing As for the mention of JS compilation, I'm probably not quite sure how that works either. I hope this will help you with my limited abilities 😃 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there!
Unrelated question about compiler plugins.
Ones of the gripes I have with CommonJS JS generation is the namespace wrapping.
Example: if a class' package is
com.my.company.pkg
, the class will be wrapped in a namespacecom.my.company.pkg
, while I only wantpkg
.I'm exploring the compiler API using this project as starting point, and I've seen how you modify an existing function to add an annotation (
JvmSynthetic
), and now I'd like to debug it, to follow what's happening line by line.How do you begin to debug the plugin's code? Any hint?
Beta Was this translation helpful? Give feedback.
All reactions