Skip to content

Stop the lexer at a string, escape or template expression the source ends in - #717

Merged
lagergren merged 4 commits into
masterfrom
lagergren/fix-lexer-hang-and-false-duplicates
Oct 27, 2026
Merged

lagergren merged 4 commits into
masterfrom
lagergren/fix-lexer-hang-and-false-duplicates

Conversation

@lagergren

@lagergren lagergren commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Compiler fixes for a source that ends inside a string, one commit each:

  1. The compiler hangs on a source that ends inside a string. xcc hangs, with no output, on a file that ends inside a string, a template string or a | literal, such as String s = "abc with no newline after it.
  2. The compiler crashes on a source that ends inside an escape or a template expression. A file that ends in String s = "abc\, Char c = '\ or String s = $"abc{x fails with NoSuchElementException.

Root cause

  1. Lexer.eatStringChars() logged "unterminated string" (LEXER-08) at the end of the source and went round its loop again, forever. The ErrorList took each report after the first for a duplicate and dropped it, so the error count never reached the limit that would stop the compile.
  2. After a backslash, eatStringChars() and eatCharLiteral() read the escaped character without checking that there is one, and eatTemplateExpression() read its next token the same way.

Change

  1. The lexer stops reading the string once it has reported it, as its other unterminated-string paths already do (one break).
  2. An escape that the source ends in is reported as an unterminated string (LEXER-08) or character (LEXER-05). A template expression that the source ends in stops there, and the string that holds it reports itself unterminated, once. This relies on change 1.

The earlier change to ErrorInfo.genUID(), which put the parameters into the UID as text instead of as a hash, is dropped, as decided on #677.

Validation

  • New LexerTest cases:
    • anUnterminatedStringAtTheEndOfTheSourceIsReportedOnceAndEndsTheTokens: each of the three kinds of string at the end of a source gives one LEXER-08 and an end of tokens, within 10 s. Without change 1 it times out on String s = "abc.
    • aSourceThatEndsInAnEscapeOrATemplateExpressionIsReportedOnceAndEndsTheTokens: "abc\, $"abc{x and '\ each give exactly one error, with its code, and an end of tokens. Without change 2 it fails with NoSuchElementException.
  • Rebased onto master 6444be91b: LexerTest passes 12 tests, its 1 existing @Disabled skip; spotlessCheck passes.

lagergren added a commit that referenced this pull request Oct 23, 2026
…icates

The lexer's missing break at a string that the source ends in (from
7b9b585) and genUID()'s hashed parameters (814153a) went to master
as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master
7a79c6e, each with a test written for master's own API that fails
without its fix. There :javatools:test passes 458 tests, the 42
existing skips, and spotlessCheck passes.

- docs/remaining.md: both master candidate entries name #717.
- docs/errs-integration-plan.md: #717, and #716's review change.

Documentation only; nothing to build.
@lagergren lagergren changed the title Stop the lexer at a string the source ends in, and keep diagnostics that only look like duplicates Stop the lexer at a string, escape or template expression the source ends in, and keep diagnostics that only look like duplicates Oct 23, 2026
lagergren added a commit that referenced this pull request Oct 23, 2026
Master pull request #717 makes Lexer.eatStringChars() stop, with one
LEXER-08, at a string, template string or "|" literal that the source
ends in, rather than report it for ever. This branch already stops
there, from earlier work; this adds the pull request's test.

LexerTest
anUnterminatedStringAtTheEndOfTheSourceIsReportedOnceAndEndsTheTokens:
each of the three kinds of string at the end of a source gives one
LEXER-08 and an end of tokens, within 10 s.

(cherry picked from commit 503bbe4)
lagergren added a commit that referenced this pull request Oct 23, 2026
…ds in

The compiler failed with NoSuchElementException from Source.next() on
a source that ends in an escape, such as `String s = "abc\` or
`Char c = '\`, or inside a template expression, such as
`String s = $"abc{x`: after the backslash, eatStringChars() and
eatCharLiteral() read the escaped character without checking that
there is one, and eatTemplateExpression() read the next token the same
way. Master has the same code.

Now an escape that the source ends in is reported as an unterminated
string (LEXER-08) or character (LEXER-05), and a template expression
that it ends in stops there, leaving the string that holds it to
report itself unterminated, once. The same change is in master pull
request #717, whose LexerTest cases come with it: this test and the
one for a string that the source ends in, which this branch already
stopped at.

Validation:
- LexerTest passes 12 tests, the two new ones among them; without the
  change the new one fails with NoSuchElementException.
- :javatools:test passes 665 tests, the 42 existing skips;
  :lang:lsp-server:test 2,386 (2 skipped).
- spotlessCheck passes.
lagergren added a commit that referenced this pull request Oct 23, 2026
- docs/remaining.md ticks the compiler crash on a source that ends in
  an escape or a template expression, fixed here, in master pull
  request #717 and on #693, and records #693's synchronization.
- docs/errs-integration-plan.md: #717's third commit, the manualTests
  sources added and removed again, and #693 taking the three fixes
  (78e0a9d..18a8d91).

Documentation only; nothing to build.
@lagergren
lagergren requested review from cpurdy and ggleyzer October 23, 2026 14:23

@ggleyzer ggleyzer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I

@lagergren
lagergren force-pushed the lagergren/fix-lexer-hang-and-false-duplicates branch from d748543 to 6b7b15d Compare October 26, 2026 10:18
@lagergren lagergren changed the title Stop the lexer at a string, escape or template expression the source ends in, and keep diagnostics that only look like duplicates Stop the lexer at a string, escape or template expression the source ends in Oct 26, 2026
lagergren added a commit that referenced this pull request Oct 26, 2026
docs/remaining.md: #723 is merged as 80bf83f. #722 is closed after
review, since the interpreter keeps natural Ecstasy code and speed is
the JIT's; its item is declined. #717 no longer carries the UID change,
as decided on #677, which stays on this branch only. #719 replaces
#718: both fix the hang, neither test catches it, and #719 has no
debugger a host supplies, which now comes with the DAP work, and with
it the refiling of the EvalCompiler fixes. #720's and #724's review
changes are recorded, #720's with this branch's copy, 7fe6450.

Validation: records only. The hang was reproduced with a program that
runs a module with assert:debug through EmbeddingSupport and a standard
input that stays open: master waits at "Enter command:", #718 and #719
end.

Limits: none.
lagergren added a commit that referenced this pull request Oct 26, 2026
Master pull request #717 makes Lexer.eatStringChars() stop, with one
LEXER-08, at a string, template string or "|" literal that the source
ends in, rather than report it for ever. This branch already stops
there, from earlier work; this adds the pull request's test.

LexerTest
anUnterminatedStringAtTheEndOfTheSourceIsReportedOnceAndEndsTheTokens:
each of the three kinds of string at the end of a source gives one
LEXER-08 and an end of tokens, within 10 s.

(cherry picked from commit 503bbe4)
lagergren added a commit that referenced this pull request Oct 26, 2026
…icates

The lexer's missing break at a string that the source ends in (from
7b9b585) and genUID()'s hashed parameters (814153a) went to master
as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master
7a79c6e, each with a test written for master's own API that fails
without its fix. There :javatools:test passes 458 tests, the 42
existing skips, and spotlessCheck passes.

- docs/remaining.md: both master candidate entries name #717.
- docs/errs-integration-plan.md: #717, and #716's review change.

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 26, 2026
…ds in

The compiler failed with NoSuchElementException from Source.next() on
a source that ends in an escape, such as `String s = "abc\` or
`Char c = '\`, or inside a template expression, such as
`String s = $"abc{x`: after the backslash, eatStringChars() and
eatCharLiteral() read the escaped character without checking that
there is one, and eatTemplateExpression() read the next token the same
way. Master has the same code.

Now an escape that the source ends in is reported as an unterminated
string (LEXER-08) or character (LEXER-05), and a template expression
that it ends in stops there, leaving the string that holds it to
report itself unterminated, once. The same change is in master pull
request #717, whose LexerTest cases come with it: this test and the
one for a string that the source ends in, which this branch already
stopped at.

Validation:
- LexerTest passes 12 tests, the two new ones among them; without the
  change the new one fails with NoSuchElementException.
- :javatools:test passes 665 tests, the 42 existing skips;
  :lang:lsp-server:test 2,386 (2 skipped).
- spotlessCheck passes.
lagergren added a commit that referenced this pull request Oct 26, 2026
- docs/remaining.md ticks the compiler crash on a source that ends in
  an escape or a template expression, fixed here, in master pull
  request #717 and on #693, and records #693's synchronization.
- docs/errs-integration-plan.md: #717's third commit, the manualTests
  sources added and removed again, and #693 taking the three fixes
  (78e0a9d..18a8d91).

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 26, 2026
docs/remaining.md: #723 is merged as 80bf83f. #722 is closed after
review, since the interpreter keeps natural Ecstasy code and speed is
the JIT's; its item is declined. #717 no longer carries the UID change,
as decided on #677, which stays on this branch only. #719 replaces
#718: both fix the hang, neither test catches it, and #719 has no
debugger a host supplies, which now comes with the DAP work, and with
it the refiling of the EvalCompiler fixes. #720's and #724's review
changes are recorded, #720's with this branch's copy, 7fe6450.

Validation: records only. The hang was reproduced with a program that
runs a module with assert:debug through EmbeddingSupport and a standard
input that stays open: master waits at "Enter command:", #718 and #719
end.

Limits: none.
@lagergren
lagergren force-pushed the lagergren/fix-lexer-hang-and-false-duplicates branch from 6b7b15d to 3373726 Compare October 26, 2026 18:18
lagergren added a commit that referenced this pull request Oct 26, 2026
…icates

The lexer's missing break at a string that the source ends in (from
7b9b585) and genUID()'s hashed parameters (814153a) went to master
as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master
7a79c6e, each with a test written for master's own API that fails
without its fix. There :javatools:test passes 458 tests, the 42
existing skips, and spotlessCheck passes.

- docs/remaining.md: both master candidate entries name #717.
- docs/errs-integration-plan.md: #717, and #716's review change.

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 26, 2026
…ds in

The compiler failed with NoSuchElementException from Source.next() on
a source that ends in an escape, such as `String s = "abc\` or
`Char c = '\`, or inside a template expression, such as
`String s = $"abc{x`: after the backslash, eatStringChars() and
eatCharLiteral() read the escaped character without checking that
there is one, and eatTemplateExpression() read the next token the same
way. Master has the same code.

Now an escape that the source ends in is reported as an unterminated
string (LEXER-08) or character (LEXER-05), and a template expression
that it ends in stops there, leaving the string that holds it to
report itself unterminated, once. The same change is in master pull
request #717, whose LexerTest cases come with it: this test and the
one for a string that the source ends in, which this branch already
stopped at.

Validation:
- LexerTest passes 12 tests, the two new ones among them; without the
  change the new one fails with NoSuchElementException.
- :javatools:test passes 665 tests, the 42 existing skips;
  :lang:lsp-server:test 2,386 (2 skipped).
- spotlessCheck passes.
lagergren added a commit that referenced this pull request Oct 26, 2026
- docs/remaining.md ticks the compiler crash on a source that ends in
  an escape or a template expression, fixed here, in master pull
  request #717 and on #693, and records #693's synchronization.
- docs/errs-integration-plan.md: #717's third commit, the manualTests
  sources added and removed again, and #693 taking the three fixes
  (78e0a9d..18a8d91).

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 26, 2026
docs/remaining.md: #723 is merged as 80bf83f. #722 is closed after
review, since the interpreter keeps natural Ecstasy code and speed is
the JIT's; its item is declined. #717 no longer carries the UID change,
as decided on #677, which stays on this branch only. #719 replaces
#718: both fix the hang, neither test catches it, and #719 has no
debugger a host supplies, which now comes with the DAP work, and with
it the refiling of the EvalCompiler fixes. #720's and #724's review
changes are recorded, #720's with this branch's copy, 7fe6450.

Validation: records only. The hang was reproduced with a program that
runs a module with assert:debug through EmbeddingSupport and a standard
input that stays open: master waits at "Enter command:", #718 and #719
end.

Limits: none.
@lagergren
lagergren force-pushed the lagergren/fix-lexer-hang-and-false-duplicates branch from 3373726 to f1d679e Compare October 26, 2026 21:30
lagergren added a commit that referenced this pull request Oct 26, 2026
Master pull request #717 makes Lexer.eatStringChars() stop, with one
LEXER-08, at a string, template string or "|" literal that the source
ends in, rather than report it for ever. This branch already stops
there, from earlier work; this adds the pull request's test.

LexerTest
anUnterminatedStringAtTheEndOfTheSourceIsReportedOnceAndEndsTheTokens:
each of the three kinds of string at the end of a source gives one
LEXER-08 and an end of tokens, within 10 s.

(cherry picked from commit 503bbe4)
lagergren added a commit that referenced this pull request Oct 27, 2026
remaining.md ticks the soak on macOS and Linux, parity between the
editors, current docs and each runtime PR validated on its own, and
adds the soak on Windows as open. The execution plan and the
integration plan say the same. The R8 entries now cite the commits on
the current history, as the 2026-10-26b rebase map gives them.

Validation:
- Linux: arm64, JDK 25, in a Podman container on the Mac, as a user
  other than root, with one test fork, at 6b8f5bb. javatools' 686
  tests pass (42 skipped). With --init on a quiet host, lsp-server's
  2401 tests pass but the 2 always skipped, with the soak at 50 rounds
  (56 s), in 34 minutes. EmbeddedExecutionTest alone passes, 46 tests
  in 50 s, and its console test alone passes 3 times out of 3.
- Parity at 718ddd6: VS Code passes all 34 run and debug cases;
  IntelliJ passes 21 of its 32 and the other 11 are partial, each with
  its recorded limit (the test driver, or LSP4IJ 0.21.0's UP32-UP42).
- #716, #717, #718, #724, #731 and #693 pass CI on their heads,
  rebased onto master ddaa3d0.
- CI's lang checks run on ubuntu-latest only (commit.yml), which is
  why Windows stays open.

Problems found, as recorded in remaining.md:
- As root, the read-only tests failed; they skip there (e4a8e68).
- With Gradle as the container's PID 1, which does not reap, a killed
  server's worker stayed a zombie and the worker-exit test timed out.
  It passes with --init.
- Under a load average of 37-75 on the Mac's 10 cores, time limits
  failed: XdkOnTypeFormattingTest's 20 ms, and the runtime's 1 s limit
  on a lazy toString() in the console test, whose program then stayed
  stopped on the class's shared worker, so three later tests failed.

Limits: docs only. Windows is not validated. Dated records elsewhere
keep the hashes they were written with.
@lagergren
lagergren force-pushed the lagergren/fix-lexer-hang-and-false-duplicates branch from f1d679e to 04d4d4f Compare October 27, 2026 09:09
lagergren added a commit that referenced this pull request Oct 27, 2026
Master pull request #717 makes Lexer.eatStringChars() stop, with one
LEXER-08, at a string, template string or "|" literal that the source
ends in, rather than report it for ever. This branch already stops
there, from earlier work; this adds the pull request's test.

LexerTest
anUnterminatedStringAtTheEndOfTheSourceIsReportedOnceAndEndsTheTokens:
each of the three kinds of string at the end of a source gives one
LEXER-08 and an end of tokens, within 10 s.

(cherry picked from commit 503bbe4)
lagergren added a commit that referenced this pull request Oct 27, 2026
…icates

The lexer's missing break at a string that the source ends in (from
7b9b585) and genUID()'s hashed parameters (814153a) went to master
as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master
7a79c6e, each with a test written for master's own API that fails
without its fix. There :javatools:test passes 458 tests, the 42
existing skips, and spotlessCheck passes.

- docs/remaining.md: both master candidate entries name #717.
- docs/errs-integration-plan.md: #717, and #716's review change.

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 27, 2026
…ds in

The compiler failed with NoSuchElementException from Source.next() on
a source that ends in an escape, such as `String s = "abc\` or
`Char c = '\`, or inside a template expression, such as
`String s = $"abc{x`: after the backslash, eatStringChars() and
eatCharLiteral() read the escaped character without checking that
there is one, and eatTemplateExpression() read the next token the same
way. Master has the same code.

Now an escape that the source ends in is reported as an unterminated
string (LEXER-08) or character (LEXER-05), and a template expression
that it ends in stops there, leaving the string that holds it to
report itself unterminated, once. The same change is in master pull
request #717, whose LexerTest cases come with it: this test and the
one for a string that the source ends in, which this branch already
stopped at.

Validation:
- LexerTest passes 12 tests, the two new ones among them; without the
  change the new one fails with NoSuchElementException.
- :javatools:test passes 665 tests, the 42 existing skips;
  :lang:lsp-server:test 2,386 (2 skipped).
- spotlessCheck passes.
lagergren added a commit that referenced this pull request Oct 27, 2026
- docs/remaining.md ticks the compiler crash on a source that ends in
  an escape or a template expression, fixed here, in master pull
  request #717 and on #693, and records #693's synchronization.
- docs/errs-integration-plan.md: #717's third commit, the manualTests
  sources added and removed again, and #693 taking the three fixes
  (78e0a9d..18a8d91).

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 27, 2026
docs/remaining.md: #723 is merged as 80bf83f. #722 is closed after
review, since the interpreter keeps natural Ecstasy code and speed is
the JIT's; its item is declined. #717 no longer carries the UID change,
as decided on #677, which stays on this branch only. #719 replaces
#718: both fix the hang, neither test catches it, and #719 has no
debugger a host supplies, which now comes with the DAP work, and with
it the refiling of the EvalCompiler fixes. #720's and #724's review
changes are recorded, #720's with this branch's copy, 7fe6450.

Validation: records only. The hang was reproduced with a program that
runs a module with assert:debug through EmbeddingSupport and a standard
input that stays open: master waits at "Enter command:", #718 and #719
end.

Limits: none.
lagergren added a commit that referenced this pull request Oct 28, 2026
…mmit went

errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126
replays; master absorbed the two that landed as #717 and #734.
errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the
rebased 71. The plan's entry gives the eight conflicts and how each was
resolved, the two commits that follow the replays (#716's review
changes and the caller's javadoc for Runtime's debugger accessors, #742
on master), and the receipts.

Validation: errs' tree equals a merge of master and the old tip, with
Runtime.java and EmbeddingSupportTest's imports resolved as recorded.
spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures,
42 skipped; :javatools_utils:test 122 (2 skipped);
:lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped);
compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren added a commit that referenced this pull request Oct 28, 2026
…icates

The lexer's missing break at a string that the source ends in (from
7b9b585) and genUID()'s hashed parameters (814153a) went to master
as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master
7a79c6e, each with a test written for master's own API that fails
without its fix. There :javatools:test passes 458 tests, the 42
existing skips, and spotlessCheck passes.

- docs/remaining.md: both master candidate entries name #717.
- docs/errs-integration-plan.md: #717, and #716's review change.

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 28, 2026
- docs/remaining.md ticks the compiler crash on a source that ends in
  an escape or a template expression, fixed here, in master pull
  request #717 and on #693, and records #693's synchronization.
- docs/errs-integration-plan.md: #717's third commit, the manualTests
  sources added and removed again, and #693 taking the three fixes
  (78e0a9d..18a8d91).

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 28, 2026
docs/remaining.md: #723 is merged as 80bf83f. #722 is closed after
review, since the interpreter keeps natural Ecstasy code and speed is
the JIT's; its item is declined. #717 no longer carries the UID change,
as decided on #677, which stays on this branch only. #719 replaces
#718: both fix the hang, neither test catches it, and #719 has no
debugger a host supplies, which now comes with the DAP work, and with
it the refiling of the EvalCompiler fixes. #720's and #724's review
changes are recorded, #720's with this branch's copy, 7fe6450.

Validation: records only. The hang was reproduced with a program that
runs a module with assert:debug through EmbeddingSupport and a standard
input that stays open: master waits at "Enter command:", #718 and #719
end.

Limits: none.
lagergren added a commit that referenced this pull request Oct 28, 2026
remaining.md ticks the soak on macOS and Linux, parity between the
editors, current docs and each runtime PR validated on its own, and
adds the soak on Windows as open. The execution plan and the
integration plan say the same. The R8 entries now cite the commits on
the current history, as the 2026-10-26b rebase map gives them.

Validation:
- Linux: arm64, JDK 25, in a Podman container on the Mac, as a user
  other than root, with one test fork, at 6b8f5bb. javatools' 686
  tests pass (42 skipped). With --init on a quiet host, lsp-server's
  2401 tests pass but the 2 always skipped, with the soak at 50 rounds
  (56 s), in 34 minutes. EmbeddedExecutionTest alone passes, 46 tests
  in 50 s, and its console test alone passes 3 times out of 3.
- Parity at 718ddd6: VS Code passes all 34 run and debug cases;
  IntelliJ passes 21 of its 32 and the other 11 are partial, each with
  its recorded limit (the test driver, or LSP4IJ 0.21.0's UP32-UP42).
- #716, #717, #718, #724, #731 and #693 pass CI on their heads,
  rebased onto master ddaa3d0.
- CI's lang checks run on ubuntu-latest only (commit.yml), which is
  why Windows stays open.

Problems found, as recorded in remaining.md:
- As root, the read-only tests failed; they skip there (e4a8e68).
- With Gradle as the container's PID 1, which does not reap, a killed
  server's worker stayed a zombie and the worker-exit test timed out.
  It passes with --init.
- Under a load average of 37-75 on the Mac's 10 cores, time limits
  failed: XdkOnTypeFormattingTest's 20 ms, and the runtime's 1 s limit
  on a lazy toString() in the console test, whose program then stayed
  stopped on the class's shared worker, so three later tests failed.

Limits: docs only. Windows is not validated. Dated records elsewhere
keep the hashes they were written with.
lagergren added a commit that referenced this pull request Oct 28, 2026
errs-integration-plan.md records the rebase of errs, #693, #716, #717
and #724 onto master bcd8e30, and errs-rebase-2026-10-27.tsv maps
errs' 1037 old commits to their 1035 replays: two absorbed by #718,
and one that keeps only its lsp-server test.

Validation: every replayed commit has its old subject; the rebased
tree differs from the old tip only in the files #731 and #718 change.
:javatools:test 688 (42 skipped) and :lang:lsp-server:test 2401 (2
skipped) pass on the rebased errs.

Limits: records only.
lagergren added a commit that referenced this pull request Oct 28, 2026
…mmit went

errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126
replays; master absorbed the two that landed as #717 and #734.
errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the
rebased 71. The plan's entry gives the eight conflicts and how each was
resolved, the two commits that follow the replays (#716's review
changes and the caller's javadoc for Runtime's debugger accessors, #742
on master), and the receipts.

Validation: errs' tree equals a merge of master and the old tip, with
Runtime.java and EmbeddingSupportTest's imports resolved as recorded.
spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures,
42 skipped; :javatools_utils:test 122 (2 skipped);
:lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped);
compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren added a commit that referenced this pull request Oct 29, 2026
…icates

The lexer's missing break at a string that the source ends in (from
7b9b585) and genUID()'s hashed parameters (814153a) went to master
as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master
7a79c6e, each with a test written for master's own API that fails
without its fix. There :javatools:test passes 458 tests, the 42
existing skips, and spotlessCheck passes.

- docs/remaining.md: both master candidate entries name #717.
- docs/errs-integration-plan.md: #717, and #716's review change.

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 29, 2026
- docs/remaining.md ticks the compiler crash on a source that ends in
  an escape or a template expression, fixed here, in master pull
  request #717 and on #693, and records #693's synchronization.
- docs/errs-integration-plan.md: #717's third commit, the manualTests
  sources added and removed again, and #693 taking the three fixes
  (78e0a9d..18a8d91).

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 29, 2026
docs/remaining.md: #723 is merged as 80bf83f. #722 is closed after
review, since the interpreter keeps natural Ecstasy code and speed is
the JIT's; its item is declined. #717 no longer carries the UID change,
as decided on #677, which stays on this branch only. #719 replaces
#718: both fix the hang, neither test catches it, and #719 has no
debugger a host supplies, which now comes with the DAP work, and with
it the refiling of the EvalCompiler fixes. #720's and #724's review
changes are recorded, #720's with this branch's copy, 7fe6450.

Validation: records only. The hang was reproduced with a program that
runs a module with assert:debug through EmbeddingSupport and a standard
input that stays open: master waits at "Enter command:", #718 and #719
end.

Limits: none.
lagergren added a commit that referenced this pull request Oct 29, 2026
remaining.md ticks the soak on macOS and Linux, parity between the
editors, current docs and each runtime PR validated on its own, and
adds the soak on Windows as open. The execution plan and the
integration plan say the same. The R8 entries now cite the commits on
the current history, as the 2026-10-26b rebase map gives them.

Validation:
- Linux: arm64, JDK 25, in a Podman container on the Mac, as a user
  other than root, with one test fork, at 6b8f5bb. javatools' 686
  tests pass (42 skipped). With --init on a quiet host, lsp-server's
  2401 tests pass but the 2 always skipped, with the soak at 50 rounds
  (56 s), in 34 minutes. EmbeddedExecutionTest alone passes, 46 tests
  in 50 s, and its console test alone passes 3 times out of 3.
- Parity at 718ddd6: VS Code passes all 34 run and debug cases;
  IntelliJ passes 21 of its 32 and the other 11 are partial, each with
  its recorded limit (the test driver, or LSP4IJ 0.21.0's UP32-UP42).
- #716, #717, #718, #724, #731 and #693 pass CI on their heads,
  rebased onto master ddaa3d0.
- CI's lang checks run on ubuntu-latest only (commit.yml), which is
  why Windows stays open.

Problems found, as recorded in remaining.md:
- As root, the read-only tests failed; they skip there (e4a8e68).
- With Gradle as the container's PID 1, which does not reap, a killed
  server's worker stayed a zombie and the worker-exit test timed out.
  It passes with --init.
- Under a load average of 37-75 on the Mac's 10 cores, time limits
  failed: XdkOnTypeFormattingTest's 20 ms, and the runtime's 1 s limit
  on a lazy toString() in the console test, whose program then stayed
  stopped on the class's shared worker, so three later tests failed.

Limits: docs only. Windows is not validated. Dated records elsewhere
keep the hashes they were written with.
lagergren added a commit that referenced this pull request Oct 29, 2026
errs-integration-plan.md records the rebase of errs, #693, #716, #717
and #724 onto master bcd8e30, and errs-rebase-2026-10-27.tsv maps
errs' 1037 old commits to their 1035 replays: two absorbed by #718,
and one that keeps only its lsp-server test.

Validation: every replayed commit has its old subject; the rebased
tree differs from the old tip only in the files #731 and #718 change.
:javatools:test 688 (42 skipped) and :lang:lsp-server:test 2401 (2
skipped) pass on the rebased errs.

Limits: records only.
lagergren added a commit that referenced this pull request Oct 29, 2026
…mmit went

errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126
replays; master absorbed the two that landed as #717 and #734.
errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the
rebased 71. The plan's entry gives the eight conflicts and how each was
resolved, the two commits that follow the replays (#716's review
changes and the caller's javadoc for Runtime's debugger accessors, #742
on master), and the receipts.

Validation: errs' tree equals a merge of master and the old tip, with
Runtime.java and EmbeddingSupportTest's imports resolved as recorded.
spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures,
42 skipped; :javatools_utils:test 122 (2 skipped);
:lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped);
compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren added a commit that referenced this pull request Oct 29, 2026
remaining.md: L82's uninterrupted full-catalog VS Code run is done
(run-Pc161s, 332 of 333 with UP23's accepted X218; again on
vscode-languageclient 11.0.0); the master candidates name what merged
(#716, #717, #718, #720, #723, #731, #735), what closed, and #724 as the
one still open; #693's sync line has its rebase onto #742 and its commit
71. The plan's opening and inventory name the 2026-10-28 full-catalog
runs in both editors instead of the October 7 checkpoint.

Validation: docs only; each state read from GitHub and the run reports
on 2026-10-29; spotlessCheck and git diff --check pass.
lagergren added a commit that referenced this pull request Oct 29, 2026
…icates

The lexer's missing break at a string that the source ends in (from
7b9b585) and genUID()'s hashed parameters (814153a) went to master
as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master
7a79c6e, each with a test written for master's own API that fails
without its fix. There :javatools:test passes 458 tests, the 42
existing skips, and spotlessCheck passes.

- docs/remaining.md: both master candidate entries name #717.
- docs/errs-integration-plan.md: #717, and #716's review change.

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 29, 2026
- docs/remaining.md ticks the compiler crash on a source that ends in
  an escape or a template expression, fixed here, in master pull
  request #717 and on #693, and records #693's synchronization.
- docs/errs-integration-plan.md: #717's third commit, the manualTests
  sources added and removed again, and #693 taking the three fixes
  (78e0a9d..18a8d91).

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 29, 2026
docs/remaining.md: #723 is merged as 80bf83f. #722 is closed after
review, since the interpreter keeps natural Ecstasy code and speed is
the JIT's; its item is declined. #717 no longer carries the UID change,
as decided on #677, which stays on this branch only. #719 replaces
#718: both fix the hang, neither test catches it, and #719 has no
debugger a host supplies, which now comes with the DAP work, and with
it the refiling of the EvalCompiler fixes. #720's and #724's review
changes are recorded, #720's with this branch's copy, 7fe6450.

Validation: records only. The hang was reproduced with a program that
runs a module with assert:debug through EmbeddingSupport and a standard
input that stays open: master waits at "Enter command:", #718 and #719
end.

Limits: none.
lagergren added a commit that referenced this pull request Oct 29, 2026
remaining.md ticks the soak on macOS and Linux, parity between the
editors, current docs and each runtime PR validated on its own, and
adds the soak on Windows as open. The execution plan and the
integration plan say the same. The R8 entries now cite the commits on
the current history, as the 2026-10-26b rebase map gives them.

Validation:
- Linux: arm64, JDK 25, in a Podman container on the Mac, as a user
  other than root, with one test fork, at 6b8f5bb. javatools' 686
  tests pass (42 skipped). With --init on a quiet host, lsp-server's
  2401 tests pass but the 2 always skipped, with the soak at 50 rounds
  (56 s), in 34 minutes. EmbeddedExecutionTest alone passes, 46 tests
  in 50 s, and its console test alone passes 3 times out of 3.
- Parity at 718ddd6: VS Code passes all 34 run and debug cases;
  IntelliJ passes 21 of its 32 and the other 11 are partial, each with
  its recorded limit (the test driver, or LSP4IJ 0.21.0's UP32-UP42).
- #716, #717, #718, #724, #731 and #693 pass CI on their heads,
  rebased onto master ddaa3d0.
- CI's lang checks run on ubuntu-latest only (commit.yml), which is
  why Windows stays open.

Problems found, as recorded in remaining.md:
- As root, the read-only tests failed; they skip there (e4a8e68).
- With Gradle as the container's PID 1, which does not reap, a killed
  server's worker stayed a zombie and the worker-exit test timed out.
  It passes with --init.
- Under a load average of 37-75 on the Mac's 10 cores, time limits
  failed: XdkOnTypeFormattingTest's 20 ms, and the runtime's 1 s limit
  on a lazy toString() in the console test, whose program then stayed
  stopped on the class's shared worker, so three later tests failed.

Limits: docs only. Windows is not validated. Dated records elsewhere
keep the hashes they were written with.
lagergren added a commit that referenced this pull request Oct 29, 2026
errs-integration-plan.md records the rebase of errs, #693, #716, #717
and #724 onto master bcd8e30, and errs-rebase-2026-10-27.tsv maps
errs' 1037 old commits to their 1035 replays: two absorbed by #718,
and one that keeps only its lsp-server test.

Validation: every replayed commit has its old subject; the rebased
tree differs from the old tip only in the files #731 and #718 change.
:javatools:test 688 (42 skipped) and :lang:lsp-server:test 2401 (2
skipped) pass on the rebased errs.

Limits: records only.
lagergren added a commit that referenced this pull request Oct 29, 2026
…mmit went

errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126
replays; master absorbed the two that landed as #717 and #734.
errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the
rebased 71. The plan's entry gives the eight conflicts and how each was
resolved, the two commits that follow the replays (#716's review
changes and the caller's javadoc for Runtime's debugger accessors, #742
on master), and the receipts.

Validation: errs' tree equals a merge of master and the old tip, with
Runtime.java and EmbeddingSupportTest's imports resolved as recorded.
spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures,
42 skipped; :javatools_utils:test 122 (2 skipped);
:lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped);
compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren added a commit that referenced this pull request Oct 29, 2026
remaining.md: L82's uninterrupted full-catalog VS Code run is done
(run-Pc161s, 332 of 333 with UP23's accepted X218; again on
vscode-languageclient 11.0.0); the master candidates name what merged
(#716, #717, #718, #720, #723, #731, #735), what closed, and #724 as the
one still open; #693's sync line has its rebase onto #742 and its commit
71. The plan's opening and inventory name the 2026-10-28 full-catalog
runs in both editors instead of the October 7 checkpoint.

Validation: docs only; each state read from GitHub and the run reports
on 2026-10-29; spotlessCheck and git diff --check pass.
lagergren added a commit that referenced this pull request Oct 29, 2026
…icates

The lexer's missing break at a string that the source ends in (from
7b9b585) and genUID()'s hashed parameters (814153a) went to master
as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master
7a79c6e, each with a test written for master's own API that fails
without its fix. There :javatools:test passes 458 tests, the 42
existing skips, and spotlessCheck passes.

- docs/remaining.md: both master candidate entries name #717.
- docs/errs-integration-plan.md: #717, and #716's review change.

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 29, 2026
- docs/remaining.md ticks the compiler crash on a source that ends in
  an escape or a template expression, fixed here, in master pull
  request #717 and on #693, and records #693's synchronization.
- docs/errs-integration-plan.md: #717's third commit, the manualTests
  sources added and removed again, and #693 taking the three fixes
  (78e0a9d..18a8d91).

Documentation only; nothing to build.
lagergren added a commit that referenced this pull request Oct 29, 2026
docs/remaining.md: #723 is merged as 80bf83f. #722 is closed after
review, since the interpreter keeps natural Ecstasy code and speed is
the JIT's; its item is declined. #717 no longer carries the UID change,
as decided on #677, which stays on this branch only. #719 replaces
#718: both fix the hang, neither test catches it, and #719 has no
debugger a host supplies, which now comes with the DAP work, and with
it the refiling of the EvalCompiler fixes. #720's and #724's review
changes are recorded, #720's with this branch's copy, 7fe6450.

Validation: records only. The hang was reproduced with a program that
runs a module with assert:debug through EmbeddingSupport and a standard
input that stays open: master waits at "Enter command:", #718 and #719
end.

Limits: none.
lagergren added a commit that referenced this pull request Oct 29, 2026
remaining.md ticks the soak on macOS and Linux, parity between the
editors, current docs and each runtime PR validated on its own, and
adds the soak on Windows as open. The execution plan and the
integration plan say the same. The R8 entries now cite the commits on
the current history, as the 2026-10-26b rebase map gives them.

Validation:
- Linux: arm64, JDK 25, in a Podman container on the Mac, as a user
  other than root, with one test fork, at 6b8f5bb. javatools' 686
  tests pass (42 skipped). With --init on a quiet host, lsp-server's
  2401 tests pass but the 2 always skipped, with the soak at 50 rounds
  (56 s), in 34 minutes. EmbeddedExecutionTest alone passes, 46 tests
  in 50 s, and its console test alone passes 3 times out of 3.
- Parity at 718ddd6: VS Code passes all 34 run and debug cases;
  IntelliJ passes 21 of its 32 and the other 11 are partial, each with
  its recorded limit (the test driver, or LSP4IJ 0.21.0's UP32-UP42).
- #716, #717, #718, #724, #731 and #693 pass CI on their heads,
  rebased onto master ddaa3d0.
- CI's lang checks run on ubuntu-latest only (commit.yml), which is
  why Windows stays open.

Problems found, as recorded in remaining.md:
- As root, the read-only tests failed; they skip there (e4a8e68).
- With Gradle as the container's PID 1, which does not reap, a killed
  server's worker stayed a zombie and the worker-exit test timed out.
  It passes with --init.
- Under a load average of 37-75 on the Mac's 10 cores, time limits
  failed: XdkOnTypeFormattingTest's 20 ms, and the runtime's 1 s limit
  on a lazy toString() in the console test, whose program then stayed
  stopped on the class's shared worker, so three later tests failed.

Limits: docs only. Windows is not validated. Dated records elsewhere
keep the hashes they were written with.
lagergren added a commit that referenced this pull request Oct 29, 2026
errs-integration-plan.md records the rebase of errs, #693, #716, #717
and #724 onto master bcd8e30, and errs-rebase-2026-10-27.tsv maps
errs' 1037 old commits to their 1035 replays: two absorbed by #718,
and one that keeps only its lsp-server test.

Validation: every replayed commit has its old subject; the rebased
tree differs from the old tip only in the files #731 and #718 change.
:javatools:test 688 (42 skipped) and :lang:lsp-server:test 2401 (2
skipped) pass on the rebased errs.

Limits: records only.
lagergren added a commit that referenced this pull request Oct 29, 2026
…mmit went

errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126
replays; master absorbed the two that landed as #717 and #734.
errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the
rebased 71. The plan's entry gives the eight conflicts and how each was
resolved, the two commits that follow the replays (#716's review
changes and the caller's javadoc for Runtime's debugger accessors, #742
on master), and the receipts.

Validation: errs' tree equals a merge of master and the old tip, with
Runtime.java and EmbeddingSupportTest's imports resolved as recorded.
spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures,
42 skipped; :javatools_utils:test 122 (2 skipped);
:lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped);
compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren added a commit that referenced this pull request Oct 29, 2026
remaining.md: L82's uninterrupted full-catalog VS Code run is done
(run-Pc161s, 332 of 333 with UP23's accepted X218; again on
vscode-languageclient 11.0.0); the master candidates name what merged
(#716, #717, #718, #720, #723, #731, #735), what closed, and #724 as the
one still open; #693's sync line has its rebase onto #742 and its commit
71. The plan's opening and inventory name the 2026-10-28 full-catalog
runs in both editors instead of the October 7 checkpoint.

Validation: docs only; each state read from GitHub and the run reports
on 2026-10-29; spotlessCheck and git diff --check pass.
lagergren added a commit that referenced this pull request Nov 2, 2026
…icates

The lexer's missing break at a string that the source ends in (from
7b9b585) and genUID()'s hashed parameters (814153a) went to master
as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master
7a79c6e, each with a test written for master's own API that fails
without its fix. There :javatools:test passes 458 tests, the 42
existing skips, and spotlessCheck passes.

- docs/remaining.md: both master candidate entries name #717.
- docs/errs-integration-plan.md: #717, and #716's review change.

Documentation only; nothing to build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants