lint errors: LINE_UNDEFINED eclipse jdt formatter(java.lang.reflect.InvocationTargetException) java
- Lenguaje dominante
- Java
- Estrellas
- 5.6k
- Forks
- 559
- Merge medio
- 1 d 14 h
- PR fusionados (30 d)
- 43
Descripción
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 (...)
```
Guía de contribución
Línea de trabajo
Comienza reproduciendo :core:spotlessJavaCheck con Spotless 8.2.1 usando el ejemplo de smithy-java e inspecciona los fallos notificados en TraitMapBench.java, incluidos LINE_UNDEFINED y removeUnusedImports. Compara el resultado con Spotless 8.1.0; se considera terminado cuando la comprobación del formateador se completa sin estos errores de lint y la causa está documentada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- build-system
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Tranquilo
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 42/100