Skip to content

fix: stop the Format workflow from generating Xtend stubs - #1645

Open
joaodinissf wants to merge 1 commit into
masterfrom
fix/no-format-xtend-stubs
Open

joaodinissf wants to merge 1 commit into
masterfrom
fix/no-format-xtend-stubs

Conversation

@joaodinissf

Copy link
Copy Markdown
Collaborator

Stops GenerateFormat.mwe2 from writing .xtend stubs next to the hand-written Java classes of the Format language.

The change

The Format workflow uses StandardLanguage and, unlike the other DDK workflows, did not set preferXtendStubs = false. Every regeneration therefore wrote eight .xtend stubs:

  • FormatRuntimeModule, FormatStandaloneSetup, FormatScopeProvider and FormatValidator in xtext.format;
  • FormatIdeModule and FormatIdeSetup in xtext.format.ide;
  • FormatUiModule in xtext.format.ui;
  • FormatParsingTest in xtext.format.test.

This PR sets preferXtendStubs = false in the code configuration. The JUnit fragment sets its own Xtend default, so junitSupport also gets generateXtendStub = false. Every stubbed class already exists in Java, so no new file is generated and no binding changes.

Only the workflow changes, so no bundle version is bumped.

Testing

  • Regeneration: after running GenerateFormat.mwe2, none of the eight stubs appears. Together with fix: stop the workflows from generating Xtend inferrer stubs #1644, the workflow writes no .xtend file at all.
  • Maven on this branch, with Temurin 21: clean verify with checkstyle:check, pmd:check, pmd:cpd-check and spotbugs:check passes. 490 tests ran with no failures or errors, and 2 were skipped.

🤖 Generated with Claude Code

GenerateFormat.mwe2 uses StandardLanguage without preferXtendStubs =
false, unlike the other DDK workflows, so every regeneration wrote
.xtend stubs next to the hand-written Java classes: the runtime, UI and
IDE modules, the standalone and IDE setups, the scope provider, the
validator and the parsing test.

Set preferXtendStubs = false in the code configuration. The JUnit
fragment sets its own Xtend default, so also turn it off on
junitSupport. All the stubbed classes already exist in Java, so nothing
new is generated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@joaodinissf
joaodinissf marked this pull request as ready for review November 21, 2026 20:25

This branch has not been deployed

No deployments
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