Skip to content

Improved DI diagnostics with readable AP and KSP error guidance - #740

Open
GoodforGod wants to merge 2 commits into
masterfrom
feature/ap-ksp-error-reinforcement
Open

Improved DI diagnostics with readable AP and KSP error guidance#740
GoodforGod wants to merge 2 commits into
masterfrom
feature/ap-ksp-error-reinforcement

Conversation

@GoodforGod

Copy link
Copy Markdown
Contributor

EN

Improved Kora DI compile-time diagnostics for annotation processing and KSP. Dependency resolution errors now provide clearer context, paths, hints, and fixes, while internal processor invariants report explicit Kora internal error messages instead of vague unchecked exceptions.


RU

Улучшен вывод ошибок DI при компиляции для annotation processing и KSP. Ошибки разрешения зависимостей теперь показывают более понятный контекст, путь, подсказки и исправления, а внутренние инварианты процессора выводят явные сообщения Kora internal error вместо неясных unchecked exceptions.


  • Improved unresolved, duplicate, circular, generic, and extension-related dependency diagnostics with consistent Required at, Dependency resolution path, Hint, and Fix sections.
  • Improved AP and KSP parity by preserving dependency claim source information and formatting comparable diagnostics in both processors.
  • Fixed vague internal failures by replacing empty or raw RuntimeException, IllegalStateException, and related unchecked exceptions with explicit contextual messages.

Diagnostic format

Improved dependency errors now use a readable compiler-style structure:

No component found for dependency:
  <dependency>

Required at:
  <component or parameter>

Dependency resolution path:
  <root> -> <dependency> -> <missing dependency>

Hint:
  <why this usually happens>

Fix:
  <what to add or change>

Improved Kora DI compile-time diagnostics so unresolved, duplicate, circular, generic, and internal processor failures report clearer context, dependency paths, hints, and actionable fixes across annotation processing and KSP.

- Improved user-facing dependency errors with consistent `Required at`, `Dependency resolution path`, `Hint`, and `Fix` sections.
- Improved AP and KSP parity for dependency claim sources, component declarations, extension failures, and module hint diagnostics.
- Fixed vague internal failures by replacing empty or raw unchecked exceptions with explicit `Kora internal error` messages.
@GoodforGod GoodforGod added this to the v2.0.0 milestone Jul 19, 2026
@GoodforGod
GoodforGod requested a review from Squiry July 19, 2026 10:04
@GoodforGod GoodforGod added improvement Improvements to existing features module: core Core framework modules optimization Optimization change that doesn't change behavior or bring something new labels Jul 19, 2026
@github-actions

github-actions Bot commented Jul 19, 2026

Copy link
Copy Markdown

Test Results

713 tests   704 ✅  27m 20s ⏱️
 98 suites    9 💤
 98 files      0 ❌

Results for commit a65a891.

♻️ This comment has been updated with latest results.

@github-actions

Copy link
Copy Markdown

Dependency Update Report

Update level: patch

Found 3 dependency updates.

gradle/libs.versions.toml

  • s3client-aws (software.amazon.awssdk:s3, inline:248): 2.47.5 -> 2.47.6
  • zeebe: 8.9.12 -> 8.9.13
  • kotlin-stdlib: 2.4.0 -> 2.4.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvements to existing features module: core Core framework modules optimization Optimization change that doesn't change behavior or bring something new

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant