Skip to content

fix: minor robustness/logging cleanups from the inconsistency sweep#1394

Open
joaodinissf wants to merge 1 commit into
dsldevkit:masterfrom
joaodinissf:fix/sweep-minor-robustness
Open

fix: minor robustness/logging cleanups from the inconsistency sweep#1394
joaodinissf wants to merge 1 commit into
dsldevkit:masterfrom
joaodinissf:fix/sweep-minor-robustness

Conversation

@joaodinissf

@joaodinissf joaodinissf commented May 30, 2026

Copy link
Copy Markdown
Collaborator

Two low-risk cleanups from the repo-wide inconsistency sweep (bundled as one small PR):

  • ScopeResourceDescriptionStrategy.getSourceText — guard a null getParseResult() before getRootNode() (node-model-less resources exist, e.g. direct-linking storage), returning "" as it already does for the proxy case. Without the guard the NPE is swallowed by the enclosing catch (RuntimeException) and the scope model is silently not indexed at all; with it, the model is indexed with the source text contributing as empty.
  • CustomClassAwareEcoreGenerator — non-OK EMF generation diagnostics were logged at INFO, so warnings/errors were easy to miss; log them at WARN.

🤖 Generated with Claude Code

- ScopeResourceDescriptionStrategy.getSourceText: guard a null parse result
  before dereferencing getRootNode() (resources without a node model exist,
  e.g. direct-linking storage), returning "" as for the proxy case.
- CustomClassAwareEcoreGenerator: non-OK EMF generation diagnostics were logged
  at INFO, so warnings/errors were easy to miss; log them at WARN.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@joaodinissf joaodinissf force-pushed the fix/sweep-minor-robustness branch from f4b5fb7 to 2367166 Compare June 12, 2026 18:30
@joaodinissf joaodinissf marked this pull request as ready for review June 12, 2026 18:30
@joaodinissf joaodinissf requested a review from rubenporras June 12, 2026 18:30
@joaodinissf joaodinissf enabled auto-merge (rebase) June 12, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant