-
Notifications
You must be signed in to change notification settings - Fork 64
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
Change Type recipe now shows a Kotlin example only #211
Comments
@kunli2 / @mike-solomon not sure if this is in the right repository, or who of you would best know how to resolve this. |
I suspect this is probably going to require a change in the markdown generator and that Kun would have the background for this. I haven’t looked at the auto generated test stuff. |
I took a look into this and I'm wondering if the Groovy stuff is perhaps conflicting with the Java stuff. For instance, I see that the It also is somehow getting a path of I'm not really sure where to go from here. Marking as blocked. Will need assistance from someone else to continue. |
I think it's even this test that's picked up, since the docs mention Kotlin: Is there anyway to disambiguate which one gets shown in the docs @kunli2 ? |
Ah good find @timtebeek that makes more sense. I think we'll need help from Kun or someone with more of a background on how this test annotation works. |
Seems the plug-in doesn't work on the |
I have verified that, after bumping the update: released |
Hi @mike-solomon, do we want to update the doc or wait until the next rewrite release (nothing needs to do)? |
@kunli2 I just tried re-generating the docs just now and I still see the Java Change Type recipe showing Kotlin code. Does something else need to happen for these changes to appear? |
I think that's because the rewrite didn't pick up the latest diff --git a/build.gradle.kts b/build.gradle.kts
index eddf8702a..85038a402 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,6 +1,6 @@
plugins {
- id("org.openrewrite.build.root") version("latest.release")
- id("org.openrewrite.build.java-base") version("latest.release")
+ id("org.openrewrite.build.root") version("1.12.1")
+ id("org.openrewrite.build.java-base") version("1.12.1")
id("org.openrewrite.rewrite") version("latest.release")
} |
After making the changes, I haven't been able to get the expected results locally. Kun is going to try and run the markdown generator on his machine and see if it works for him. |
This should be resolved once the next version of OpenRewrite is released and we re-generate the docs. Leaving as blocked until the next release happens. |
@kunli2 I re-generated the docs today and |
I'd noticed openrewrite/rewrite-build-gradle-plugin@dec3f04 just now; that'll factor in. Not clear yet why or how to resolve, but figured share it here such you at least know. |
I've just logged openrewrite/rewrite-build-gradle-plugin#20 to track why the examples aren't extracted right now. |
As this is similar to this issue and as that issue is probably not going to be resolved anytime soon, I'm going to close this. If examples are ever produced again for the docs, we can come back and ensure that Kotlin ones work appropriately. |
Would have expected a Java example at least, not only Kotlin.
https://docs.openrewrite.org/recipes/java/changetype
The text was updated successfully, but these errors were encountered: