Skip to content
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

format-gradle excavator is failing on an internal repo #2561

Open
ash211 opened this issue Apr 18, 2023 · 0 comments
Open

format-gradle excavator is failing on an internal repo #2561

ash211 opened this issue Apr 18, 2023 · 0 comments

Comments

@ash211
Copy link
Contributor

ash211 commented Apr 18, 2023

What happened?

On internal repo "foundry/magritte-runtimes" for "roomba/format-gradle", the excavator is failing with this message:

Step 'eclipse groovy formatter' found problem in 'agent-util.gradle':
Multiple problems detected during step execution:
Snippet6b2651a4177a491e8b0304be58ef4317.groovy: 82: expecting ')', found '->' @ line 82, column 38.
               rename(_originalFileName -> bundledName)
                                        ^
Snippet6b2651a4177a491e8b0304be58ef4317.groovy: 82: expecting '}', found '->' @ line 82, column 38.
               rename(_originalFileName -> bundledName)
                                        ^
java.lang.IllegalArgumentException: Multiple problems detected during step execution:
Snippet6b2651a4177a491e8b0304be58ef4317.groovy: 82: expecting ')', found '->' @ line 82, column 38.
               rename(_originalFileName -> bundledName)
                                        ^
Snippet6b2651a4177a491e8b0304be58ef4317.groovy: 82: expecting '}', found '->' @ line 82, column 38.
               rename(_originalFileName -> bundledName)
                                        ^
	at com.diffplug.spotless.extra.eclipse.groovy.GrEclipseFormatterStepImpl.format(GrEclipseFormatterStepImpl.java:88)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.diffplug.spotless.extra.groovy.GrEclipseFormatterStep.lambda$apply$0(GrEclipseFormatterStep.java:57)

What did you want to happen?

This excavator to succeed.

Idea

Maybe an upgrade of spotless would help? We're currently on 6.6.0 but the latest is 6.18.0 and there have been updates to the GrEclipseFormatterStep in the past couple months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant