Regression in 2.6.0
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
使用提供的 Java 输入和 --print-width 120 重现格式回归,然后检查 pull request 632 中的更改以及所引用的 grpc-bidi 提交。完成的标准是 formatter 始终生成两种预期的右括号布局之一,并且通过可复现的检查覆盖该回归。
由索引模型根据 Issue 内容生成。
描述
Prettier-Java 0.6.0
# Options (if any):
--print-width 120
It looks like https://github.com/jhipster/prettier-java/pull/632 , despite being a great improvement overall, introduced a regression when the first method call needs to be multi-line due to long arguments, leading to a closing ) misaligned.
Input:
public static final MethodDescriptor<ByteBuf, ByteBuf> NEW_TUNNEL_METHOD = MethodDescriptor
.newBuilder(ByteBufMarshaller.INSTANCE, ByteBufMarshaller.INSTANCE)
.setFullMethodName(TUNNEL_SERVICE + "/new")
.setType(MethodDescriptor.MethodType.BIDI_STREAMING)
.build();
Output:
public static final MethodDescriptor<ByteBuf, ByteBuf> NEW_TUNNEL_METHOD = MethodDescriptor.newBuilder(
ByteBufMarshaller.INSTANCE,
ByteBufMarshaller.INSTANCE
)
.setFullMethodName(TUNNEL_SERVICE + "/new")
.setType(MethodDescriptor.MethodType.BIDI_STREAMING)
.build();
Expected behavior:
public static final MethodDescriptor<ByteBuf, ByteBuf> NEW_TUNNEL_METHOD = MethodDescriptor
.newBuilder(ByteBufMarshaller.INSTANCE, ByteBufMarshaller.INSTANCE)
.setFullMethodName(TUNNEL_SERVICE + "/new")
.setType(MethodDescriptor.MethodType.BIDI_STREAMING)
.build();
Alternative expected behavior:
public static final MethodDescriptor<ByteBuf, ByteBuf> NEW_TUNNEL_METHOD = MethodDescriptor.newBuilder(
ByteBufMarshaller.INSTANCE,
ByteBufMarshaller.INSTANCE
)
.setFullMethodName(TUNNEL_SERVICE + "/new")
.setType(MethodDescriptor.MethodType.BIDI_STREAMING)
.build();
See https://github.com/bsideup/grpc-bidi/commit/bd351342e59ed4be2ad6f18e32f174978f0c7c02
- 主要语言
- Java
- 星标
- 1.2k
- 派生
- 122
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 32
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jhipster/prettier-java 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
jhipster/prettier-java#1113 ·
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
jhipster/prettier-java#1115 ·
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 56/100
jhipster/prettier-java#1114 ·
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 66/100
jhipster/prettier-java#1112 ·
维护者通常 2 天内回复
-
Comment "// @formatter:off" was not printed可能已有人在做 @jtkiesel 于 1 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
jhipster/prettier-java#1098 ·
维护者通常 2 天内回复
查看 jhipster/prettier-java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
QuiltMC/update-quilt-meta#28 ·
-
awaiting triage Documentation P3
难度 1/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
area/build area/maintainability component/camunda-process-test kind/tech-debt
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Kafka: Filter empty strings and whitespace in IcebergSinkConfig stringToList可能已有人在做 @mohamed-elbrik 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
area/kotlin
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复