lint errors: LINE_UNDEFINED eclipse jdt formatter(java.lang.reflect.InvocationTargetException) java
- Vorherrschende Sprache
- Java
- Sterne
- 5.6k
- Forks
- 559
- Ø Merge
- 1 T. 14 Std.
- Gemergte PRs (30 T.)
- 43
Beschreibung
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 (...)
```
Beitragsleitfaden
Rechercherichtung
Beginne damit, :core:spotlessJavaCheck mit Spotless 8.2.1 anhand des smithy-java-Beispiels zu reproduzieren und die gemeldeten Fehler in TraitMapBench.java zu untersuchen, einschließlich LINE_UNDEFINED und removeUnusedImports. Vergleiche das Ergebnis mit Spotless 8.1.0; abgeschlossen ist die Aufgabe, wenn die Formatter-Prüfung ohne diese Lint-Fehler durchläuft und die Ursache dokumentiert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- build-system
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 42/100