Skip to content

DO NOT REVIEW: fix(check): make GenerateTestLanguage reproduce the test language - #1679

Draft
joaodinissf wants to merge 1 commit into
gen-sync-step-3from
gen-sync-step-4
Draft

joaodinissf wants to merge 1 commit into
gen-sync-step-3from
gen-sync-step-4

Conversation

@joaodinissf

@joaodinissf joaodinissf commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

GenerateTestLanguage.mwe2 regenerates the committed sources of the test language, which leaves KNOWN_DRIFT empty. The test language keeps its editor features:

  • Content assist moves to the new bundle com.avaloq.tools.ddk.check.test.runtime.ide, where Xtext 2.43 generates the content assist parser (genericIde, XtextAntlrGeneratorFragment2, forceDisableIdeProject = false as in the other DDK workflows). The UI requires it.
  • ContentAssistFragment2 and CodetemplatesGeneratorFragment2 generate the proposal provider and the templates bindings; the templates preference page stays in plugin.xml.
  • DDK's FormatterFragment2 binds TestLanguageFormatter and the DDK node model formatter and streamer, as the legacy FormatFragment did.
  • Java stubs only, and BundleVersionStripperFragment as in the other DDK workflows.
  • ValidatorFragment2 binds TestLanguageValidator (formerly TestLanguageJavaValidator) with the ImportUri and NamesAreUnique checks, so the GREETING_NAME_PREFIX warning stays.
  • TestLanguageGeneratorNaming keeps the activator name the UI manifest and tests use.
  • The launch refreshes the .ide project instead of the removed .generator one.

Verified locally: the workflow's output is stable across runs; check.test.runtime, its .ide and .ui, check.test.runtime.tests and checkcfg.ui.test pass with PMD, Checkstyle and SpotBugs.

Fixes #1672

🤖 Generated with Claude Code

@joaodinissf
joaodinissf added this pull request to stack #1681 November 28, 2026 11:49
@joaodinissf joaodinissf changed the title fix(check): make GenerateTestLanguage reproduce the test language DO NOT REVIEW: fix(check): make GenerateTestLanguage reproduce the test language Nov 28, 2026
GenerateTestLanguage.mwe2 now regenerates the committed sources of the
test language, and regenerate.sh checks it. The test language keeps the
editor features it had:

- Content assist moves to the new bundle
  com.avaloq.tools.ddk.check.test.runtime.ide, where Xtext 2.43
  generates the content assist parser (genericIde,
  XtextAntlrGeneratorFragment2). The UI requires it.
- ContentAssistFragment2 and CodetemplatesGeneratorFragment2 generate
  the proposal provider and the templates bindings; the templates
  preference page stays in plugin.xml.
- DDK's FormatterFragment2 binds TestLanguageFormatter and the DDK node
  model formatter and streamer, as the legacy FormatFragment did.
- Java stubs only (preferXtendStubs = false), and BundleVersionStripperFragment
  as in the other DDK workflows. org.objectweb.asm keeps the optional version
  range that TypesGeneratorFragment2 adds.
- ValidatorFragment2 binds TestLanguageValidator (formerly
  TestLanguageJavaValidator) with the ImportUri and NamesAreUnique checks the
  legacy validator composed, so the GREETING_NAME_PREFIX warning stays.
- TestLanguageGeneratorNaming keeps the activator
  com.avaloq.tools.ddk.check.ui.internal.TestLanguageActivator, which the UI
  manifest and the tests use.
- The metamodel stays in src-gen/com/avaloq/tools/ddk/check, where
  plugin.xml and build.properties expect it.
- TestLanguageGenerator extends AbstractGenerator, as the runtime module
  binds IGenerator2.

The Check output in dsl-gen is not touched by the workflow's cleaners.

Fixes #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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.

check.test.runtime: GenerateTestLanguage output diverges from the committed sources and does not compile

1 participant