Repository navigation
Keep xtcRun's settings in runXtc: Gradle's jvmArgs semantics with enableAssertions, and a module's method and arguments with --module - #804
Merged
Conversation
…rgs, and a module's method and arguments with --module
Two ways in which runXtc did not run what the build configured:
- jvmArgs("...") on xtcRun, xtcTest or a launcher task replaced the plugin's default JVM options (-ea and the build's
others) instead of adding to them. The defaults were the property's convention, and Gradle's addAll on a property
that has only a convention starts from empty. manualTests shows it: its xtcRun calls jvmArgs("-showversion",
"--enable-preview") under a comment that says it adds to the defaults, and runXtc ran without -ea. The defaults are
now the extension's value, and a task's jvmArgs the extension's as its value (a provider, so still lazy), so
jvmArgs(...) adds to them, on the extension and on a task. setJvmArgs and set(...) replace them, as before.
- runXtc --module=X ran X with the default method and no arguments, even where xtcRun configures X with a method and
arguments. It now runs the configured module of that name (the first, if xtcRun names it more than once), alone,
with its method and arguments; --method and --args still override them, and a module that xtcRun does not name
runs with the defaults, as before. The option's description says so.
Validated:
- ./gradlew :plugin:validatePlugins :plugin:test --rerun, results deleted first, from the JUnit XML: 76 tests,
0 failures, 13 skipped (the integration tests that RUN_INTEGRATION_TESTS=true enables). XtcRunConfigurationTest has
four new tests: jvmArgs add to the defaults on the extension and on runXtc; --module runs the configured module
alone with its method and arguments; --args overrides them and leaves the configured module as it was; a module
that xtcRun does not name runs with the defaults. Against the main code before this change, the first three fail.
- A real run, ./gradlew :manualTests:runXtc --module=EchoTest --info: the worker JVM's command line is
java -ea --enable-native-access=ALL-UNNAMED -showversion --enable-preview ..., and EchoTest runs with the arguments
that manualTests' xtcRun gives it ("EchoTest invoked with 2 arguments: Hello, World"), where before it got none.
- ./gradlew spotlessCheck passes and leaves the tree as committed.
Behavior change: a build that calls jvmArgs(...) now runs with -ea, as the DSL says it should; one that wants the
defaults gone can call setJvmArgs or set the property.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…dle run settings work Docs only: jvmArgs(...) on xtcRun or xtcTest now adds to the plugin's default JVM options, and runXtc --module keeps the configured module's method and arguments; both fixed in #804 and mirrored to this branch in the commit before.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
doc/errs/errs-693-pr-map-2026-11-25.tsv gives every commit of #693 (49b5f8a, 468 commits on master 535e80f) its position, subject, the layers its paths touch, a proposed PR and notes. pr-roadmap.md's new top section, "#693 commit -> PR map - 2026-11-25", gives the units in merge order with their commits, files, lines, test share, dependencies and status, what each holds and what review should watch, the 51 commits that need splitting, the steps to squash or leave out, and what is not for master. Nothing after 2026-10-16 had been mapped before. How the units were decided: what master's own code must accept comes first, the javatools compiler, runtime, debugger and embedding API (units 1-9; 2-4 are the earlier #685-successor, semantic facts and partial analysis units, the breaking API of 0.5.0), then the Gradle plugin's pieces as small PRs (10-14), the lang build (15), and the product last (16-29): commit 8, the whole product in one commit, split by component, later commits by feature area, tours and docs at the end. A commit's files go to units by path; one whose files fall in several units is a split, proposed for the unit of its main part. Counts: 29 units plus "not for master" (41, 68, 118, 405). Already on master: 405 (#800). Open: 460 (#802) and 468 (#804), each its own unit. doc/errs/errs-693-sync-2026-11-25.tsv records tonight's mirror, positions 462-468, and the errs-only records 93c065e, db87170 and 60c4dcc that stayed on errs. The header line, "Current review branches and merge order" and "Existing PRs" now give the 2026-11-25 state: the 2026-10-09 branches are stale, #685's contracts come first, and the PRs from gh. Checked by script: the map has 468 rows in #693's order, each commit once, its hashes and subjects equal to git log's; every commit has exactly one proposed PR, and the units' commit lists cover all 468; files and lines per unit are summed from git log --numstat; supersede notes come from deleted files traced to the commits that added them; the sync record's positions and subjects match #693 and its errs commits exist. Limits: no unit was built or tested on its own, and the line counts are churn over each unit's commits, not its net diff.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…dle run settings work Docs only: jvmArgs(...) on xtcRun or xtcTest now adds to the plugin's default JVM options, and runXtc --module keeps the configured module's method and arguments; both fixed in #804 and mirrored to this branch in the commit before.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
doc/errs/errs-693-pr-map-2026-11-25.tsv gives every commit of #693 (49b5f8a, 468 commits on master 535e80f) its position, subject, the layers its paths touch, a proposed PR and notes. pr-roadmap.md's new top section, "#693 commit -> PR map - 2026-11-25", gives the units in merge order with their commits, files, lines, test share, dependencies and status, what each holds and what review should watch, the 51 commits that need splitting, the steps to squash or leave out, and what is not for master. Nothing after 2026-10-16 had been mapped before. How the units were decided: what master's own code must accept comes first, the javatools compiler, runtime, debugger and embedding API (units 1-9; 2-4 are the earlier #685-successor, semantic facts and partial analysis units, the breaking API of 0.5.0), then the Gradle plugin's pieces as small PRs (10-14), the lang build (15), and the product last (16-29): commit 8, the whole product in one commit, split by component, later commits by feature area, tours and docs at the end. A commit's files go to units by path; one whose files fall in several units is a split, proposed for the unit of its main part. Counts: 29 units plus "not for master" (41, 68, 118, 405). Already on master: 405 (#800). Open: 460 (#802) and 468 (#804), each its own unit. doc/errs/errs-693-sync-2026-11-25.tsv records tonight's mirror, positions 462-468, and the errs-only records 93c065e, db87170 and 60c4dcc that stayed on errs. The header line, "Current review branches and merge order" and "Existing PRs" now give the 2026-11-25 state: the 2026-10-09 branches are stale, #685's contracts come first, and the PRs from gh. Checked by script: the map has 468 rows in #693's order, each commit once, its hashes and subjects equal to git log's; every commit has exactly one proposed PR, and the units' commit lists cover all 468; files and lines per unit are summed from git log --numstat; supersede notes come from deleted files traced to the commits that added them; the sync record's positions and subjects match #693 and its errs commits exist. Limits: no unit was built or tested on its own, and the line counts are churn over each unit's commits, not its net diff.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…ds all of #693 errs is the staging area that #693 mirrors, but 60 code files had come to differ between them: - Changes made on #693 that never reached errs: the preview publishing of the IntelliJ plugin and VS Code extension from a pull request (lang/scripts/publish-preview-plugins.sh, #693's d0e6b77 and 77ce233 of 2026-11-17); the Structure view asked again where LSP4IJ before 0.30.0 keeps an edit's empty symbols (StructureViews.kt, 2c0f8a3 of 2026-11-18); and ErrorListTest's cases for diagnostics that only look like duplicates, into which #693's distillation (2140538) folded errs' ErrorDeduplicationTest. - errs-only edits kept on top of #693 since the sync of 2026-10-15 (a500b09): unnamed catch variables and final constants and fields in javatools, the diagnostic-origin proof of concept (ErrorListener.Origin), Javadoc and comment wording, and comment references to doc/errs. They are dropped, as errs is an unmerged branch and #693 has its own form of each. errs now has #693's code exactly: git diff against origin/errs/full-testable-lsp-20261009 outside doc/errs, the Markdown files and lang/doc/plans, the errs-only tracking and plan documents, is empty. Those documents are unchanged. Validated: the comparison above; #693's last CI at f349d63 passed with this code but tonight's six mirrored commits and #804's, which errs already has. Compile and the affected test classes run after this commit.
ggleyzer
approved these changes
Nov 25, 2026
lagergren
force-pushed
the
lagergren/runxtc-keeps-xtcrun-settings
branch
from
November 25, 2026 13:41
d77b4c0 to
9fd4e3c
Compare
…and assertions an enableAssertions property
jvmArgs held the plugin's own JVM options (the build's defaultJvmArgs: -ea, and --enable-native-access=ALL-UNNAMED,
--enable-preview where the XDK's build enables them) together with the build script's. So replacing the list meant
different things in two places: the extension's setJvmArgs kept the defaults and replaced the rest, a task's
replaced everything, -ea and the native access option among them.
They are now kept apart, as Gradle's JavaExec and Test keep theirs:
- jvmArgs holds only the build script's arguments and starts empty. jvmArgs(...) and jvmArg(...) add, setJvmArgs(...)
and jvmArgs.set(...) replace, on the extension and on a task alike; a task starts from its extension's.
- enableAssertions, a new property of the extension and the tasks, as Gradle's enableAssertions, adds -ea. Its
default is the build's choice, which enables them.
- The plugin's other options (XtcLauncherDefaults, from plugin-build-info.properties) always go to the launched JVM.
- The launched JVM gets the task's allJvmArgs, as Gradle names them: -ea if enableAssertions, the plugin's options,
then jvmArgs (XtcLauncherDefaults.allJvmArgs). A build that changes none of them launches with the build's
defaultJvmArgs as before, in their order; replacing jvmArgs can no longer drop -ea or an option the runtime needs.
The plugin README says so.
Validated:
- RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test :plugin:javadoc --rerun: 78 tests,
0 failures, 0 skipped; javadoc builds.
- XtcRunConfigurationTest: jvmArgs add and setJvmArgs replaces on the extension and the task alike; the launched JVM
gets -ea, the plugin's options, then jvmArgs; replacing jvmArgs keeps -ea; enableAssertions = false on the
extension leaves it out of its tasks, unless a task sets its own.
- XdkPluginBuildInfoTest reads runXtc's allJvmArgs, which equal the build info's defaultJvmArgs exactly.
- A real run, ./gradlew :manualTests:runXtc --module=EchoTest --info: the worker JVM's command line is
java -ea --enable-native-access=ALL-UNNAMED -showversion --enable-preview ..., and EchoTest gets its two arguments.
- ./gradlew :xdk:lib-json:testXtc --rerun passes, its JVM started with -ea --enable-native-access=ALL-UNNAMED.
- ./gradlew spotlessCheck passes and leaves the tree as committed.
lagergren
force-pushed
the
lagergren/runxtc-keeps-xtcrun-settings
branch
from
November 25, 2026 13:48
9fd4e3c to
ce5ecd9
Compare
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…at jvmArgs holds only the build script's Since master PR #804 (the commit before this one), a launcher's jvmArgs hold only the build script's arguments; -ea (enableAssertions) and the plugin's own options, such as --enable-native-access=ALL-UNNAMED, go to the launched JVM apart from them. The language server's Gradle model exported jvmArgs as the JVM options of embedded runs, so they would have run without -ea and the plugin's options, where runXtc runs with them. The model now exports what the launched JVM gets, XtcLauncherDefaults.allJvmArgs of enableAssertions and jvmArgs, read as defensively as the rest: enableAssertions that cannot be read is named in problems and taken as the build's default; jvmArgs that cannot be read are left out, as before. Validated: RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test :plugin:javadoc --rerun, 85 tests, 0 failures, 0 skipped, from fresh JUnit XML; XtcLspModelTest's run and test settings are the launched JVM's arguments, -ea and the plugin's options before the extension's jvmArgs; spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…at jvmArgs holds only the build script's Since master PR #804 (the commit before this one), a launcher's jvmArgs hold only the build script's arguments; -ea (enableAssertions) and the plugin's own options, such as --enable-native-access=ALL-UNNAMED, go to the launched JVM apart from them. The language server's Gradle model exported jvmArgs as the JVM options of embedded runs, so they would have run without -ea and the plugin's options, where runXtc runs with them. The model now exports what the launched JVM gets, XtcLauncherDefaults.allJvmArgs of enableAssertions and jvmArgs, read as defensively as the rest: enableAssertions that cannot be read is named in problems and taken as the build's default; jvmArgs that cannot be read are left out, as before. Validated: RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test :plugin:javadoc --rerun, 85 tests, 0 failures, 0 skipped, from fresh JUnit XML; XtcLspModelTest's run and test settings are the launched JVM's arguments, -ea and the plugin's options before the extension's jvmArgs; spotlessCheck passes.
…ion's
A run or test task that names modules (moduleName, moduleNames, module { }) runs those instead of xtcRun's or
xtcTest's, and one that names none runs the extension's, as #651 made them, while a task's jvmArgs add to its
extension's. The README said neither; it now says so beside the runtime configuration, with what adds and what
replaces within the extension or a task.
Validated: ./gradlew spotlessCheck passes; documentation only.
…longer exist
The README's examples and descriptions still named a DSL and classes that the plugin no longer has, so its
configuration examples didn't compile. They now name what exists:
- fork and detach, and fork=false as the in-process default: executionMode, ATTACHED (a forked JVM) by default,
DIRECT (the Gradle daemon), DETACHED; in the basic setup, the compile, run, launcher, performance and
troubleshooting sections, and the debugging tips.
- xtcRun's module.set, method.set and programArgs: moduleName(...) and module { moduleName, methodName,
moduleArgs }; xtcTest's module.set: moduleName(...). XtcRunExtension: XtcRuntimeExtension.
- JavaClasspathLauncher: the execution strategies of org.xtclang.plugin.launchers.
- Programmatic API Access, which described direct calls without reflection through
XtcJavaToolsRuntime.withJavaTools and ensureJavaToolsInClasspath: the runtime bridge, compiled against javatools,
that DirectRuntimeBuildService loads into an isolated classloader and calls by reflection.
- src/main/xtc: src/main/x. XtcDisassembleTask, which no longer exists, is gone from the task list.
- The error texts "XTC Compilation Failed (exit code 1)" and "Duplicate module on path": the plugin's
"Compilation failed with exit code: 1" and the compiler's "Duplicate module name".
- CLAUDE.md as the source of the newline rule: AGENTS.md.
Validated: the new examples, put temporarily into manualTests' build script behind a property that is never set,
compile (./gradlew :manualTests:help, exit 0), and the old ones fail it (Unresolved reference 'fork', module(...)
expected); a search finds none of the old names left; ./gradlew spotlessCheck passes.
lagergren
force-pushed
the
lagergren/runxtc-keeps-xtcrun-settings
branch
from
November 25, 2026 14:10
0a4a5d4 to
354c1ea
Compare
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…he 29-unit map it replaces squash-693.md planned #693's first 397 commits (2026-11-23); the 2026-11-25 rebase gave them new hashes and 77 commits came after. A second plan, the 29-unit map in pr-roadmap.md with its per-commit table, was made that day without it. squash-693.md is now the plan: - commits 1-397 keep their numbers, topics, groups and PRs, with the rebase's hashes; - 398-474 are placed by the plan's rules: each in a topic and a group (17 new groups, the rest join existing ones), divided at lang/ into its topic's xvm and lang PR, 28 of them listed as mixed commits to divide by path; 459 (#802) and 467, 471, 473, 474 (#804) are already open on master and leave #693 when those merge; - the PR and topic tables, each topic's counts and added lines, and the appendix include them; - the 29-unit map's review notes that the plan lacked (0.5.0 as the boundary of X1-X3's breaking API, X1 as one PR, the stale compiler snapshot branches, X4's debugger assembled by path, X5's maintainer go-ahead, L6 on 0.30.1 with tagged workarounds) are its new Notes for review. pr-roadmap.md's map section now points to squash-693.md, and errs-693-pr-map-2026-11-25.tsv is gone; the rebase's old and new positions stay in errs-693-rebase-2026-11-25.tsv. The roadmap's open-PR line names the current positions: #802 is commit 459, #804 commits 467, 471, 473 and 474. Checked: the appendix lists exactly #693's 474 commits at ab5521d, in order, each with an xvm or lang PR; every commit is in exactly one topic group but the 60 the plan keeps alone, as before; no pre-rebase hash is left; every table row has its table's column count; nothing else linked the removed table.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…at jvmArgs holds only the build script's Since master PR #804 (the commit before this one), a launcher's jvmArgs hold only the build script's arguments; -ea (enableAssertions) and the plugin's own options, such as --enable-native-access=ALL-UNNAMED, go to the launched JVM apart from them. The language server's Gradle model exported jvmArgs as the JVM options of embedded runs, so they would have run without -ea and the plugin's options, where runXtc runs with them. The model now exports what the launched JVM gets, XtcLauncherDefaults.allJvmArgs of enableAssertions and jvmArgs, read as defensively as the rest: enableAssertions that cannot be read is named in problems and taken as the build's default; jvmArgs that cannot be read are left out, as before. Validated: RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test :plugin:javadoc --rerun, 85 tests, 0 failures, 0 skipped, from fresh JUnit XML; XtcLspModelTest's run and test settings are the launched JVM's arguments, -ea and the plugin's options before the extension's jvmArgs; spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…dle run settings work Docs only: jvmArgs(...) on xtcRun or xtcTest now adds to the plugin's default JVM options, and runXtc --module keeps the configured module's method and arguments; both fixed in #804 and mirrored to this branch in the commit before.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
doc/errs/errs-693-pr-map-2026-11-25.tsv gives every commit of #693 (49b5f8a, 468 commits on master 535e80f) its position, subject, the layers its paths touch, a proposed PR and notes. pr-roadmap.md's new top section, "#693 commit -> PR map - 2026-11-25", gives the units in merge order with their commits, files, lines, test share, dependencies and status, what each holds and what review should watch, the 51 commits that need splitting, the steps to squash or leave out, and what is not for master. Nothing after 2026-10-16 had been mapped before. How the units were decided: what master's own code must accept comes first, the javatools compiler, runtime, debugger and embedding API (units 1-9; 2-4 are the earlier #685-successor, semantic facts and partial analysis units, the breaking API of 0.5.0), then the Gradle plugin's pieces as small PRs (10-14), the lang build (15), and the product last (16-29): commit 8, the whole product in one commit, split by component, later commits by feature area, tours and docs at the end. A commit's files go to units by path; one whose files fall in several units is a split, proposed for the unit of its main part. Counts: 29 units plus "not for master" (41, 68, 118, 405). Already on master: 405 (#800). Open: 460 (#802) and 468 (#804), each its own unit. doc/errs/errs-693-sync-2026-11-25.tsv records tonight's mirror, positions 462-468, and the errs-only records 93c065e, db87170 and 60c4dcc that stayed on errs. The header line, "Current review branches and merge order" and "Existing PRs" now give the 2026-11-25 state: the 2026-10-09 branches are stale, #685's contracts come first, and the PRs from gh. Checked by script: the map has 468 rows in #693's order, each commit once, its hashes and subjects equal to git log's; every commit has exactly one proposed PR, and the units' commit lists cover all 468; files and lines per unit are summed from git log --numstat; supersede notes come from deleted files traced to the commits that added them; the sync record's positions and subjects match #693 and its errs commits exist. Limits: no unit was built or tested on its own, and the line counts are churn over each unit's commits, not its net diff.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…ds all of #693 errs is the staging area that #693 mirrors, but 60 code files had come to differ between them: - Changes made on #693 that never reached errs: the preview publishing of the IntelliJ plugin and VS Code extension from a pull request (lang/scripts/publish-preview-plugins.sh, #693's d0e6b77 and 77ce233 of 2026-11-17); the Structure view asked again where LSP4IJ before 0.30.0 keeps an edit's empty symbols (StructureViews.kt, 2c0f8a3 of 2026-11-18); and ErrorListTest's cases for diagnostics that only look like duplicates, into which #693's distillation (2140538) folded errs' ErrorDeduplicationTest. - errs-only edits kept on top of #693 since the sync of 2026-10-15 (a500b09): unnamed catch variables and final constants and fields in javatools, the diagnostic-origin proof of concept (ErrorListener.Origin), Javadoc and comment wording, and comment references to doc/errs. They are dropped, as errs is an unmerged branch and #693 has its own form of each. errs now has #693's code exactly: git diff against origin/errs/full-testable-lsp-20261009 outside doc/errs, the Markdown files and lang/doc/plans, the errs-only tracking and plan documents, is empty. Those documents are unchanged. Validated: the comparison above; #693's last CI at f349d63 passed with this code but tonight's six mirrored commits and #804's, which errs already has. Compile and the affected test classes run after this commit.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…at jvmArgs holds only the build script's Since master PR #804 (the commit before this one), a launcher's jvmArgs hold only the build script's arguments; -ea (enableAssertions) and the plugin's own options, such as --enable-native-access=ALL-UNNAMED, go to the launched JVM apart from them. The language server's Gradle model exported jvmArgs as the JVM options of embedded runs, so they would have run without -ea and the plugin's options, where runXtc runs with them. The model now exports what the launched JVM gets, XtcLauncherDefaults.allJvmArgs of enableAssertions and jvmArgs, read as defensively as the rest: enableAssertions that cannot be read is named in problems and taken as the build's default; jvmArgs that cannot be read are left out, as before. Validated: RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test :plugin:javadoc --rerun, 85 tests, 0 failures, 0 skipped, from fresh JUnit XML; XtcLspModelTest's run and test settings are the launched JVM's arguments, -ea and the plugin's options before the extension's jvmArgs; spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…he 29-unit map it replaces squash-693.md planned #693's first 397 commits (2026-11-23); the 2026-11-25 rebase gave them new hashes and 77 commits came after. A second plan, the 29-unit map in pr-roadmap.md with its per-commit table, was made that day without it. squash-693.md is now the plan: - commits 1-397 keep their numbers, topics, groups and PRs, with the rebase's hashes; - 398-474 are placed by the plan's rules: each in a topic and a group (17 new groups, the rest join existing ones), divided at lang/ into its topic's xvm and lang PR, 28 of them listed as mixed commits to divide by path; 459 (#802) and 467, 471, 473, 474 (#804) are already open on master and leave #693 when those merge; - the PR and topic tables, each topic's counts and added lines, and the appendix include them; - the 29-unit map's review notes that the plan lacked (0.5.0 as the boundary of X1-X3's breaking API, X1 as one PR, the stale compiler snapshot branches, X4's debugger assembled by path, X5's maintainer go-ahead, L6 on 0.30.1 with tagged workarounds) are its new Notes for review. pr-roadmap.md's map section now points to squash-693.md, and errs-693-pr-map-2026-11-25.tsv is gone; the rebase's old and new positions stay in errs-693-rebase-2026-11-25.tsv. The roadmap's open-PR line names the current positions: #802 is commit 459, #804 commits 467, 471, 473 and 474. Checked: the appendix lists exactly #693's 474 commits at ab5521d, in order, each with an xvm or lang PR; every commit is in exactly one topic group but the 60 the plan keeps alone, as before; no pre-rebase hash is left; every table row has its table's column count; nothing else linked the removed table.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
… its four commits, and place commit 480 #804 merged to master as 2e26663. #693 was rebased onto it without #804's four commits (467, 471, 473 and 474 then), which gave every commit a new hash and moved the sixteen after 467 up. The plan follows: - every commit's number and hash, in the groups, the findings, the mixed commits and the appendix; - #804's group and its four rows are gone, and P9's counts and lines no longer hold them (328 lines); - the notes that name commits after 467 (the model export, the Javadoc fix) take their new numbers; - the header and the PR note say that #804 merged and #802 is still open; - commit 480, the user guide's boxed screenshots, joins the user guide group. pr-roadmap.md names the new head and master and says #804 merged. Checked: the appendix lists exactly #693's 480 commits on 2e26663, in order, each with a PR; every commit is in one group but the plan's stand-alone ones; no hash from before the rebase is left; every table row has its table's column count.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…radle user home's caches, which CI keeps The test's nested build applies kotlin-dsl in its buildSrc, which it downloaded from the Gradle plugin portal and Maven Central into TestKit's default home, a temporary directory that every CI run starts without. On 2026-11-25 it failed CI three times when Maven Central refused a download (429 Too Many Requests, and Could not GET), for #804 and twice for #693, while the rest of the build passed. The plugin's test JVMs now get -Dxtc.testkit.dir, the Gradle user home's caches/xtc-testkit, as an internal input, so where it is changes no task's cache key; the test passes it to GradleRunner.withTestKitDir. The home outlives checkouts and runs, so kotlin-dsl is downloaded once per machine, and CI's setup-gradle, which saves the caches directory from master runs for every other run to restore, keeps it. Only its downloads are worth keeping: the setup-xvm-project action leaves out what Gradle generates there again on every run (caches/<version>, about 520 MB), its daemons' directory and its native files, so the saved cache grows by its modules-2, about 110 MB. Checked: - RUN_INTEGRATION_TESTS=true ./gradlew :plugin:test --tests ProjectVersionWarningTest: 3 tests, 0 failures, with ~/.gradle/caches/xtc-testkit holding kotlin-dsl's artifacts after it, kotlin-gradle-plugins-bom 2.4.21 among them, the one CI could not download; - with --configuration-cache, the second run reuses the entry; - RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test --rerun: 85 tests, 0 failures, 0 skipped; spotlessCheck passes; the action's YAML parses with the new excludes. The CI side takes effect once this is on master, whose runs save the cache.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…radle user home's caches, which CI keeps The test's nested build applies kotlin-dsl in its buildSrc, which it downloaded from the Gradle plugin portal and Maven Central into TestKit's default home, a temporary directory that every CI run starts without. On 2026-11-25 it failed CI three times when Maven Central refused a download (429 Too Many Requests, and Could not GET), for #804 and twice for #693, while the rest of the build passed. The plugin's test JVMs now get -Dxtc.testkit.dir, the Gradle user home's caches/xtc-testkit, as an internal input, so where it is changes no task's cache key; the test passes it to GradleRunner.withTestKitDir. The home outlives checkouts and runs, so kotlin-dsl is downloaded once per machine, and CI's setup-gradle, which saves the caches directory from master runs for every other run to restore, keeps it. Only its downloads are worth keeping: the setup-xvm-project action leaves out what Gradle generates there again on every run (caches/<version>, about 520 MB), its daemons' directory and its native files, so the saved cache grows by its modules-2, about 110 MB. Checked: - RUN_INTEGRATION_TESTS=true ./gradlew :plugin:test --tests ProjectVersionWarningTest: 3 tests, 0 failures, with ~/.gradle/caches/xtc-testkit holding kotlin-dsl's artifacts after it, kotlin-gradle-plugins-bom 2.4.21 among them, the one CI could not download; - with --configuration-cache, the second run reuses the entry; - RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test --rerun: 85 tests, 0 failures, 0 skipped; spotlessCheck passes; the action's YAML parses with the new excludes. The CI side takes effect once this is on master, whose runs save the cache.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…at jvmArgs holds only the build script's Since master PR #804 (the commit before this one), a launcher's jvmArgs hold only the build script's arguments; -ea (enableAssertions) and the plugin's own options, such as --enable-native-access=ALL-UNNAMED, go to the launched JVM apart from them. The language server's Gradle model exported jvmArgs as the JVM options of embedded runs, so they would have run without -ea and the plugin's options, where runXtc runs with them. The model now exports what the launched JVM gets, XtcLauncherDefaults.allJvmArgs of enableAssertions and jvmArgs, read as defensively as the rest: enableAssertions that cannot be read is named in problems and taken as the build's default; jvmArgs that cannot be read are left out, as before. Validated: RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test :plugin:javadoc --rerun, 85 tests, 0 failures, 0 skipped, from fresh JUnit XML; XtcLspModelTest's run and test settings are the launched JVM's arguments, -ea and the plugin's options before the extension's jvmArgs; spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…at jvmArgs holds only the build script's Since master PR #804 (the commit before this one), a launcher's jvmArgs hold only the build script's arguments; -ea (enableAssertions) and the plugin's own options, such as --enable-native-access=ALL-UNNAMED, go to the launched JVM apart from them. The language server's Gradle model exported jvmArgs as the JVM options of embedded runs, so they would have run without -ea and the plugin's options, where runXtc runs with them. The model now exports what the launched JVM gets, XtcLauncherDefaults.allJvmArgs of enableAssertions and jvmArgs, read as defensively as the rest: enableAssertions that cannot be read is named in problems and taken as the build's default; jvmArgs that cannot be read are left out, as before. Validated: RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test :plugin:javadoc --rerun, 85 tests, 0 failures, 0 skipped, from fresh JUnit XML; XtcLspModelTest's run and test settings are the launched JVM's arguments, -ea and the plugin's options before the extension's jvmArgs; spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…he 29-unit map it replaces squash-693.md planned #693's first 397 commits (2026-11-23); the 2026-11-25 rebase gave them new hashes and 77 commits came after. A second plan, the 29-unit map in pr-roadmap.md with its per-commit table, was made that day without it. squash-693.md is now the plan: - commits 1-397 keep their numbers, topics, groups and PRs, with the rebase's hashes; - 398-474 are placed by the plan's rules: each in a topic and a group (17 new groups, the rest join existing ones), divided at lang/ into its topic's xvm and lang PR, 28 of them listed as mixed commits to divide by path; 459 (#802) and 467, 471, 473, 474 (#804) are already open on master and leave #693 when those merge; - the PR and topic tables, each topic's counts and added lines, and the appendix include them; - the 29-unit map's review notes that the plan lacked (0.5.0 as the boundary of X1-X3's breaking API, X1 as one PR, the stale compiler snapshot branches, X4's debugger assembled by path, X5's maintainer go-ahead, L6 on 0.30.1 with tagged workarounds) are its new Notes for review. pr-roadmap.md's map section now points to squash-693.md, and errs-693-pr-map-2026-11-25.tsv is gone; the rebase's old and new positions stay in errs-693-rebase-2026-11-25.tsv. The roadmap's open-PR line names the current positions: #802 is commit 459, #804 commits 467, 471, 473 and 474. Checked: the appendix lists exactly #693's 474 commits at ab5521d, in order, each with an xvm or lang PR; every commit is in exactly one topic group but the 60 the plan keeps alone, as before; no pre-rebase hash is left; every table row has its table's column count; nothing else linked the removed table.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
… its four commits, and place commit 480 #804 merged to master as 2e26663. #693 was rebased onto it without #804's four commits (467, 471, 473 and 474 then), which gave every commit a new hash and moved the sixteen after 467 up. The plan follows: - every commit's number and hash, in the groups, the findings, the mixed commits and the appendix; - #804's group and its four rows are gone, and P9's counts and lines no longer hold them (328 lines); - the notes that name commits after 467 (the model export, the Javadoc fix) take their new numbers; - the header and the PR note say that #804 merged and #802 is still open; - commit 480, the user guide's boxed screenshots, joins the user guide group. pr-roadmap.md names the new head and master and says #804 merged. Checked: the appendix lists exactly #693's 480 commits on 2e26663, in order, each with a PR; every commit is in one group but the plan's stand-alone ones; no hash from before the rebase is left; every table row has its table's column count.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…radle user home's caches, which CI keeps The test's nested build applies kotlin-dsl in its buildSrc, which it downloaded from the Gradle plugin portal and Maven Central into TestKit's default home, a temporary directory that every CI run starts without. On 2026-11-25 it failed CI three times when Maven Central refused a download (429 Too Many Requests, and Could not GET), for #804 and twice for #693, while the rest of the build passed. The plugin's test JVMs now get -Dxtc.testkit.dir, the Gradle user home's caches/xtc-testkit, as an internal input, so where it is changes no task's cache key; the test passes it to GradleRunner.withTestKitDir. The home outlives checkouts and runs, so kotlin-dsl is downloaded once per machine, and CI's setup-gradle, which saves the caches directory from master runs for every other run to restore, keeps it. Only its downloads are worth keeping: the setup-xvm-project action leaves out what Gradle generates there again on every run (caches/<version>, about 520 MB), its daemons' directory and its native files, so the saved cache grows by its modules-2, about 110 MB. Checked: - RUN_INTEGRATION_TESTS=true ./gradlew :plugin:test --tests ProjectVersionWarningTest: 3 tests, 0 failures, with ~/.gradle/caches/xtc-testkit holding kotlin-dsl's artifacts after it, kotlin-gradle-plugins-bom 2.4.21 among them, the one CI could not download; - with --configuration-cache, the second run reuses the entry; - RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test --rerun: 85 tests, 0 failures, 0 skipped; spotlessCheck passes; the action's YAML parses with the new excludes. The CI side takes effect once this is on master, whose runs save the cache.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…at jvmArgs holds only the build script's Since master PR #804 (the commit before this one), a launcher's jvmArgs hold only the build script's arguments; -ea (enableAssertions) and the plugin's own options, such as --enable-native-access=ALL-UNNAMED, go to the launched JVM apart from them. The language server's Gradle model exported jvmArgs as the JVM options of embedded runs, so they would have run without -ea and the plugin's options, where runXtc runs with them. The model now exports what the launched JVM gets, XtcLauncherDefaults.allJvmArgs of enableAssertions and jvmArgs, read as defensively as the rest: enableAssertions that cannot be read is named in problems and taken as the build's default; jvmArgs that cannot be read are left out, as before. Validated: RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test :plugin:javadoc --rerun, 85 tests, 0 failures, 0 skipped, from fresh JUnit XML; XtcLspModelTest's run and test settings are the launched JVM's arguments, -ea and the plugin's options before the extension's jvmArgs; spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…dle run settings work Docs only: jvmArgs(...) on xtcRun or xtcTest now adds to the plugin's default JVM options, and runXtc --module keeps the configured module's method and arguments; both fixed in #804 and mirrored to this branch in the commit before.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
doc/errs/errs-693-pr-map-2026-11-25.tsv gives every commit of #693 (49b5f8a, 468 commits on master 535e80f) its position, subject, the layers its paths touch, a proposed PR and notes. pr-roadmap.md's new top section, "#693 commit -> PR map - 2026-11-25", gives the units in merge order with their commits, files, lines, test share, dependencies and status, what each holds and what review should watch, the 51 commits that need splitting, the steps to squash or leave out, and what is not for master. Nothing after 2026-10-16 had been mapped before. How the units were decided: what master's own code must accept comes first, the javatools compiler, runtime, debugger and embedding API (units 1-9; 2-4 are the earlier #685-successor, semantic facts and partial analysis units, the breaking API of 0.5.0), then the Gradle plugin's pieces as small PRs (10-14), the lang build (15), and the product last (16-29): commit 8, the whole product in one commit, split by component, later commits by feature area, tours and docs at the end. A commit's files go to units by path; one whose files fall in several units is a split, proposed for the unit of its main part. Counts: 29 units plus "not for master" (41, 68, 118, 405). Already on master: 405 (#800). Open: 460 (#802) and 468 (#804), each its own unit. doc/errs/errs-693-sync-2026-11-25.tsv records tonight's mirror, positions 462-468, and the errs-only records 93c065e, db87170 and 60c4dcc that stayed on errs. The header line, "Current review branches and merge order" and "Existing PRs" now give the 2026-11-25 state: the 2026-10-09 branches are stale, #685's contracts come first, and the PRs from gh. Checked by script: the map has 468 rows in #693's order, each commit once, its hashes and subjects equal to git log's; every commit has exactly one proposed PR, and the units' commit lists cover all 468; files and lines per unit are summed from git log --numstat; supersede notes come from deleted files traced to the commits that added them; the sync record's positions and subjects match #693 and its errs commits exist. Limits: no unit was built or tested on its own, and the line counts are churn over each unit's commits, not its net diff.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…ds all of #693 errs is the staging area that #693 mirrors, but 60 code files had come to differ between them: - Changes made on #693 that never reached errs: the preview publishing of the IntelliJ plugin and VS Code extension from a pull request (lang/scripts/publish-preview-plugins.sh, #693's d0e6b77 and 77ce233 of 2026-11-17); the Structure view asked again where LSP4IJ before 0.30.0 keeps an edit's empty symbols (StructureViews.kt, 2c0f8a3 of 2026-11-18); and ErrorListTest's cases for diagnostics that only look like duplicates, into which #693's distillation (2140538) folded errs' ErrorDeduplicationTest. - errs-only edits kept on top of #693 since the sync of 2026-10-15 (a500b09): unnamed catch variables and final constants and fields in javatools, the diagnostic-origin proof of concept (ErrorListener.Origin), Javadoc and comment wording, and comment references to doc/errs. They are dropped, as errs is an unmerged branch and #693 has its own form of each. errs now has #693's code exactly: git diff against origin/errs/full-testable-lsp-20261009 outside doc/errs, the Markdown files and lang/doc/plans, the errs-only tracking and plan documents, is empty. Those documents are unchanged. Validated: the comparison above; #693's last CI at f349d63 passed with this code but tonight's six mirrored commits and #804's, which errs already has. Compile and the affected test classes run after this commit.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…at jvmArgs holds only the build script's Since master PR #804 (the commit before this one), a launcher's jvmArgs hold only the build script's arguments; -ea (enableAssertions) and the plugin's own options, such as --enable-native-access=ALL-UNNAMED, go to the launched JVM apart from them. The language server's Gradle model exported jvmArgs as the JVM options of embedded runs, so they would have run without -ea and the plugin's options, where runXtc runs with them. The model now exports what the launched JVM gets, XtcLauncherDefaults.allJvmArgs of enableAssertions and jvmArgs, read as defensively as the rest: enableAssertions that cannot be read is named in problems and taken as the build's default; jvmArgs that cannot be read are left out, as before. Validated: RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test :plugin:javadoc --rerun, 85 tests, 0 failures, 0 skipped, from fresh JUnit XML; XtcLspModelTest's run and test settings are the launched JVM's arguments, -ea and the plugin's options before the extension's jvmArgs; spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…he 29-unit map it replaces squash-693.md planned #693's first 397 commits (2026-11-23); the 2026-11-25 rebase gave them new hashes and 77 commits came after. A second plan, the 29-unit map in pr-roadmap.md with its per-commit table, was made that day without it. squash-693.md is now the plan: - commits 1-397 keep their numbers, topics, groups and PRs, with the rebase's hashes; - 398-474 are placed by the plan's rules: each in a topic and a group (17 new groups, the rest join existing ones), divided at lang/ into its topic's xvm and lang PR, 28 of them listed as mixed commits to divide by path; 459 (#802) and 467, 471, 473, 474 (#804) are already open on master and leave #693 when those merge; - the PR and topic tables, each topic's counts and added lines, and the appendix include them; - the 29-unit map's review notes that the plan lacked (0.5.0 as the boundary of X1-X3's breaking API, X1 as one PR, the stale compiler snapshot branches, X4's debugger assembled by path, X5's maintainer go-ahead, L6 on 0.30.1 with tagged workarounds) are its new Notes for review. pr-roadmap.md's map section now points to squash-693.md, and errs-693-pr-map-2026-11-25.tsv is gone; the rebase's old and new positions stay in errs-693-rebase-2026-11-25.tsv. The roadmap's open-PR line names the current positions: #802 is commit 459, #804 commits 467, 471, 473 and 474. Checked: the appendix lists exactly #693's 474 commits at ab5521d, in order, each with an xvm or lang PR; every commit is in exactly one topic group but the 60 the plan keeps alone, as before; no pre-rebase hash is left; every table row has its table's column count; nothing else linked the removed table.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
… its four commits, and place commit 480 #804 merged to master as 2e26663. #693 was rebased onto it without #804's four commits (467, 471, 473 and 474 then), which gave every commit a new hash and moved the sixteen after 467 up. The plan follows: - every commit's number and hash, in the groups, the findings, the mixed commits and the appendix; - #804's group and its four rows are gone, and P9's counts and lines no longer hold them (328 lines); - the notes that name commits after 467 (the model export, the Javadoc fix) take their new numbers; - the header and the PR note say that #804 merged and #802 is still open; - commit 480, the user guide's boxed screenshots, joins the user guide group. pr-roadmap.md names the new head and master and says #804 merged. Checked: the appendix lists exactly #693's 480 commits on 2e26663, in order, each with a PR; every commit is in one group but the plan's stand-alone ones; no hash from before the rebase is left; every table row has its table's column count.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…at jvmArgs holds only the build script's Since master PR #804 (the commit before this one), a launcher's jvmArgs hold only the build script's arguments; -ea (enableAssertions) and the plugin's own options, such as --enable-native-access=ALL-UNNAMED, go to the launched JVM apart from them. The language server's Gradle model exported jvmArgs as the JVM options of embedded runs, so they would have run without -ea and the plugin's options, where runXtc runs with them. The model now exports what the launched JVM gets, XtcLauncherDefaults.allJvmArgs of enableAssertions and jvmArgs, read as defensively as the rest: enableAssertions that cannot be read is named in problems and taken as the build's default; jvmArgs that cannot be read are left out, as before. Validated: RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test :plugin:javadoc --rerun, 85 tests, 0 failures, 0 skipped, from fresh JUnit XML; XtcLspModelTest's run and test settings are the launched JVM's arguments, -ea and the plugin's options before the extension's jvmArgs; spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…dle run settings work Docs only: jvmArgs(...) on xtcRun or xtcTest now adds to the plugin's default JVM options, and runXtc --module keeps the configured module's method and arguments; both fixed in #804 and mirrored to this branch in the commit before.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
doc/errs/errs-693-pr-map-2026-11-25.tsv gives every commit of #693 (49b5f8a, 468 commits on master 535e80f) its position, subject, the layers its paths touch, a proposed PR and notes. pr-roadmap.md's new top section, "#693 commit -> PR map - 2026-11-25", gives the units in merge order with their commits, files, lines, test share, dependencies and status, what each holds and what review should watch, the 51 commits that need splitting, the steps to squash or leave out, and what is not for master. Nothing after 2026-10-16 had been mapped before. How the units were decided: what master's own code must accept comes first, the javatools compiler, runtime, debugger and embedding API (units 1-9; 2-4 are the earlier #685-successor, semantic facts and partial analysis units, the breaking API of 0.5.0), then the Gradle plugin's pieces as small PRs (10-14), the lang build (15), and the product last (16-29): commit 8, the whole product in one commit, split by component, later commits by feature area, tours and docs at the end. A commit's files go to units by path; one whose files fall in several units is a split, proposed for the unit of its main part. Counts: 29 units plus "not for master" (41, 68, 118, 405). Already on master: 405 (#800). Open: 460 (#802) and 468 (#804), each its own unit. doc/errs/errs-693-sync-2026-11-25.tsv records tonight's mirror, positions 462-468, and the errs-only records 93c065e, db87170 and 60c4dcc that stayed on errs. The header line, "Current review branches and merge order" and "Existing PRs" now give the 2026-11-25 state: the 2026-10-09 branches are stale, #685's contracts come first, and the PRs from gh. Checked by script: the map has 468 rows in #693's order, each commit once, its hashes and subjects equal to git log's; every commit has exactly one proposed PR, and the units' commit lists cover all 468; files and lines per unit are summed from git log --numstat; supersede notes come from deleted files traced to the commits that added them; the sync record's positions and subjects match #693 and its errs commits exist. Limits: no unit was built or tested on its own, and the line counts are churn over each unit's commits, not its net diff.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…ds all of #693 errs is the staging area that #693 mirrors, but 60 code files had come to differ between them: - Changes made on #693 that never reached errs: the preview publishing of the IntelliJ plugin and VS Code extension from a pull request (lang/scripts/publish-preview-plugins.sh, #693's d0e6b77 and 77ce233 of 2026-11-17); the Structure view asked again where LSP4IJ before 0.30.0 keeps an edit's empty symbols (StructureViews.kt, 2c0f8a3 of 2026-11-18); and ErrorListTest's cases for diagnostics that only look like duplicates, into which #693's distillation (2140538) folded errs' ErrorDeduplicationTest. - errs-only edits kept on top of #693 since the sync of 2026-10-15 (a500b09): unnamed catch variables and final constants and fields in javatools, the diagnostic-origin proof of concept (ErrorListener.Origin), Javadoc and comment wording, and comment references to doc/errs. They are dropped, as errs is an unmerged branch and #693 has its own form of each. errs now has #693's code exactly: git diff against origin/errs/full-testable-lsp-20261009 outside doc/errs, the Markdown files and lang/doc/plans, the errs-only tracking and plan documents, is empty. Those documents are unchanged. Validated: the comparison above; #693's last CI at f349d63 passed with this code but tonight's six mirrored commits and #804's, which errs already has. Compile and the affected test classes run after this commit.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…at jvmArgs holds only the build script's Since master PR #804 (the commit before this one), a launcher's jvmArgs hold only the build script's arguments; -ea (enableAssertions) and the plugin's own options, such as --enable-native-access=ALL-UNNAMED, go to the launched JVM apart from them. The language server's Gradle model exported jvmArgs as the JVM options of embedded runs, so they would have run without -ea and the plugin's options, where runXtc runs with them. The model now exports what the launched JVM gets, XtcLauncherDefaults.allJvmArgs of enableAssertions and jvmArgs, read as defensively as the rest: enableAssertions that cannot be read is named in problems and taken as the build's default; jvmArgs that cannot be read are left out, as before. Validated: RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test :plugin:javadoc --rerun, 85 tests, 0 failures, 0 skipped, from fresh JUnit XML; XtcLspModelTest's run and test settings are the launched JVM's arguments, -ea and the plugin's options before the extension's jvmArgs; spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…he 29-unit map it replaces squash-693.md planned #693's first 397 commits (2026-11-23); the 2026-11-25 rebase gave them new hashes and 77 commits came after. A second plan, the 29-unit map in pr-roadmap.md with its per-commit table, was made that day without it. squash-693.md is now the plan: - commits 1-397 keep their numbers, topics, groups and PRs, with the rebase's hashes; - 398-474 are placed by the plan's rules: each in a topic and a group (17 new groups, the rest join existing ones), divided at lang/ into its topic's xvm and lang PR, 28 of them listed as mixed commits to divide by path; 459 (#802) and 467, 471, 473, 474 (#804) are already open on master and leave #693 when those merge; - the PR and topic tables, each topic's counts and added lines, and the appendix include them; - the 29-unit map's review notes that the plan lacked (0.5.0 as the boundary of X1-X3's breaking API, X1 as one PR, the stale compiler snapshot branches, X4's debugger assembled by path, X5's maintainer go-ahead, L6 on 0.30.1 with tagged workarounds) are its new Notes for review. pr-roadmap.md's map section now points to squash-693.md, and errs-693-pr-map-2026-11-25.tsv is gone; the rebase's old and new positions stay in errs-693-rebase-2026-11-25.tsv. The roadmap's open-PR line names the current positions: #802 is commit 459, #804 commits 467, 471, 473 and 474. Checked: the appendix lists exactly #693's 474 commits at ab5521d, in order, each with an xvm or lang PR; every commit is in exactly one topic group but the 60 the plan keeps alone, as before; no pre-rebase hash is left; every table row has its table's column count; nothing else linked the removed table.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
… its four commits, and place commit 480 #804 merged to master as 2e26663. #693 was rebased onto it without #804's four commits (467, 471, 473 and 474 then), which gave every commit a new hash and moved the sixteen after 467 up. The plan follows: - every commit's number and hash, in the groups, the findings, the mixed commits and the appendix; - #804's group and its four rows are gone, and P9's counts and lines no longer hold them (328 lines); - the notes that name commits after 467 (the model export, the Javadoc fix) take their new numbers; - the header and the PR note say that #804 merged and #802 is still open; - commit 480, the user guide's boxed screenshots, joins the user guide group. pr-roadmap.md names the new head and master and says #804 merged. Checked: the appendix lists exactly #693's 480 commits on 2e26663, in order, each with a PR; every commit is in one group but the plan's stand-alone ones; no hash from before the rebase is left; every table row has its table's column count.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
…dle run settings work Docs only: jvmArgs(...) on xtcRun or xtcTest now adds to the plugin's default JVM options, and runXtc --module keeps the configured module's method and arguments; both fixed in #804 and mirrored to this branch in the commit before.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
doc/errs/errs-693-pr-map-2026-11-25.tsv gives every commit of #693 (49b5f8a, 468 commits on master 535e80f) its position, subject, the layers its paths touch, a proposed PR and notes. pr-roadmap.md's new top section, "#693 commit -> PR map - 2026-11-25", gives the units in merge order with their commits, files, lines, test share, dependencies and status, what each holds and what review should watch, the 51 commits that need splitting, the steps to squash or leave out, and what is not for master. Nothing after 2026-10-16 had been mapped before. How the units were decided: what master's own code must accept comes first, the javatools compiler, runtime, debugger and embedding API (units 1-9; 2-4 are the earlier #685-successor, semantic facts and partial analysis units, the breaking API of 0.5.0), then the Gradle plugin's pieces as small PRs (10-14), the lang build (15), and the product last (16-29): commit 8, the whole product in one commit, split by component, later commits by feature area, tours and docs at the end. A commit's files go to units by path; one whose files fall in several units is a split, proposed for the unit of its main part. Counts: 29 units plus "not for master" (41, 68, 118, 405). Already on master: 405 (#800). Open: 460 (#802) and 468 (#804), each its own unit. doc/errs/errs-693-sync-2026-11-25.tsv records tonight's mirror, positions 462-468, and the errs-only records 93c065e, db87170 and 60c4dcc that stayed on errs. The header line, "Current review branches and merge order" and "Existing PRs" now give the 2026-11-25 state: the 2026-10-09 branches are stale, #685's contracts come first, and the PRs from gh. Checked by script: the map has 468 rows in #693's order, each commit once, its hashes and subjects equal to git log's; every commit has exactly one proposed PR, and the units' commit lists cover all 468; files and lines per unit are summed from git log --numstat; supersede notes come from deleted files traced to the commits that added them; the sync record's positions and subjects match #693 and its errs commits exist. Limits: no unit was built or tested on its own, and the line counts are churn over each unit's commits, not its net diff.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
…ds all of #693 errs is the staging area that #693 mirrors, but 60 code files had come to differ between them: - Changes made on #693 that never reached errs: the preview publishing of the IntelliJ plugin and VS Code extension from a pull request (lang/scripts/publish-preview-plugins.sh, #693's d0e6b77 and 77ce233 of 2026-11-17); the Structure view asked again where LSP4IJ before 0.30.0 keeps an edit's empty symbols (StructureViews.kt, 2c0f8a3 of 2026-11-18); and ErrorListTest's cases for diagnostics that only look like duplicates, into which #693's distillation (2140538) folded errs' ErrorDeduplicationTest. - errs-only edits kept on top of #693 since the sync of 2026-10-15 (a500b09): unnamed catch variables and final constants and fields in javatools, the diagnostic-origin proof of concept (ErrorListener.Origin), Javadoc and comment wording, and comment references to doc/errs. They are dropped, as errs is an unmerged branch and #693 has its own form of each. errs now has #693's code exactly: git diff against origin/errs/full-testable-lsp-20261009 outside doc/errs, the Markdown files and lang/doc/plans, the errs-only tracking and plan documents, is empty. Those documents are unchanged. Validated: the comparison above; #693's last CI at f349d63 passed with this code but tonight's six mirrored commits and #804's, which errs already has. Compile and the affected test classes run after this commit.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
…he 29-unit map it replaces squash-693.md planned #693's first 397 commits (2026-11-23); the 2026-11-25 rebase gave them new hashes and 77 commits came after. A second plan, the 29-unit map in pr-roadmap.md with its per-commit table, was made that day without it. squash-693.md is now the plan: - commits 1-397 keep their numbers, topics, groups and PRs, with the rebase's hashes; - 398-474 are placed by the plan's rules: each in a topic and a group (17 new groups, the rest join existing ones), divided at lang/ into its topic's xvm and lang PR, 28 of them listed as mixed commits to divide by path; 459 (#802) and 467, 471, 473, 474 (#804) are already open on master and leave #693 when those merge; - the PR and topic tables, each topic's counts and added lines, and the appendix include them; - the 29-unit map's review notes that the plan lacked (0.5.0 as the boundary of X1-X3's breaking API, X1 as one PR, the stale compiler snapshot branches, X4's debugger assembled by path, X5's maintainer go-ahead, L6 on 0.30.1 with tagged workarounds) are its new Notes for review. pr-roadmap.md's map section now points to squash-693.md, and errs-693-pr-map-2026-11-25.tsv is gone; the rebase's old and new positions stay in errs-693-rebase-2026-11-25.tsv. The roadmap's open-PR line names the current positions: #802 is commit 459, #804 commits 467, 471, 473 and 474. Checked: the appendix lists exactly #693's 474 commits at ab5521d, in order, each with an xvm or lang PR; every commit is in exactly one topic group but the 60 the plan keeps alone, as before; no pre-rebase hash is left; every table row has its table's column count; nothing else linked the removed table.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
… its four commits, and place commit 480 #804 merged to master as 2e26663. #693 was rebased onto it without #804's four commits (467, 471, 473 and 474 then), which gave every commit a new hash and moved the sixteen after 467 up. The plan follows: - every commit's number and hash, in the groups, the findings, the mixed commits and the appendix; - #804's group and its four rows are gone, and P9's counts and lines no longer hold them (328 lines); - the notes that name commits after 467 (the model export, the Javadoc fix) take their new numbers; - the header and the PR note say that #804 merged and #802 is still open; - commit 480, the user guide's boxed screenshots, joins the user guide group. pr-roadmap.md names the new head and master and says #804 merged. Checked: the appendix lists exactly #693's 480 commits on 2e26663, in order, each with a PR; every commit is in one group but the plan's stand-alone ones; no hash from before the rebase is left; every table row has its table's column count.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
…dle run settings work Docs only: jvmArgs(...) on xtcRun or xtcTest now adds to the plugin's default JVM options, and runXtc --module keeps the configured module's method and arguments; both fixed in #804 and mirrored to this branch in the commit before.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
doc/errs/errs-693-pr-map-2026-11-25.tsv gives every commit of #693 (49b5f8a, 468 commits on master 535e80f) its position, subject, the layers its paths touch, a proposed PR and notes. pr-roadmap.md's new top section, "#693 commit -> PR map - 2026-11-25", gives the units in merge order with their commits, files, lines, test share, dependencies and status, what each holds and what review should watch, the 51 commits that need splitting, the steps to squash or leave out, and what is not for master. Nothing after 2026-10-16 had been mapped before. How the units were decided: what master's own code must accept comes first, the javatools compiler, runtime, debugger and embedding API (units 1-9; 2-4 are the earlier #685-successor, semantic facts and partial analysis units, the breaking API of 0.5.0), then the Gradle plugin's pieces as small PRs (10-14), the lang build (15), and the product last (16-29): commit 8, the whole product in one commit, split by component, later commits by feature area, tours and docs at the end. A commit's files go to units by path; one whose files fall in several units is a split, proposed for the unit of its main part. Counts: 29 units plus "not for master" (41, 68, 118, 405). Already on master: 405 (#800). Open: 460 (#802) and 468 (#804), each its own unit. doc/errs/errs-693-sync-2026-11-25.tsv records tonight's mirror, positions 462-468, and the errs-only records 93c065e, db87170 and 60c4dcc that stayed on errs. The header line, "Current review branches and merge order" and "Existing PRs" now give the 2026-11-25 state: the 2026-10-09 branches are stale, #685's contracts come first, and the PRs from gh. Checked by script: the map has 468 rows in #693's order, each commit once, its hashes and subjects equal to git log's; every commit has exactly one proposed PR, and the units' commit lists cover all 468; files and lines per unit are summed from git log --numstat; supersede notes come from deleted files traced to the commits that added them; the sync record's positions and subjects match #693 and its errs commits exist. Limits: no unit was built or tested on its own, and the line counts are churn over each unit's commits, not its net diff.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
…ds all of #693 errs is the staging area that #693 mirrors, but 60 code files had come to differ between them: - Changes made on #693 that never reached errs: the preview publishing of the IntelliJ plugin and VS Code extension from a pull request (lang/scripts/publish-preview-plugins.sh, #693's d0e6b77 and 77ce233 of 2026-11-17); the Structure view asked again where LSP4IJ before 0.30.0 keeps an edit's empty symbols (StructureViews.kt, 2c0f8a3 of 2026-11-18); and ErrorListTest's cases for diagnostics that only look like duplicates, into which #693's distillation (2140538) folded errs' ErrorDeduplicationTest. - errs-only edits kept on top of #693 since the sync of 2026-10-15 (a500b09): unnamed catch variables and final constants and fields in javatools, the diagnostic-origin proof of concept (ErrorListener.Origin), Javadoc and comment wording, and comment references to doc/errs. They are dropped, as errs is an unmerged branch and #693 has its own form of each. errs now has #693's code exactly: git diff against origin/errs/full-testable-lsp-20261009 outside doc/errs, the Markdown files and lang/doc/plans, the errs-only tracking and plan documents, is empty. Those documents are unchanged. Validated: the comparison above; #693's last CI at f349d63 passed with this code but tonight's six mirrored commits and #804's, which errs already has. Compile and the affected test classes run after this commit.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
…he 29-unit map it replaces squash-693.md planned #693's first 397 commits (2026-11-23); the 2026-11-25 rebase gave them new hashes and 77 commits came after. A second plan, the 29-unit map in pr-roadmap.md with its per-commit table, was made that day without it. squash-693.md is now the plan: - commits 1-397 keep their numbers, topics, groups and PRs, with the rebase's hashes; - 398-474 are placed by the plan's rules: each in a topic and a group (17 new groups, the rest join existing ones), divided at lang/ into its topic's xvm and lang PR, 28 of them listed as mixed commits to divide by path; 459 (#802) and 467, 471, 473, 474 (#804) are already open on master and leave #693 when those merge; - the PR and topic tables, each topic's counts and added lines, and the appendix include them; - the 29-unit map's review notes that the plan lacked (0.5.0 as the boundary of X1-X3's breaking API, X1 as one PR, the stale compiler snapshot branches, X4's debugger assembled by path, X5's maintainer go-ahead, L6 on 0.30.1 with tagged workarounds) are its new Notes for review. pr-roadmap.md's map section now points to squash-693.md, and errs-693-pr-map-2026-11-25.tsv is gone; the rebase's old and new positions stay in errs-693-rebase-2026-11-25.tsv. The roadmap's open-PR line names the current positions: #802 is commit 459, #804 commits 467, 471, 473 and 474. Checked: the appendix lists exactly #693's 474 commits at ab5521d, in order, each with an xvm or lang PR; every commit is in exactly one topic group but the 60 the plan keeps alone, as before; no pre-rebase hash is left; every table row has its table's column count; nothing else linked the removed table.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
… its four commits, and place commit 480 #804 merged to master as 2e26663. #693 was rebased onto it without #804's four commits (467, 471, 473 and 474 then), which gave every commit a new hash and moved the sixteen after 467 up. The plan follows: - every commit's number and hash, in the groups, the findings, the mixed commits and the appendix; - #804's group and its four rows are gone, and P9's counts and lines no longer hold them (328 lines); - the notes that name commits after 467 (the model export, the Javadoc fix) take their new numbers; - the header and the PR note say that #804 merged and #802 is still open; - commit 480, the user guide's boxed screenshots, joins the user guide group. pr-roadmap.md names the new head and master and says #804 merged. Checked: the appendix lists exactly #693's 480 commits on 2e26663, in order, each with a PR; every commit is in one group but the plan's stand-alone ones; no hash from before the rebase is left; every table row has its table's column count.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two ways in which
runXtcdidn't run what the build configures inxtcRun, fixed with the semantics that Gradle's ownJavaExecandTesttasks have.JVM arguments
jvmArgsheld the plugin's own JVM options (the build'sdefaultJvmArgs:-ea, and--enable-native-access=ALL-UNNAMED,--enable-previewwhere the XDK's build enables them) together with the build script's. That caused two problems:jvmArgs(...)replaced the defaults instead of adding to them. The defaults were the property's convention, and Gradle'saddAllon a property with only a convention starts from empty. SoxtcRun { jvmArgs("-Xss4m") }ran without-ea, although the DSL is documented as adding. manualTests runs without-eatoday.setJvmArgskept the defaults and replaced the rest; a task'ssetJvmArgsreplaced everything,-eaand the native access option included.They are now kept apart, as Gradle keeps them:
jvmArgs(...),jvmArg(...)jvmArgs, which starts empty; a task starts from its extension'ssetJvmArgs(...),jvmArgs.set(...)jvmArgsenableAssertions(new, as Gradle's)-ea; defaults to the build's choice, which enables themallJvmArgs-eaifenableAssertions, then the plugin's own options, thenjvmArgsA build that changes none of these launches with exactly the command line it had before. Replacing
jvmArgscan no longer drop-eaor an option the runtime needs;enableAssertions = falseturns assertions off.runXtc --module=XIt built a fresh module with only the name, so X's configured method and arguments were dropped. It now runs the module of that name that
xtcRunconfigures (the first, if named twice), alone, with its method and arguments.--methodand--argsstill override them, and a modulextcRundoesn't name runs with the defaults, as before.Modules on a task (documented, unchanged)
A task that names its own modules (
moduleName,moduleNames,module { }) runs those instead ofxtcRun's orxtcTest's, and one that names none runs the extension's. UnlikejvmArgs, a task's modules don't add to the extension's: a task's modules are a selection, and manualTests' nine tasks that name modules each want only their own. The README now says so.README corrections
The plugin README's configuration examples didn't compile: they used
fork/detach,xtcRun { module.set(...); method.set(...); programArgs(...) }andxtcTest { module.set(...) }, which no longer exist, and called in-process execution the default. They now useexecutionMode(ATTACHED, a forked JVM, by default;DIRECT;DETACHED),moduleName(...)andmodule { moduleName; methodName; moduleArgs }. The README also no longer namesJavaClasspathLauncher,XtcJavaToolsRuntime.withJavaTools/ensureJavaToolsInClasspath,XtcDisassembleTaskorsrc/main/xtc, or describes direct calls without reflection: Programmatic API Access now describes the runtime bridge thatDIRECTloads into an isolated classloader. Checked by compiling the new examples in manualTests' build script (the old ones fail there withUnresolved reference 'fork').Behavior changes
jvmArgs(...)now runs with-ea, as the DSL says it should.setJvmArgs(...)keeps the plugin's options and-ea; useenableAssertions = falseto turn assertions off.getJvmArgs()no longer contains the plugin's defaults;allJvmArgsis what the JVM gets.Testing
RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test :plugin:javadoc --rerun: 78 tests, 0 failures, 0 skipped; javadoc builds.XdkPluginBuildInfoTestreadsrunXtc'sallJvmArgs, which equal the build info'sdefaultJvmArgsexactly.XtcRunConfigurationTest:jvmArgsadd andsetJvmArgsreplaces on the extension and the task alike;-ea, the plugin's options, thenjvmArgs; replacingjvmArgskeeps-ea;enableAssertions = falseon the extension leaves it out of its tasks unless a task sets its own;--moduleruns the configured module alone with its method and arguments;--argsoverrides them; a modulextcRundoesn't name runs with the defaults../gradlew :manualTests:runXtc --module=EchoTest --info: the forked JVM's command line isjava -ea --enable-native-access=ALL-UNNAMED -showversion --enable-preview …, and EchoTest gets the two arguments manualTests'xtcRungives it, where before it got none../gradlew :xdk:lib-json:testXtc --rerunpasses; its JVM runs with-ea --enable-native-access=ALL-UNNAMED../gradlew spotlessCheckpasses.