Repository navigation
Stop the lexer at a string, escape or template expression the source ends in - #717
Merged
Merged
Conversation
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
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.
ggleyzer
reviewed
Oct 23, 2026
lagergren
force-pushed
the
lagergren/fix-lexer-hang-and-false-duplicates
branch
from
October 26, 2026 10:18
d748543 to
6b7b15d
Compare
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
force-pushed
the
lagergren/fix-lexer-hang-and-false-duplicates
branch
from
October 26, 2026 18:18
6b7b15d to
3373726
Compare
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
force-pushed
the
lagergren/fix-lexer-hang-and-false-duplicates
branch
from
October 26, 2026 21:30
3373726 to
f1d679e
Compare
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
force-pushed
the
lagergren/fix-lexer-hang-and-false-duplicates
branch
from
October 27, 2026 09:09
f1d679e to
04d4d4f
Compare
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.
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
Compiler fixes for a source that ends inside a string, one commit each:
xcchangs, with no output, on a file that ends inside a string, a template string or a|literal, such asString s = "abcwith no newline after it.String s = "abc\,Char c = '\orString s = $"abc{xfails withNoSuchElementException.Root cause
Lexer.eatStringChars()logged "unterminated string" (LEXER-08) at the end of the source and went round its loop again, forever. TheErrorListtook each report after the first for a duplicate and dropped it, so the error count never reached the limit that would stop the compile.eatStringChars()andeatCharLiteral()read the escaped character without checking that there is one, andeatTemplateExpression()read its next token the same way.Change
break).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
LexerTestcases:anUnterminatedStringAtTheEndOfTheSourceIsReportedOnceAndEndsTheTokens: each of the three kinds of string at the end of a source gives oneLEXER-08and an end of tokens, within 10 s. Without change 1 it times out onString s = "abc.aSourceThatEndsInAnEscapeOrATemplateExpressionIsReportedOnceAndEndsTheTokens:"abc\,$"abc{xand'\each give exactly one error, with its code, and an end of tokens. Without change 2 it fails withNoSuchElementException.6444be91b:LexerTestpasses 12 tests, its 1 existing@Disabledskip;spotlessCheckpasses.