-
Notifications
You must be signed in to change notification settings - Fork 77
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
MavenParser
fails on WindowsPath.relativize
with 'other' has different root
, when using multiple disks
#546
Comments
@KaiqianYang Thanks for reaching out to us. I'd like to make a few clarifications to make sure that I understand the problem correctly:
Using the latest released versions of said artifacts I also get an error reported, but a different one: mvn -U org.openrewrite.maven:rewrite-maven-plugin:4.42.0:run "-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-spring:4.34.0" "-Drewrite.activeRecipes=org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_7" If I however run the recipe using the command you provided, the run is actually successful. |
@KaiqianYang I just learned that this is how I am however still unsure about the |
Error message:
Oh your mentioning of Thanks. |
@KaiqianYang As in the stack trace of this SO question I think that the root cause is an As I cannot reproduce the issue, can you maybe try running the build with |
@KaiqianYang Were you able to get any more details here? |
Sorry for the late reply, this is the stack trace. And at this breakpoint, the child.root is // can only relativize paths if root component matches
if (!this.root.equalsIgnoreCase(child.root))
throw new IllegalArgumentException("'other' has different root"); |
I have a similar problem using the program from the "Running Rewrite without build tool plugins" documentation page against one of my projects. Again Java11, again Windows, again in the relativize method but with this stacktrace:
In my case, Also, I'm using OpenRewrite 7.39.1. |
@azmau @KaiqianYang Thank you both for the details. I hope this will be enough to reproduce abd fix the issue. |
MavenParser
fails on WindowsPath.relativize
with 'other' has different root
, when using multiple disks
I try to run recipes on the sample https://github.com/openrewrite/spring-petclinic-migration, but failed with:
My command was:
Could you help me to run recipe on the sample project?
The text was updated successfully, but these errors were encountered: