Skip to content

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

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

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
Copy link
Copy Markdown
Collaborator

Three 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.
  • DirectLinkingResourceStorageWritable — the node-model branch guarded getParseResult() but not getRootNode(); guard both.
  • 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.
- DirectLinkingResourceStorageWritable: the node-model branch guarded
  getParseResult() but not getRootNode(); guard both.
- 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>
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