1.37.0 throwing exceptions ... 1.36.1 works
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by reproducing the failure with the provided Maven configuration, comparing google-java-format 1.37.0 with 1.36.1 on the reported Java file. The issue gives no repository test or failing formatter entry point, so first inspect how the project exercises formatter versions and captures exceptions. Done means identifying and fixing the cause of the exception, with a regression check for the reported version.
由索引模型根据 Issue 内容生成。
描述
Starting with 1.37.0 I started getting these errors on every file:
src/test/java/com/xxx/xxx/xxx/xxx/xxx/starter/testing/SimpleTypeRepository.java:LINE_UNDEFINED google-java-format(java.lang.reflect.InvocationTargetException) java.lang.reflect.InvocationTargetException (...)
Resolve these lints or suppress with <lintSuppressions>
at com.diffplug.spotless.maven.SpotlessApplyMojo.process (SpotlessApplyMojo.java:121)
at com.diffplug.spotless.maven.AbstractSpotlessMojo.execute (AbstractSpotlessMojo.java:288)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:127)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:336)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:324)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:220)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:181)
at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:79)
at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:169)
at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:166)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:106)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:74)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:121)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:267)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:179)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:1017)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:299)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:219)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
at java.lang.reflect.Method.invoke (Method.java:580)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:362)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>3.10.4</version>
<configuration>
<java>
<includes>
<include>src/it/java/**/*.java</include>
<include>src/main/java/**/*.java</include>
<include>src/test/java/**/*.java</include>
</includes>
<googleJavaFormat>
<version>1.37.0</version>
<style>GOOGLE</style>
</googleJavaFormat>
</java>
</configuration>
</plugin>
- 主要语言
- Java
- 星标
- 6.2k
- 派生
- 940
- 平均合并
- 7 小时 46 分钟
- 30 天内合并 PR
- 11
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/google-java-format 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
google/google-java-format#1094 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
google/google-java-format#1470 · 5 个 reaction ·
维护者通常 1 天内回复
-
IndexOutOfBoundsException - Wrong formatted content when dealing with latex String可能重新可做 @Amlan2000 于 59 天前认领,目前没有进行中的 PR。 未关闭
难度 4/5 3-5 天 新手友好度 55/100
google/google-java-format#1439 · 1 条评论 ·
维护者通常 1 天内回复
-
unused import removal leaves extra blank line between package declaration and class Javadoc / declaration可能已有人在做 @arimu1 于 68 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 62/100
google/google-java-format#1436 · 2 条评论 ·
维护者通常 1 天内回复
-
Eclipse
难度 3/5 1-2 天 新手友好度 48/100
google/google-java-format#1428 · 4 条评论 ·
维护者通常 1 天内回复
查看 google/google-java-format 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
Flight SQL JDBC parses boolean properties case-sensitively, silently disabling TLS for useEncryption=TRUE可能已有人在做 @Arawoof06 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 79/100
apache/arrow-java#1357 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
apache/rocketmq-dashboard#6610 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
MetricsHub/metricshub-community#1396 ·
维护者通常 1 天内回复
-
L: java:gradle L: java:maven L: ruby:bundler T: bug 🐞
难度 2/5 1-3 小时 新手友好度 76/100
dependabot/dependabot-core#16547 ·
维护者通常 1 天内回复