diffplug / diffplug/spotless

lint errors: LINE_UNDEFINED eclipse jdt formatter(java.lang.reflect.InvocationTargetException) java

Open
#2,862 6 comments 4 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

I'm working some changes for [smithy-java](https://github.com/smithy-lang/smithy-java), and using spotless 8.2.1. Lately I have seen several errors like these after making some changes. Somehow the build gets broken after that and I cannot get out of that state. The build succeeds if I stash my changes. Any idea what can be the cause and how to fix it?

**Update** Downgraded to 8.1.0 and the build is back to normal

```
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':core:spotlessJavaCheck'.
> There were 214 lint error(s), they must be fixed or suppressed.
src/jmh/java/software/amazon/smithy/java/core/schema/TraitMapBench.java:LINE_UNDEFINED eclipse jdt formatter(java.lang.reflect.InvocationTargetException) java.lang.reflect.InvocationTargetException (...)
src/jmh/java/software/amazon/smithy/java/core/schema/TraitMapBench.java:LINE_UNDEFINED removeUnusedImports(java.lang.NoClassDefFoundError) com/google/googlejavaformat/java/RemoveUnusedImports (...)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.