google / google/google-java-format

Possible issue with Eclipse plugin

未关闭
#1,428 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
6.2k
派生
937
平均合并
6 分钟
30 天内合并 PR
3

描述

### Issue:
* Just bumped to `1.36.0`, I have a save action to format automatically, getting this error:
* A save participant caused problems. The save participant 'Code Clean Up' caused an exception: `java.lang.NoClassDefFoundError: Could not initialize class com.google.googlejavaformat.java.javadoc.MarkdownPositions`. See the error log for details.
* Explicit invocation of the formatter (Shift + Ctrl + F) does nothing.
* External runs via java -jar are fine.

### Environment:
* Eclipse IDE for Java Developers (includes Incubating components)
* Version: 2026-06 (4.40.0)
* Build id: 20260604-0653
* OS: Linux, v.7.1.5-arch1-2, x86_64 / gtk 3.24.52, WebKit 2.52.5
* Java vendor: Eclipse Adoptium
* Java runtime version: 21.0.11+10-LTS
* Java version: 21.0.11

Ask me anything, will try to help.

贡献指南

打开贡献指南

调研方向

Start by reproducing the failure through the Eclipse save participant 'Code Clean Up' and the explicit formatter shortcut, using the reported Eclipse, Java 21, and Linux environment. Compare both behaviors with the working external java -jar invocation. Done means the Eclipse plugin formats successfully without the MarkdownPositions initialization error while standalone formatting remains working.

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
活跃
描述清晰度
需要澄清
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。