openrewrite / rewrite-docs

Stores the markdown documents used to generate docs.openrewrite.org
https://docs.openrewrite.org
Apache License 2.0
41 stars 52 forks source link

Delete argument example #9

Closed Guseyn closed 4 years ago

Guseyn commented 4 years ago

I've tried to follow this example: https://docs.openrewrite.org/java/refactoring-java-source-code/deletemethodargument But I get error:

Failed to execute goal org.openrewrite.maven:rewrite-maven-plugin:2.1.1:fix (default-cli) on project rewrite-example: Execution default-cli of goal org.openrewrite.maven:rewrite-maven-plugin:2.1.1:fix failed: Problem parsing rewrite configuration from: file:/Users/guseyn/java-projects/rewrite-example/recipes/rewrite4.yml
[ERROR] visitor was '{org.openrewrite.java.DeleteMethodArgument=null, method=ch.qos.logback.classic.Logger debug(org.slf4j.Marker,..), index=0}' but it must be constructable
sambsnyd commented 4 years ago

The DeleteMethodArgument sample in your rewrite-java-definitions repo passes now, so I think the underlying bug here was fixed. Let me know if that isn't the case