Skip to content

«Baum»: no box hint; the → chain export copies the whole statement (checked) - #58

Merged
cedricvogel-leo merged 1 commit into
mainfrom
fix/baum-no-box-hint
Nov 8, 2026
Merged

cedricvogel-leo merged 1 commit into
mainfrom
fix/baum-no-box-hint

Conversation

@cedricvogel-leo

@cedricvogel-leo cedricvogel-leo commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Two of three small items. The third, the switch label, is in the IDE: glpython-edu.github.io#45.

1. No box hint in «Baum»

In the tree mode the box stands in place of the call node, so the tree shows by itself that the call stays a box. The note («notenschnitt hat lokale Variablen – der Aufruf wird als Kasten gezeigt.») is gone there, with no replacement.

  • «Ersetzung»: unchanged, the note stays.
  • «Kasten»: unchanged, no note as before.

3. «→-Kette kopieren»: it already copies the whole statement

I checked it before changing anything. The button copies the whole chain of the statement the scrubber is on, from its first step to its value, at whichever of its steps the scrubber is. So nothing changes in the code.

  • Browser: y = quadrat(2 + 1) + 1, then print(y), in all three modes, copied at every step:
    • every step of the first statement gives quadrat(2 + 1) + 1 → quadrat(3) + 1 → (3 * 3) + 1 → 9 + 1 → 10;
    • every step of print(y) gives print(y) → print(10).
  • test:tree: a new check, for a short-form call, a call with local variables and a box call. The chain from the first, a middle and the last step of the statement equals the chain from the end.
  • README: «copies the whole evaluation of the statement the scrubber is on - from its first step to its value, at whichever of its steps the scrubber is».

If you saw a shorter chain, the program would help me find the case. A statement that fails ends with Python's error line, which could look like a cut chain.

Checks

  • test:console:
    • the box note in «Ersetzung» as before;
    • in «Baum», the box in the tree and no .frame-hint at all.
  • test:tree: the chain check.
  • Lint (the known warning only) and the build pass.

Going live

Merging ships to the embed; a tag then the IDE bump (with the label change in the IDE PR).

Manual test

notenschnitt([4, 5, 4.5]) + 1 with features=visualize,tree:

  1. «Ersetzung»: the box with the note at its top.
  2. «Baum»: the box in the tree, with no note.
  3. ⋯ Optionen → «→-Kette kopieren» at the first, a middle and the last step of the statement: the same chain each time.

🤖 Generated with Claude Code

…tement

In the tree mode the box stands in the call's place, which shows by
itself that the call stays a box, so the box's note («… hat lokale
Variablen – …») goes there; «Ersetzung» keeps it. The → chain export
already copied the whole statement at any of its steps: test:tree now
checks it (first, middle and last step), and the README says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cedricvogel-leo
cedricvogel-leo merged commit 2b08e55 into main Nov 8, 2026
1 check passed
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.

1 participant