diffplug / diffplug/spotless

Can't configure SymbolResolver in `expandWildcardImports()`

オープン
#2,846 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
5.7k
フォーク
561
平均マージ
1日 14時間
マージ済み PR(30日)
43

説明

Gradle throw the following error :
``
Execution failed for task ':spotlessJavaApply'.
> There were 6 lint error(s), they must be fixed or suppressed.
src/main/java/com/hypixel/hytale/server/core/Message.java:LINE_UNDEFINED expandwildcardimports(java.lang.IllegalStateException) Symbol resolution not configured: to configure consider setting a SymbolResolver in the ParserConfiguration (...)
``

The `build.gradle.kts`is :
```gradle
spotless {
java {
target(
"src/main/java/**/*.java"
)

palantirJavaFormat("2.85.0").formatJavadoc(true)

formatAnnotations()
forbidModuleImports()
expandWildcardImports()

removeUnusedImports()
endWithNewline()
importOrder()
}
}
```

I'm using the plugin in version 8.2.1

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

build.gradle.kts の Spotless 設定から始め、プラグインバージョン 8.2.1 で expandWildcardImports() を使用して失敗を再現します。src/main/java/com/hypixel/hytale/server/core/Message.java から報告されたエラーを追跡し、期待される SymbolResolver の設定を特定します。報告された Gradle タスクがシンボル解決エラーなしで完了すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
build-system, tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。