Repository navigation
Conversation
lagergren
added a commit
that referenced
this pull request
Oct 23, 2026
docs/remaining.md gives each master candidate its pull request: the weak map fix #720, also on #693 as a5e25c7, the EvalCompiler fixes #721, native toString() #722, the Nibble fix #723, which now covers its bits and String constructor as well, and lib_json's \u escapes #724, found through Nibble.of()'s callers. A bug found with #724 and not fixed is added: Char.appendEscaped() writes the first three hexits of a \u escape as 0. Validation: records only; each pull request's validation is in its commit and description. The appendEscaped() output was checked on master: 0x2028.toChar().quoted() is '\u0008'. Limits: none of the pull requests has a review yet.
EvalCompiler, which compiles the console debugger's E in the frame where the program stopped, had three problems: - A variable held as a Ref, such as `@Inject Random random`, was captured with the Ref's type, so no method of the variable compiled: `E random.int(1)` failed with "Could not find a matching method or function "int" for type "@Inject Ref<Random>"". It is captured as its referent, which is what Frame.getArgument() reads. - A frame's variable was found only once its info had been made, and a parameter's info is made when it is first asked for. It now asks the frame, with Frame.getVarInfo(). - A lambda that did not compile stayed in the class it was added to, one more for every E that failed. It is removed. Tests: the new EmbeddingSupportTest case codeCompiledWhereARunStoppedSeesItsParametersAndInjectedValuesAndLeavesNoFailure runs a module that stops at assert:debug, with a debugger of its own set on the run's connector (#718), which compiles code there with EvalCompiler as the console debugger's E wraps it, before anything has asked for the frame's variables: `n + 1` for a parameter, `random.int(1)` for an injected value, and `nope`, after which the class must have as many lambdas as before. The connector gets Debugger.NONE back when the run ends. Validation: the case passes; with master's EvalCompiler it fails all three ways: "Name "n" is unresolvable.", "Could not find a matching method or function "int" for type "@Inject Ref<Random>"." and 3 lambdas instead of 2. :javatools:test passes 458 tests, the 42 existing skips; spotlessCheck passes. The three fixes are those of lagergren/errs d77fb9b, where the runtime debugger's evaluation shares EvalCompiler. Problems found and fixed: - Found on lagergren/errs, where the runtime debugger runs code in a stopped frame: `n` in a method's frame did not compile, nor did a call on an injected Console. Depends on #718, which gives a run its runtime's debugger, so that the test can set its own. Limits: on the console the parameter fix does not show, since it shows a frame's variables, and so makes their info, before E runs. E of a call without a value, such as `E console.print("hi")`, still fails: the console compiles E as a lambda that returns a value.
lagergren
force-pushed
the
lagergren/fix-debugger-eval-captures
branch
from
October 23, 2026 22:50
71cd2d9 to
f3069b4
Compare
lagergren
changed the base branch from
master
to
lagergren/fix-embedded-assert-debug
October 23, 2026 22:50
Contributor
Author
lagergren
added a commit
that referenced
this pull request
Oct 23, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
lagergren
added a commit
that referenced
this pull request
Oct 26, 2026
docs/remaining.md gives each master candidate its pull request: the weak map fix #720, also on #693 as a5e25c7, the EvalCompiler fixes #721, native toString() #722, the Nibble fix #723, which now covers its bits and String constructor as well, and lib_json's \u escapes #724, found through Nibble.of()'s callers. A bug found with #724 and not fixed is added: Char.appendEscaped() writes the first three hexits of a \u escape as 0. Validation: records only; each pull request's validation is in its commit and description. The appendEscaped() output was checked on master: 0x2028.toChar().quoted() is '\u0008'. Limits: none of the pull requests has a review yet.
lagergren
added a commit
that referenced
this pull request
Oct 26, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
lagergren
added a commit
that referenced
this pull request
Oct 26, 2026
docs/remaining.md gives each master candidate its pull request: the weak map fix #720, also on #693 as a5e25c7, the EvalCompiler fixes #721, native toString() #722, the Nibble fix #723, which now covers its bits and String constructor as well, and lib_json's \u escapes #724, found through Nibble.of()'s callers. A bug found with #724 and not fixed is added: Char.appendEscaped() writes the first three hexits of a \u escape as 0. Validation: records only; each pull request's validation is in its commit and description. The appendEscaped() output was checked on master: 0x2028.toChar().quoted() is '\u0008'. Limits: none of the pull requests has a review yet.
lagergren
added a commit
that referenced
this pull request
Oct 26, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
lagergren
added a commit
that referenced
this pull request
Oct 27, 2026
docs/remaining.md gives each master candidate its pull request: the weak map fix #720, also on #693 as a5e25c7, the EvalCompiler fixes #721, native toString() #722, the Nibble fix #723, which now covers its bits and String constructor as well, and lib_json's \u escapes #724, found through Nibble.of()'s callers. A bug found with #724 and not fixed is added: Char.appendEscaped() writes the first three hexits of a \u escape as 0. Validation: records only; each pull request's validation is in its commit and description. The appendEscaped() output was checked on master: 0x2028.toChar().quoted() is '\u0008'. Limits: none of the pull requests has a review yet.
lagergren
added a commit
that referenced
this pull request
Oct 27, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
Contributor
Author
lagergren
added a commit
that referenced
this pull request
Oct 27, 2026
- R8 is done: the Windows soak is not planned, by decision on 2026-10-27, so remaining.md, the execution plan and the integration plan tick it. - The EvalCompiler fixes are filed again as #735, now that #718 is on master; #721 points to it. - #693 has the six fixes since its last sync that are not debugger work, with their hashes there. - The 2026-10-26 and 2026-10-27 rebase backups and their bundle are deleted; the commit maps keep the old hashes. Validation: docs only; #735's and #693's figures are from the runs on those branches (javatools 460 with 42 skipped on #735's branch; the mirrored commits' test classes on #693). Limits: records only.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
docs/remaining.md gives each master candidate its pull request: the weak map fix #720, also on #693 as a5e25c7, the EvalCompiler fixes #721, native toString() #722, the Nibble fix #723, which now covers its bits and String constructor as well, and lib_json's \u escapes #724, found through Nibble.of()'s callers. A bug found with #724 and not fixed is added: Char.appendEscaped() writes the first three hexits of a \u escape as 0. Validation: records only; each pull request's validation is in its commit and description. The appendEscaped() output was checked on master: 0x2028.toChar().quoted() is '\u0008'. Limits: none of the pull requests has a review yet.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
- R8 is done: the Windows soak is not planned, by decision on 2026-10-27, so remaining.md, the execution plan and the integration plan tick it. - The EvalCompiler fixes are filed again as #735, now that #718 is on master; #721 points to it. - #693 has the six fixes since its last sync that are not debugger work, with their hashes there. - The 2026-10-26 and 2026-10-27 rebase backups and their bundle are deleted; the commit maps keep the old hashes. Validation: docs only; #735's and #693's figures are from the runs on those branches (javatools 460 with 42 skipped on #735's branch; the mirrored commits' test classes on #693). Limits: records only.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
docs/remaining.md gives each master candidate its pull request: the weak map fix #720, also on #693 as a5e25c7, the EvalCompiler fixes #721, native toString() #722, the Nibble fix #723, which now covers its bits and String constructor as well, and lib_json's \u escapes #724, found through Nibble.of()'s callers. A bug found with #724 and not fixed is added: Char.appendEscaped() writes the first three hexits of a \u escape as 0. Validation: records only; each pull request's validation is in its commit and description. The appendEscaped() output was checked on master: 0x2028.toChar().quoted() is '\u0008'. Limits: none of the pull requests has a review yet.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
lagergren
added a commit
that referenced
this pull request
Nov 2, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
lagergren
added a commit
that referenced
this pull request
Nov 2, 2026
- R8 is done: the Windows soak is not planned, by decision on 2026-10-27, so remaining.md, the execution plan and the integration plan tick it. - The EvalCompiler fixes are filed again as #735, now that #718 is on master; #721 points to it. - #693 has the six fixes since its last sync that are not debugger work, with their hashes there. - The 2026-10-26 and 2026-10-27 rebase backups and their bundle are deleted; the commit maps keep the old hashes. Validation: docs only; #735's and #693's figures are from the runs on those branches (javatools 460 with 42 skipped on #735's branch; the mirrored commits' test classes on #693). Limits: records only.
lagergren
added a commit
that referenced
this pull request
Nov 4, 2026
docs/remaining.md gives each master candidate its pull request: the weak map fix #720, also on #693 as a5e25c7, the EvalCompiler fixes #721, native toString() #722, the Nibble fix #723, which now covers its bits and String constructor as well, and lib_json's \u escapes #724, found through Nibble.of()'s callers. A bug found with #724 and not fixed is added: Char.appendEscaped() writes the first three hexits of a \u escape as 0. Validation: records only; each pull request's validation is in its commit and description. The appendEscaped() output was checked on master: 0x2028.toChar().quoted() is '\u0008'. Limits: none of the pull requests has a review yet.
lagergren
added a commit
that referenced
this pull request
Nov 4, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
lagergren
added a commit
that referenced
this pull request
Nov 4, 2026
- R8 is done: the Windows soak is not planned, by decision on 2026-10-27, so remaining.md, the execution plan and the integration plan tick it. - The EvalCompiler fixes are filed again as #735, now that #718 is on master; #721 points to it. - #693 has the six fixes since its last sync that are not debugger work, with their hashes there. - The 2026-10-26 and 2026-10-27 rebase backups and their bundle are deleted; the commit maps keep the old hashes. Validation: docs only; #735's and #693's figures are from the runs on those branches (javatools 460 with 42 skipped on #735's branch; the mirrored commits' test classes on #693). Limits: records only.
lagergren
added a commit
that referenced
this pull request
Nov 5, 2026
docs/remaining.md gives each master candidate its pull request: the weak map fix #720, also on #693 as a5e25c7, the EvalCompiler fixes #721, native toString() #722, the Nibble fix #723, which now covers its bits and String constructor as well, and lib_json's \u escapes #724, found through Nibble.of()'s callers. A bug found with #724 and not fixed is added: Char.appendEscaped() writes the first three hexits of a \u escape as 0. Validation: records only; each pull request's validation is in its commit and description. The appendEscaped() output was checked on master: 0x2028.toChar().quoted() is '\u0008'. Limits: none of the pull requests has a review yet.
lagergren
added a commit
that referenced
this pull request
Nov 5, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
lagergren
added a commit
that referenced
this pull request
Nov 5, 2026
- R8 is done: the Windows soak is not planned, by decision on 2026-10-27, so remaining.md, the execution plan and the integration plan tick it. - The EvalCompiler fixes are filed again as #735, now that #718 is on master; #721 points to it. - #693 has the six fixes since its last sync that are not debugger work, with their hashes there. - The 2026-10-26 and 2026-10-27 rebase backups and their bundle are deleted; the commit maps keep the old hashes. Validation: docs only; #735's and #693's figures are from the runs on those branches (javatools 460 with 42 skipped on #735's branch; the mirrored commits' test classes on #693). Limits: records only.
lagergren
added a commit
that referenced
this pull request
Nov 9, 2026
docs/remaining.md gives each master candidate its pull request: the weak map fix #720, also on #693 as a5e25c7, the EvalCompiler fixes #721, native toString() #722, the Nibble fix #723, which now covers its bits and String constructor as well, and lib_json's \u escapes #724, found through Nibble.of()'s callers. A bug found with #724 and not fixed is added: Char.appendEscaped() writes the first three hexits of a \u escape as 0. Validation: records only; each pull request's validation is in its commit and description. The appendEscaped() output was checked on master: 0x2028.toChar().quoted() is '\u0008'. Limits: none of the pull requests has a review yet.
lagergren
added a commit
that referenced
this pull request
Nov 9, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
lagergren
added a commit
that referenced
this pull request
Nov 9, 2026
- R8 is done: the Windows soak is not planned, by decision on 2026-10-27, so remaining.md, the execution plan and the integration plan tick it. - The EvalCompiler fixes are filed again as #735, now that #718 is on master; #721 points to it. - #693 has the six fixes since its last sync that are not debugger work, with their hashes there. - The 2026-10-26 and 2026-10-27 rebase backups and their bundle are deleted; the commit maps keep the old hashes. Validation: docs only; #735's and #693's figures are from the runs on those branches (javatools 460 with 42 skipped on #735's branch; the mirrored commits' test classes on #693). Limits: records only.
lagergren
added a commit
that referenced
this pull request
Nov 11, 2026
docs/remaining.md gives each master candidate its pull request: the weak map fix #720, also on #693 as a5e25c7, the EvalCompiler fixes #721, native toString() #722, the Nibble fix #723, which now covers its bits and String constructor as well, and lib_json's \u escapes #724, found through Nibble.of()'s callers. A bug found with #724 and not fixed is added: Char.appendEscaped() writes the first three hexits of a \u escape as 0. Validation: records only; each pull request's validation is in its commit and description. The appendEscaped() output was checked on master: 0x2028.toChar().quoted() is '\u0008'. Limits: none of the pull requests has a review yet.
lagergren
added a commit
that referenced
this pull request
Nov 11, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
lagergren
added a commit
that referenced
this pull request
Nov 11, 2026
- R8 is done: the Windows soak is not planned, by decision on 2026-10-27, so remaining.md, the execution plan and the integration plan tick it. - The EvalCompiler fixes are filed again as #735, now that #718 is on master; #721 points to it. - #693 has the six fixes since its last sync that are not debugger work, with their hashes there. - The 2026-10-26 and 2026-10-27 rebase backups and their bundle are deleted; the commit maps keep the old hashes. Validation: docs only; #735's and #693's figures are from the runs on those branches (javatools 460 with 42 skipped on #735's branch; the mirrored commits' test classes on #693). Limits: records only.
lagergren
added a commit
that referenced
this pull request
Nov 22, 2026
docs/remaining.md gives each master candidate its pull request: the weak map fix #720, also on #693 as a5e25c7, the EvalCompiler fixes #721, native toString() #722, the Nibble fix #723, which now covers its bits and String constructor as well, and lib_json's \u escapes #724, found through Nibble.of()'s callers. A bug found with #724 and not fixed is added: Char.appendEscaped() writes the first three hexits of a \u escape as 0. Validation: records only; each pull request's validation is in its commit and description. The appendEscaped() output was checked on master: 0x2028.toChar().quoted() is '\u0008'. Limits: none of the pull requests has a review yet.
lagergren
added a commit
that referenced
this pull request
Nov 22, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
lagergren
added a commit
that referenced
this pull request
Nov 22, 2026
- R8 is done: the Windows soak is not planned, by decision on 2026-10-27, so remaining.md, the execution plan and the integration plan tick it. - The EvalCompiler fixes are filed again as #735, now that #718 is on master; #721 points to it. - #693 has the six fixes since its last sync that are not debugger work, with their hashes there. - The 2026-10-26 and 2026-10-27 rebase backups and their bundle are deleted; the commit maps keep the old hashes. Validation: docs only; #735's and #693's figures are from the runs on those branches (javatools 460 with 42 skipped on #735's branch; the mirrored commits' test classes on #693). Limits: records only.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
docs/remaining.md gives each master candidate its pull request: the weak map fix #720, also on #693 as a5e25c7, the EvalCompiler fixes #721, native toString() #722, the Nibble fix #723, which now covers its bits and String constructor as well, and lib_json's \u escapes #724, found through Nibble.of()'s callers. A bug found with #724 and not fixed is added: Char.appendEscaped() writes the first three hexits of a \u escape as 0. Validation: records only; each pull request's validation is in its commit and description. The appendEscaped() output was checked on master: 0x2028.toChar().quoted() is '\u0008'. Limits: none of the pull requests has a review yet.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
- R8 is done: the Windows soak is not planned, by decision on 2026-10-27, so remaining.md, the execution plan and the integration plan tick it. - The EvalCompiler fixes are filed again as #735, now that #718 is on master; #721 points to it. - #693 has the six fixes since its last sync that are not debugger work, with their hashes there. - The 2026-10-26 and 2026-10-27 rebase backups and their bundle are deleted; the commit maps keep the old hashes. Validation: docs only; #735's and #693's figures are from the runs on those branches (javatools 460 with 42 skipped on #735's branch; the mirrored commits' test classes on #693). Limits: records only.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
docs/remaining.md gives each master candidate its pull request: the weak map fix #720, also on #693 as a5e25c7, the EvalCompiler fixes #721, native toString() #722, the Nibble fix #723, which now covers its bits and String constructor as well, and lib_json's \u escapes #724, found through Nibble.of()'s callers. A bug found with #724 and not fixed is added: Char.appendEscaped() writes the first three hexits of a \u escape as 0. Validation: records only; each pull request's validation is in its commit and description. The appendEscaped() output was checked on master: 0x2028.toChar().quoted() is '\u0008'. Limits: none of the pull requests has a review yet.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
The EvalCompiler fixes' test needs #718's runtime debugger, so #721 is closed rather than stacked on #718. docs/remaining.md says why, and has an open item to file the fixes again once #718 is merged: the branch, its base, how to rebase it, what its test does, and why manualTests cannot drive the console instead. Validation: records only. Limits: nothing in master changes until #718 lands.
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
The console debugger's
Ecan't call a method on an injected variable: at a stop in a method with@Inject Random random,E random.int(1)fails with "Could not find a matching method or function "int" for type "@Inject Ref"".Root cause
EvalCompiler, which compilesEin the stopped frame, has three problems:Ref, such as an injected one, with theRef's type, whileFrame.getArgument()passes its referent.Ethat fails.Change
Refis captured as its referent's type.Frame.getVarInfo(), which makes a parameter's info when needed.Validation
EmbeddingSupportTestcase,codeCompiledWhereARunStoppedSeesItsParametersAndInjectedValuesAndLeavesNoFailure. It runs a module that stops atassert:debug, with a debugger of its own set on the run's connector. That debugger compiles code there withEvalCompiler, wrapped as the console debugger'sEwraps it, before anything has asked for the frame's variables. It checks:n + 1, a parameter, compiles;random.int(1), a method of an injected value, compiles;nopedoesn't compile, and leaves the class with as many lambdas as before.EvalCompilerthe case fails all three ways: "Name "n" is unresolvable.", "Could not find a matching method or function "int" for type "@Inject Ref".", and 3 lambdas instead of 2.:javatools:testpasses 458 tests, the 42 existing skips;spotlessCheckpasses.EvalCompiler. These are its fixes; there, they're covered through its debugger tests.Depends on #718, which gives a run its runtime's debugger, so the test can set its own. This PR is based on #718's branch; once #718 lands I'll rebase it onto master.
Limits
Eruns.Eof a call without a value, such asE console.print("hi"), still fails: the console compilesEas a lambda that returns a value.