Repository navigation
Conversation
…pository read failures What it adds. Every report of the compiler, the runtime's linker and the tools goes to an ErrorListener that the caller passes; none is invented on the way. Reporting is separated from the decision to stop: a listener records a diagnostic, and a separate abort policy (a budget, a cancellation) decides whether work goes on. Silence is explicit and carries its reason. Parser and validation listeners are scoped and restored on every exit, and the lexer stops at a source's end. Module repositories keep a candidate's read failure and its cause, cache an unchanged failure until the file's metadata changes, and let another candidate supply the module, so an unreadable file no longer hides behind a missing-module error. Why: an editor host compiles many attempts side by side and must own each attempt's diagnostics and cancel obsolete work without false errors. Start reading at org.xvm.asm.ErrorListener (the contract, its factories and tee), then ErrorList and Reporting, then the compiler's side: AstNode.log, StageMgr, Expression.testFitAsType, TypeConstant's cascade, and ValidationScope with its users (Statement, ForStatement, ForEachStatement, WhileStatement, TryStatement, NameResolver). For the read failures: ModuleRepository, FileRepository and ModuleCompiler. Skip or skim: 35 compiler.ast files are mechanical call-site changes, where a null or BLACKHOLE listener becomes silent(PROBE) or the caller's listener is passed on: AnnotationExpression, AnonInnerClass, ArrayAccessExpression, AsExpression, AssignmentStatement, CaseManager, CmpChainExpression, CmpExpression, Context, ElseExpression, ElvisExpression, InvocationExpression, LambdaExpression, ListExpression, MapExpression, MethodDeclarationStatement, NameExpression, NamedTypeExpression, NewExpression, NonBindingExpression, NotNullExpression, ParenthesizedExpression, RelOpExpression, ReturnStatement, SequentialAssignExpression, StatementBlock, StatementExpression, TemplateExpression, TernaryExpression, TraceExpression, TupleExpression, TypeCompositionStatement, TypeExpression, UnaryComplementExpression and UnaryMinusExpression. So are the small asm.constants changes (silent(PROBE) at each newable check). The tests (the ErrorListener*Test classes, ErrorListTest, ReportingTest, ValidationScopeTest, ParserAttemptTest, CompilerDiagnosticsTest, LspRoundTripTest, the Launcher tests) are regression tests of the contract; manualTests gains a duplicate-types check. Two of the plan's groups in one commit: the repository read failures change FileRepository, ModuleRepository, EmbeddingSupport and ModuleCompiler, which the listener contract changes too, and neither part compiles alone: the contract's Launcher calls ModuleRepository.of, and the read failures' EmbeddingSupport and ModuleCompiler report through the contract. Prerequisites: none; it applies to master. From #693's commits 1-4, 9, 11, 19, 41, 384, 386, 464 and 465 (their files outside lang/, except javatools' README, which is X1b). Where a later commit's change came first in #693 and changed the same lines, this commit takes its own change and leaves the later one to its commit: commit 9's change to EmbeddingSupport's embedded compiler goes with X2b, which adds that compiler; commit 19 adds the cause to ModuleInfo's read-failure report with this commit's qualified ErrorListener.NOWHERE. Commit 384's regression tests go with the commit whose change each tests. Validation: javatools' main and test sources compile with no warnings; the 22 test classes this commit adds or changes, ModuleInfoTest and the XDK's CompilerErrorsTest among them, read from their JUnit XML: 221 tests, 0 failures, 0 skipped.
…ADME What it adds. A section of javatools/README.md, "Compiler diagnostics and error listeners": why the old reporting model had to change, what changed and what replaced the removed behavior, why the compiler-backed language server needs it, its compatibility with ordinary compilation, a code tour (one diagnostic owner per compilation, report then decide, retention or callbacks, buffering speculative diagnostics, suppressing with a reason, migrating Java callers), the regression evidence, and scoped parser and validation reporting. X2c moves the section into LSP-COMPILER.md. Start reading at the code tour. Prerequisites: X1a, which it describes; as text it applies to master. From #693's commits 2-4 and 11 (their text in javatools' README). Commit 11's paragraph on X2b's section waits for that section, in X2c. Validation: javatools' main and test sources compile with no warnings; the commit changes javatools' README only.
) What it adds. TransientHasherReference keeps a spare reference per thread, which only that thread takes and gives back, so one thread's close() can no longer reset the key of another thread's map operation under it, on which a container's kill could hang. With it come javatools_utils' test fixtures Await and Watchdog, which find a test's hang by the CPU it stops using instead of by wall-clock time; the later commits' tests wait through them. Start reading at TransientHasherReference, then the testFixtures' Watchdog and Await. Skip or skim: the build files, which give javatools' tests the fixtures. Prerequisites: none; it applies to master, and on master alone it compiles and its tests pass. It is #811 as #693 carries it, #811's first two commits; #811's third (up to four spare keys per thread) is not in #693. When #811 merges, a rebase drops this commit and keeps master's TransientHasherReference and its test. From #693's commits 196 and 194 (#811's fixtures), their files outside lang/. Validation: javatools' main and test sources compile with no warnings; javatools_utils' WatchdogTest and TransientHasherReferenceTest, read from their JUnit XML: 6 tests, 0 failures, 0 skipped, in the series and on master alone.
…iler's semantic facts What it adds. EmbeddingSupport compiles a host's snapshot of module and member sources, unsaved text included, and returns a Compilation that keeps what the attempt produced whether or not it succeeded: the file structure, the assembled tree, the per-source trees and the diagnostics, with cancellation through the listener (ErrorListener.cancellable). The compiler records the facts an editor needs where it establishes them: InvocationBinding (the selected method, function or constructor and the argument mapping of each call) and InitializerBinding (facts that constant folding would otherwise discard). DeclarationDigests digests each declaration's API apart, for compiling only what an edit changes. Doc comments of properties and methods stay on their structures. Why: navigation, references and rename need the compiler's own answers, not a re-derivation in the editor. Start reading at EmbeddingSupport (Compilation, compileModule, the snapshot hooks of ModuleInfo), then ErrorListener.cancellable and FileStructure's listener, then compiler.InvocationBinding and InitializerBinding, then asm.DeclarationDigests. Skip or skim: the binding call sites in compiler.ast, and the tests (EmbeddingSupportTest's facts, BindingIdentitySnapshotTest, the digest and provenance tests, the cancellation tests, CompilerDuplicateTypeTest). Two of the plan's groups in one commit: the compilation outcomes and the semantic facts change the same compiler files (Compiler, Parser, EmbeddingSupport, ModuleInfo, FileStructure, Annotation, StatementBlock, NameResolver), and neither part compiles alone: Compiler's change, which the outcomes need, uses the facts' InvocationBinding, and EmbeddingSupport and ModuleInfo, which the facts change, cancel through the outcomes' ErrorListener.cancellable. Prerequisites: X1a, whose listener contract it builds on in the files X1a changes. From #693's commits 5, 6, 10, 12, 115, 151, 160, 384 (two of its tests), 440, 442, 443, 459 and 466 (their files outside lang/, except javatools' README and LSP-COMPILER.md, which are X2c). Commit 10 (contracts and the partial AST helpers) goes with X3 where it moves commit 7's partial-analysis code into compiler.ast.partial and documents X3's members; its Javadoc of this commit's constructors stays here. Commit 160's embedded compile reports every class's errors through the attempt's listener, here without X3's partial goal. Validation: javatools' main and test sources compile with no warnings; the 17 test classes this commit adds or changes, read from their JUnit XML: 103 tests, 0 failures, 0 skipped.
…OMPILER.md What it adds. javatools/LSP-COMPILER.md, the design of the compiler's support for the language server: one editor request through the compiler, source snapshots and compilation outcomes, diagnostics, cancellation and reporting scopes, the semantic facts kept from validation, declaration analysis of unfinished source, AST traversal and copying with the partial-analysis package, and constant pools, caches and dependency inputs. The README's error-listener section moves into it, and the README gains a shorter architecture overview that points to it. It describes X1a, X2b and X3 together, so X3's partial analysis is described here before its code arrives. Start reading at "One editor request through the compiler". Prerequisites: X1b, whose README section it moves; it describes X1a and X2b. From #693's commits 5, 10, 12 and 15 (their text in javatools' README and LSP-COMPILER.md). Validation: javatools' main and test sources compile with no warnings; the commit changes javatools' README and LSP-COMPILER.md only.
…tting and declarations What it adds. The parser can retain supported incomplete syntax (Parser.forPartialAnalysis, with or without a cursor) instead of only reporting it, and EmbeddingSupport answers from it: analyzeDeclarations resolves declaration structure without promising a validated module, and analyzeIncomplete reports cursor facts (the visible names, the candidate calls and constructions an unfinished argument list fits) from the real lexical context. The incomplete nodes and their helpers live in compiler.ast.partial (PartialQueries, PartialCallResolver, PartialConstructionResolver, PartialArgument, CursorScope), reaching ordinary compiler operations through one bridge, ast.PartialAst. Source bindings are grouped in compiler.ast.bindings, and the AST gains copyTree for independent trial trees. Why: completion and signature help need compiler answers while the buffer is unfinished, without presenting invalid source as executable code. Start reading at Parser.forPartialAnalysis, then EmbeddingSupport.analyzeIncomplete and analyzeDeclarations, then compiler.ast.partial.PartialQueries and the resolvers. AstNode.copyTree and compiler.ast.bindings come next. Skip or skim: the AST cleanup and style commits (fields first, plain names, shared helpers), which touch many compiler.ast files mechanically, and the tests (ParserRecoveryTest, PartialSyntaxTest, the cursor and declaration tests, EmbeddingApiCompatibilityTest). Two of the plan's groups in one commit, recovery with cursor fitting and declaration analysis, and the grouped source bindings with the AST cleanup: they change the same 26 files (Parser, Compiler, AstNode, Context, StageMgr and the statements among them), and neither order compiles alone. Recovery's files import the bindings from compiler.ast.bindings, which the grouping creates, and the grouping's move of the bindings leaves recovery's files with the old ones. Prerequisites: X2b (and so X1a). Replayed alone on master it changes files X2b adds. From #693's commits 7, 10 (the partial-analysis helpers), 18, 19 (LSP-COMPILER.md), 35, 131, 144, 161, 384 (two of its tests), 385 and 453 (their files outside lang/). Validation: javatools' main and test sources compile with no warnings; ModuleInfoTest and the 18 other test classes this commit adds or changes, read from their JUnit XML: 236 tests, 0 failures, 0 skipped.
…ON events, the Gradle plugin What it adds. xtc deduces a project's modules and its test module: a named module in src/main/x is found beside other sources, and xtc test, run and build take a project's test module with its modules, linking them from the project's binary directory and compiling the test module again when one of them changed. xunit's engine reports tests as JSON events of its own (JsonExecutionListener), and reports a test that throws other than by failing an assertion as aborted, keeping its later exceptions. The Gradle plugin's run and test tasks take debug settings for Gradle-mode runs and pass them to the forked launcher, testXtc runs whenever a tool reads its test report instead of coming from the cache, and a module compiled in another copy of the project is not reused. The snapshot workflow names the oldest VS Code the extension installs on. Why: the editors run and test programs through xtc, xunit and the plugin. Start reading at tool.ModuleInfo (withProjectModules, isProjectChanged) and tool.Compiler, then xunit_engine's JsonExecutionListener and TestExecutor, then the plugin's XtcRunTask, XtcTestTask and ForkedCommandLineBuilder. Skip or skim: the tests, xtc-cli.md and the plugin's and xunit's READMEs, which describe running, testing and debugging; xtc's --debug, which they describe, comes with X4c. Prerequisites: none to compile: on master alone it compiles and its tests pass (ModuleInfoTest without the cases X1a-X3 add). In the series it stacks on X3, whose ModuleInfo it changes. From #693's commits 27, 96, 98, 105 (the plugin README's debug section), 107, 116, 117, 178, 199, 204, 244 and 383 (their files outside lang/, except tool.Runner, which X4c carries with the debug options; Runner's part of commit 178 comes with it). Validation: javatools' main and test sources compile with no warnings; ModuleInfoTest, CompilerTimestampTest and the plugin's 4 test classes this commit adds or changes, read from their JUnit XML: 140 tests, 0 failures, 7 skipped (the plugin's ConfigurationCacheCompatibilityTest, which needs RUN_INTEGRATION_TESTS). On master alone: 138 tests, 0 failures, the same 7 skipped. The snapshot workflow parses as YAML.
…d finish shutdowns (#812) What it adds. A Future's callback that throws is reported as its service's unhandled exception, and a callback that a terminated service drops is reported instead of lost (xFuture, through ServiceContext's callUnhandledExceptionHandler). A service's shutdown completes however it goes, and a failed shutdown is reported (ServiceContext, Container, Runtime). Why: a host that runs programs, as X4c's does, must hear of these failures instead of losing a callback's exception or waiting on a shutdown that never completes. Start reading at xFuture, then ServiceContext's shutdown and callUnhandledExceptionHandler, then Runtime and Container. Skip or skim: the tests, ServiceShutdownTest and EmbeddingSupportTest's callback cases. Prerequisites: X2a, whose Await its tests wait through; #812's pull request is based on #811's branch. With X2a alone on master it compiles and its tests pass. It is #812's own diff, its two commits, which applies to master and to X4a unchanged; when #812 merges, a rebase drops it. This commit is #812's diff, not #693's commits 170 and 198, which are #812 as #693 carries it. Outside lang/ they differ in one line of ServiceShutdownTest, which shuts the runtime down through X4c's connector; that line comes with X4c. Validation: javatools' main and test sources compile with no warnings; EmbeddingSupportTest and ServiceShutdownTest, read from their JUnit XML: 34 tests, 0 failures, 0 skipped. On master with X2a alone: 33 tests, 0 failures, 0 skipped.
…bugger and its agent What it adds. A debugger in the runtime (org.xvm.runtime.SessionDebugger, with the debug agent and its protocol in org.xvm.runtime.debug): breakpoints with conditions, hit counts and log messages, stepping into, over and out, pause, stop on entry and on exceptions, evaluation of watches and typed expressions on the stopped fiber, frame restart, function and field-change breakpoints, and per-fiber control. xtc gains --debug, which attaches the agent through a DebuggerProvider. EmbeddingSupport runs and debugs programs for a host (InterpreterControl, Connector) on supervised workers, ends each run cleanly and lets a finished runtime go; the native templates keep their cached handles on the template instance instead of in static fields for that. Why: the editors run and debug through these, embedded in the language server or from the command line. Start reading at runtime.SessionDebugger and runtime.Debugger, then runtime.debug (DebugAgent, DebugProtocol, DebugCommands), then the EmbeddingSupport run API, then tool.Runner and LauncherOptions for --debug. Skip or skim: the native templates' changes, and the tests, above all SessionDebuggerTest (about 3,000 lines of scenarios). Two parts of the plan in one commit: the debug agent changes SessionDebugger and SessionDebuggerTest with the debugger, and the debugger's test uses the agent's protocol. The debugger also changes four of #812's files: its hunks in ServiceContext, Container, Runtime and EmbeddingSupportTest are here, #812's in X4b. Prerequisites: X4b and the commits before it, whose files it changes (EmbeddingSupport above all, and #812's runtime files). From #693's commits 20, 30, 34, 39, 46-53, 55, 57, 59-63, 75, 78-80, 91, 101, 103, 105, 114, 129, 141, 142, 166, 169, 174, 178 (Runner's part), 194 (its edits of the debugger's test, which wait through #811's fixtures from X2a), 198 (ServiceShutdownTest's shutdown through the connector), 215, 318, 383, 430, 438, 608, 680 and 681 (their files outside lang/, less #812's diff in X4b). Validation: javatools' main and test sources compile with no warnings; the 9 test classes this commit adds or changes, SessionDebuggerTest, EmbeddingSupportTest, ServiceShutdownTest and DebugAgentTest among them, read from their JUnit XML: 111 tests, 0 failures, 0 skipped.
What it adds. commit.yml builds lang with the compiler adapter instead of Tree-sitter, verifies the packaged compiler language server over stdio, and runs the language server's tests in tiers: pull requests run the default tier (no tests that start processes, no long repetition workload, each parameterized test's first case only), pushes and a dispatch with lsp-heavy-tests run every test and case. A step fails the run on a skipped test that the tier does not explain, and the results and timings are uploaded. Why: the compiler-backed server is the default, and a pull request's run has to stay short without hiding a test that did not run. Start reading at the lspTests tier and the "Verify the packaged compiler LSP over stdio" step. Prerequisites: none to apply; the tasks and properties it runs are lang's, in the last commit. From #693's commits 8, 13, 138 and 143 (their change to commit.yml). Validation: commit.yml parses as YAML; javatools' main and test sources compile with no warnings. The workflow itself runs on the pull request.
…fier gate and installPlugin What it adds. The build checks of build-logic for the IntelliJ plugin and the VS Code extension: the Plugin Verifier offline against the catalog's IDEs, with LSP4IJ's internal APIs that the plugin uses reviewed and listed (VerifyPluginInternalApis); installPlugin into a local IntelliJ (InstallIntellijPluginTask); run-IDE support with the server's log tails; archive checks that keep the build's jars whole (ArchiveChecks, CopyFileTask); the Marketplace channel's version; and test report pruning that keeps failures' traces and the newest pass. The settings plugin passes the build's defaults on. Why: the plugin must not ship against internal APIs nobody reviewed, or with a jar missing its parts. Start reading at VerifyPluginInternalApis with InternalApiPolicyTest, then InstallIntellijPluginTask and ArchiveChecks. Skip or skim: the tests, and PruneTestReportsTask's retention rules. Prerequisites: none: on master alone it compiles and its tests pass. From #693's commits 8, 10, 14, 35, 42, 43, 273, 379, 489, 561, 631, 695 and 697 (their files in build-logic). Commit 10's build-logic changes come here, after the commits that set those files up. Validation: javatools' main and test sources compile with no warnings; build-logic's 6 test classes this commit adds or changes, read from their JUnit XML: 38 tests, 0 failures, 0 skipped, in the series and on master alone.
What it adds. The version catalog's LSP4IJ 0.30.1, IntelliJ 2026.2.3 and the newer IDE the playbook can drive, the Plugin Verifier and ZIP Signer, the IDE Starter's test libraries, and the opt-in static analysis tools of lang (detekt, PMD). javatools' and javatools_utils' tests detect a hang by the CPU a test stops using instead of by wall-clock time, through #811's fixtures (X2a), and the tests that waited on a clock wait through them. The root build gains the container playbook tasks. The build defaults: the language server's compiler adapter by default, more metaspace for Gradle, the XDK's libraries as one catalog bundle, javatools' build info from XTC_COMMIT and XTC_BRANCH in a tree without .git (the container's), and javatools' errorListenerTest task. Why: the editors' builds and CI need these, and none of it changes the compiler or the runtime. Start reading at gradle/libs.versions.toml, then javatools' build.gradle.kts and the test edits (EmbeddingSupportTest, RuntimeRetentionTest), then the root build.gradle.kts. Skip or skim: the small edits of the plugin's project delegate and .gitignore. Prerequisites: X1a-X4c for its edits of their tests; the catalog and build files alone are independent. From #693's commits 8, 10, 42, 100, 146, 148, 194, 279, 309, 317, 325, 364, 379, 497, 569 and 696 (their files outside lang/ and build-logic, except the documentation, which is X5d). Commit 10's version-catalog changes come here, after the commits that set the catalog up. Validation: javatools' main and test sources compile with no warnings; the 7 test classes this commit changes, read from their JUnit XML: 94 tests, 0 failures, 5 skipped (XtcProjectCreatorIntegrationTest's 4, which need RUN_INTEGRATION_TESTS, and one LexerTest case that master disables).
…the guides up to date What it adds. The documentation moves to lowercase names (doc/documentation.md, javatools/lsp-compiler.md), and the links to it follow. AGENTS.md says when lang's two build flags are on (gradle.properties and CI's push and pull request builds leave them off, a manual run of commit.yml turns them on) and how inline comments follow the surrounding code. lsp-compiler.md runs its focused tests through javatools' errorListenerTest (X5c) and lang's embeddingConsumerTest, and javatools' build names the renamed document where it registers errorListenerTest. xtc-cli.md names the IntelliJ plugin Ecstasy, and doc/build.md and xunit's README use American spelling. Why: the documents follow the build and the names the earlier commits use. Start reading at AGENTS.md. Prerequisites: X5c and the commits before it, which it describes; the renamed documents are X2c's and doc/documentation.md, which master has. From #693's commits 21, 42, 123, 125, 284 and 431 (their documentation outside lang/). Validation: javatools' main and test sources compile with no warnings; besides the documentation, the commit changes one comment in javatools' build.gradle.kts.
…ugging, test infrastructure What it adds. Everything of #693 in lang/: the language server (protocol, document synchronization, the compiler adapter's compiling, discovery, diagnostics and workspace pulls), the semantic model and read-only features, code actions and refactorings, the XDK's library sources, the IntelliJ plugin on LSP4IJ 0.30.1 and the VS Code extension; embedded build, run and tests from the editors, debugging through the DAP server, and the test infrastructure (playbooks, scenarios, tours, their container) with the lang documentation. Start reading at lang/lsp-server's server package (XtcLanguageServer, XtcTextDocumentService), then adapter/xdk (XdkAdapter), then the editors (intellij-plugin's lsp package, vscode-extension's extension.ts and lsp-client.ts), then the run and dap packages. Skip or skim: the tests and the playbook (src/test, src/integrationTest, src/playbookProbe, vscode-extension/src/test), the test fixtures and the generated grammar files. Prerequisites: X1a-X5d. This commit's tree is #693's. Validation: lsp-server's and the IntelliJ plugin's main and test sources and the VS Code extension compile with no warnings; tsc and eslint report nothing. The suites and playbooks are #693's CI's, on the same tree.
lagergren
force-pushed
the
lagergren/lsp-pr-series
branch
from
December 1, 2026 12:16
0710581 to
01f9cdd
Compare
lagergren
added a commit
that referenced
this pull request
Dec 1, 2026
…blishing them to #693's release #693 is replaced by #838, the same code as 14 review commits. The preview script now builds #838 by default and publishes to intellij-plugin-pr693 whatever pull request it builds (--tag chooses another), so the plugin repository URL that IntelliJ was given once, the release's updatePlugins.xml, goes on offering every new preview. Each publish sets the release's title to the pull request it built. The one-line run fetches #838's branch, lagergren/lsp-pr-series. Validation: bash -n; publish-preview-plugins.sh --dry-run built and checked a preview of #838 without uploading anything.
lagergren
added a commit
that referenced
this pull request
Dec 1, 2026
… with a script after each rebase pr-body.md's table now links every commit label to that commit's diff in #838 (pull/838/commits/<sha>), and its Files and Lines columns are counted from git with rename detection, as GitHub shows them: X3 is 112 files and Lang 1,113, as moved files count once. link-commits.py rewrites the table from the series branch; since every rebase or force-push of the series changes all its hashes, run it after each one and publish the body with gh pr edit. It fails if a table row and the branch's commits don't match one to one. Validation: the script linked all 14 commits of origin/lagergren/lsp-pr-series; py_compile passes.
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.
This pull request replaces #693. It has the same code as #693's head,
21b94e9f2f: its last commit's tree is #693's tree, byte for byte. Instead of #693's 700 commits, it is cut into 14 commits, each a review unit with its own review guide. It stays in draft while the first reviews start.Start with javatools/lsp-compiler.md — Compiler support for the language server. It explains what changed in javatools, why the compiler-backed language server needs it, how the mechanisms work, and their compatibility and validation contracts, with a file-by-file appendix of every changed javatools file.
Summary
This is the compiler-backed language tooling for Ecstasy: the language server, its IntelliJ and VS Code integrations, building, running and debugging programs from both editors, and the compiler and runtime mechanisms outside
lang/that make them possible.Why?
What it holds
How to review
Review one commit at a time, in order: each builds on the ones before it, compiles, and passes the tests it adds or changes. Each commit's message is its review guide: what the commit adds and why, where to start reading, what to skip (tests, mechanical call-site changes, documentation), what it needs of the earlier commits, which of #693's commits it comes from, and how it was validated. Pick a commit in the Commits tab or the "Changes from" menu. I name the commits by their labels; their hashes change with every rebase.
lang/installPluginlang/: the language server, both editors, embedded runs and tests, debugging and the test infrastructureCommits 1–13 change only files outside
lang/, commit 14 only files in it. The X commits divide the work by file: each file's change is in one commit, so no commit holds half of another's change to a file, and none of #693's history had to be reordered. The one exception is #812 (X4b): it is #812's own diff, placed before the debugger, whose hunks in four of #812's files follow in X4c.What each commit needs
lang/'s tasks, which commit 14 adds; X5c's edits of tests need X1a–X4c, and X5d describes the build as X5c leaves it.Parts that stayed together
The plan behind the series has more groups than commits. Three sets of them change the same files in a way that neither order compiles alone, so each set is one commit:
FileRepository,ModuleRepository,EmbeddingSupportandModuleCompiler. The contract'sLaunchercallsModuleRepository.of, and the read failures'EmbeddingSupportandModuleCompilerreport through the contract.Compiler,Parser,EmbeddingSupport,ModuleInfo,FileStructureand others.Compiler's change, which the outcomes need, uses the facts'InvocationBinding, and the facts'EmbeddingSupportandModuleInfocancel through the outcomes'ErrorListener.cancellable.compiler.ast.bindings, which the grouping creates, and the grouping's move of the bindings leaves recovery's files with the old ones.The debugger and its debug agent (X4c) are one commit too: the agent shares
SessionDebuggerandSessionDebuggerTestwith the debugger, whose test uses the agent's protocol.lang/is one commit. The plan had two: the server, code actions, the XDK's library sources and both editors first, then embedded build, run and tests, debugging and the test infrastructure. The first does not exist without the second in #693's history: the second's commits wove embedded builds, runs and debugging into the server's core files before later commits of the first changed them, so replaying the first alone needs 63 hunks in 17 files resolved by hand, and taking the second's code back into it pulls in 33 of its 37 main-code files.#811 and #812
Two parts are open as pull requests of their own and drop out of this series when they merge:
TransientHasherReferenceand its test.lang/in one line ofServiceShutdownTest, which shuts the runtime down through X4c's connector and comes with X4c.Try it
Previews
Previews of the IntelliJ plugin and the VS Code extension are on the prerelease intellij-plugin-pr693. It keeps #693's name for continuity, so a plugin repository added for #693 keeps working. In IntelliJ, add
https://github.com/xtclang/xvm/releases/download/intellij-plugin-pr693/updatePlugins.xmlonce under Settings | Plugins | ⚙️ | Manage Plugin Repositories, without a trailing space, and install "Ecstasy Language Support (bleeding edge)"; for VS Code, download the release's.vsixand run Extensions: Install from VSIX....Keyboard shortcuts, logs and server restart
Both editors use two-step shortcuts: press Control+Option+X on macOS (Ctrl+Alt+X on Windows/Linux), release the keys, then press L or A. On macOS this is Control, not Command. Custom keymaps may override these defaults.
The restart and export actions have no plugin-defined keyboard shortcut; assign one in the editor's Keymap / Keyboard Shortcuts if desired. Open VS Code's Command Palette with Command+Shift+P on macOS or Ctrl+Shift+P on Windows/Linux. The log toggle retains history while hidden; use it directly if an error notification's Show Logs link does not bring the IntelliJ tool window forward.
For a terminal-controlled restart, run from this checkout with Python 3 installed:
The plugins also bundle this CLI as
bin/xtc-lsp. The project must be open in an editor running the updated plugin; for IntelliJ, open an Ecstasy file at least once to start its server. If multiple sessions match, select one using--session <id>fromlist. Restart goes through the owning editor, restores unsaved buffers without saving them, and remains available after a language-server crash. It does not require restarting the IDE or sending a process signal. Installing the updated plugin into an already-running IDE requires the usual one-time editor reload/restart first.See the IntelliJ controls and VS Code controls for settings and shortcut customization.
Run the native editor playbooks
The manual playbook on this branch contains the launch instructions, copyable demo programs, scenario actions and expected results for the catalog's 350 scenarios. Use it to manually explore any feature; the shared scenario catalog contains additional source variants and per-case manual notes.
From the repository root, run the full native suites one at a time on a graphical desktop:
Use JDK 25 or newer to start Gradle. Dependencies and isolated IDE profiles are prepared by the build. To keep the test IDEs off the desktop, run the playbooks in a Linux container on a virtual display instead:
./gradlew containerPlaybookBuild, then./gradlew containerPlaybook -PplaybookCases=X1,X2(both editors; all cases without the property), orcontainerPlaybookIntellij/containerPlaybookVsCode. They usedocker, or the command-Porg.xtclang.docker.command=podmannames. VS Code can usexvfb-runon headless Linux. Leave the test window to the harness; manual interaction can change the active file and invalidate a case.For a short selection covering structure, diagnostics, hover and typed completion:
./gradlew :lang:intellij-plugin:testCompilerPlaybook \ --tests '*CompilerPlaybookTest.compilerPlaybook' \ -PincludeBuildLang=true -PincludeBuildAttachLang=true -Plsp.adapter=compiler \ -PintellijPlaybookCases=X1,X2,X3,X6 --rerun --no-build-cache ./gradlew :lang:vscode-extension:testCompilerPlaybook \ -PincludeBuildLang=true -PincludeBuildAttachLang=true -Plsp.adapter=compiler \ -PcompilerPlaybookCases=X1,X2,X3,X6Replace the IDs with the cases you want to examine. The IntelliJ method filter limits this selection to the feature session, and the selected VS Code task does not schedule the host regression suites. These selected runs do not establish whole-catalog acceptance.
Reports are written to
lang/intellij-plugin/build/reports/compiler-playbook/run-*/andlang/vscode-extension/build/reports/compiler-playbook/run-*/; VS Code also writeslatest-run.txt. Check per-case results, selected/excluded cases, errors and the recorded revision. The acceptance instructions explain logs, coverage limits and expected negative-test notifications.Explore the demo programs manually
To try the product:
Check out this pull request's branch,
lagergren/lsp-pr-series, and launch either editor from the repository root; run native editor sessions sequentially because their actions use desktop focus.Open an Ecstasy module, introduce and repair an error without saving, then try hover, completion, references and rename; copy the named demo programs from the manual walkthrough, preserving their filenames and module layout, then follow the case actions and expected results.
Switch between Compiler and Tree-sitter using Tools → Switch Ecstasy Language Adapter in IntelliJ or Ecstasy: Switch Language Adapter in VS Code; confirm that the restarted server restores the unsaved buffers.
Use the native acceptance commands and report instructions when recording a review finding, including the scenario ID and the actual editor/server logs.
Debug a program
With the embedded compiler, both editors debug Ecstasy programs: VS Code with F5 or a
launch.jsonconfiguration, IntelliJ with Debug on an Ecstasy Application configuration. A debug session builds and runs the module as Run does, in the same execution workers, under the runtime debuggerSessionDebugger; the editor's DAP messages reach it over the language server's own connection, so no second process, port or credentials are needed. Both editors also attach to a program started outside them withxec --debug, and debug Gradle-mode and command-line runs.Follow the debugging cases X304–X331 in the manual playbook, or the debugging sections of the IntelliJ and VS Code READMEs. The session's messages and capabilities are described in the language server README.
Validation
The series was checked against #693 and commit by commit:
21b94e9f2f, and the diff between them is empty. Commits 1–13 change nothing inlang/.tscandeslintreport nothing.ModuleInfoTestamong themWatchdogTest,TransientHasherReferenceTest; the same on master aloneModuleInfoTest,CompilerTimestampTestand 4 Gradle plugin classes; 138 on master aloneEmbeddingSupportTest,ServiceShutdownTest; 33 on master with X2aSessionDebuggerTest's 59 includedX1b, X2c and X5d change documentation (X5d also one comment in javatools' build), and X5a the CI workflow, which parses; each compiles. X4a's skips are the plugin's
ConfigurationCacheCompatibilityTest, which needsRUN_INTEGRATION_TESTS; X5c's areXtcProjectCreatorIntegrationTest's 4, for the same reason, and oneLexerTestcase that master disables.#693's CI passed on its head,
21b94e9f2f, on 2026-12-01: the build and tests outsidelang/, and inlang/the language server's default test tier, the packaged compiler server over stdio, the DAP server, the Plugin Verifier with its internal-API check, and the VS Code extension's build. The tree is the same here. #693's description keeps the history of its suite and playbook runs.Already on master
Parts of this work landed on master as pull requests of their own, and the branch was rebased onto each: #699 and #700 (comparison and equality chains, tuple foreach targets), #703 (running a named entry method with arguments and console input), #709, #716 (ending embedded runs, and kills with a pending call), #717 (the lexer at a source's end), #718 (
assert:debugin embedded runs), #720 (weak map arrays), #723 (Nibblefrom its bits), #724 (a JSON string's\uescapes, and aChar's), #731, #734 (the temporary module file), #735 (the console debugger'sEwith injected variables), #742 (the caller's javadoc forRuntime's debugger accessors), #743 (the javadoc errors, with javadoc incheck), #744 (three Dependabot alerts, andvscode-languageclient11.0.0), #755, #756, #757, #764, #772, #776, #800, #802 (unused constructor arguments and default values), #804 (runXtckeepsxtcRun's settings), #808 (the plugin tests' one network download dropped), #810 (the IntelliJ plugin installable in every JetBrains IDE), #813, #820, #823, #826, #827, #830 and #836.Known follow-ups
lang/by me. Give each thread its own spare key for a hasher map's lookups, so a container's kill cannot hang on a shared one #811 and Report a Future callback that fails or is dropped, and complete a service's shutdown however it goes #812 can merge first; the series drops them on its next rebase.