Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b0111db
VBFLXGRD18 1.8.69.0: the VBFlexGrid control documented (15 topic page…
KubaO Nov 13, 2026
288f35a
VB, VBRUN and VBA: 23 pictures from a running program (shoot_docs set…
KubaO Nov 13, 2026
89683b8
WinNativeCommonCtls: 10 pictures from a running program (shoot_docs s…
KubaO Nov 13, 2026
3452d93
BUGS-TO-REPORT: a WinNativeCommonCtls TreeView draws its nodes' pictu…
KubaO Nov 13, 2026
d53fa28
CustomControls: 13 pictures from a running program (shoot_docs setup …
KubaO Nov 13, 2026
e961cbf
CustomControls: a WaynesForm has no Load event, so its samples set up…
KubaO Nov 13, 2026
d1d16cc
CustomControls: the controls draw only on a WaynesForm, so the sample…
KubaO Nov 14, 2026
9c18ae3
tbIDE: 5 pictures from an add-in fixture (shoot_docs setups tbide and…
KubaO Nov 14, 2026
beb0080
Counts: drop hand-kept counts of sets that change from WIP notes and …
KubaO Nov 14, 2026
c894c2e
xCalendar: 4 pictures from a running program (shoot_docs setup xcalen…
KubaO Nov 14, 2026
26a7624
VBComDlg and AutoCompleteLib: 5 pictures from a running program (shoo…
KubaO Nov 14, 2026
8117635
Singles: Project Settings Version Info picture (setup settings-versio…
KubaO Nov 14, 2026
6662114
WIP.BugHunt.md: uninvestigated defect leads (VB, WinNativeCommonCtls,…
KubaO Nov 14, 2026
f7d8a44
test/harness.json version 2: packageTimeouts gives a package limits o…
KubaO Nov 14, 2026
a6013de
package_tests: --all-packages leaves out GdiPlus (ALL_PACKAGES_SKIP),…
KubaO Nov 14, 2026
9d413d7
harness.md: tblaunch 18 reads version 2 and takes --package; the vers…
KubaO Nov 14, 2026
9282d0a
ALL_PACKAGES_SKIP moves to lib/package-tests.mjs, so the launcher's n…
KubaO Nov 14, 2026
96104fc
tbrun and tbbuild list the rows of files that share a base name in th…
KubaO Nov 14, 2026
dd0b051
waitForCompile takes its early ending for a project whose compile pub…
KubaO Nov 14, 2026
d0c3ca2
test/harness.json: WinReg compile 30 s (packageTimeouts), as Generics…
KubaO Nov 14, 2026
5d4af2a
tbbuild and tbrun --port N work again: the defaults hook asks a chose…
KubaO Nov 15, 2026
e7c5c27
tb-registry repoints every path into an IDE copy's folder at the inst…
KubaO Nov 15, 2026
ee2dcf8
CEF: CefBrowser_Page.png from a running program (shoot_docs setup cef…
KubaO Nov 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
457 changes: 457 additions & 0 deletions BUGS-TO-REPORT.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions WIP.A11y.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ which refuses a tree older than the sources that produced it, then
[scripts/pick_a11y_sample.mjs --check](scripts/pick_a11y_sample.mjs) --- see
[Choosing the sample](#choosing-the-sample) --- and then
[scripts/check_a11y.mjs](scripts/check_a11y.mjs), which runs puppeteer +
axe-core over sixteen sample pages against WCAG 2.0/2.1/2.2 at Level A + AA
axe-core over a sample of pages against WCAG 2.0/2.1/2.2 at Level A + AA
(plus the `heading-order` best-practice rule) and exits non-zero on any
violation. It requires `build.bat` to have produced an up-to-date `_site/`.

Expand Down Expand Up @@ -69,7 +69,7 @@ Syntax-highlight token colours are kept above 4.5:1 automatically: [builder/high

## Choosing the sample

The scan audits sixteen pages out of ~1,160, so its page list decides what it can report at all -- and a page list that stops being representative fails *silently*. A hand-picked list goes stale as the site grows around it: a sample with no table, image, `<details>` widget or video card leaves `image-alt`, the table rules and `scrollable-region-focusable` in the run options with nothing to run on, and the gate reports a clean pass.
The scan audits a sample of the site's pages, so its page list decides what it can report at all -- and a page list that stops being representative fails *silently*. A hand-picked list goes stale as the site grows around it: a sample with no table, image, `<details>` widget or video card leaves `image-alt`, the table rules and `scrollable-region-focusable` in the run options with nothing to run on, and the gate reports a clean pass.

The full-site sweep ([scripts/sweep_a11y.mjs](scripts/sweep_a11y.mjs) — every page, both themes, both viewports, 3,476 audits, ~20 min) is the check on the sample. It shows which constructs the sample has to contain: table wrappers (`scrollable-region-focusable`), footnote back-links (`link-in-text-block`), the FAQ's `<summary>` elements at the phone viewport (`target-size`), heading structure (`heading-order`), diagrams (`role-img-alt`) and code-block colours (`color-contrast`).

Expand Down
94 changes: 94 additions & 0 deletions WIP.BugHunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Bug hunt: leads not yet investigated

Documenting is the main job. A suspected defect met along the way is written down here, in a
few lines, and left. Nothing in this file goes upstream, and nothing in it is evidence for a
page: a callout needs a reproducer, a lane or a case, never a lead.

[BUGS-TO-REPORT.md](BUGS-TO-REPORT.md) is the next stage, for a defect that has been narrowed
and confirmed. The owner decides what is filed from there, and when, so that twinBASIC's
developers get a few reports they can act on rather than everything a session saw.

## How a lead moves on

1. **Write it down and go back to the page.** Each lead has: the build it was seen on, where
it was seen (the fixture, setup, probe or page), what was seen, and what is not known yet
(VB6 not checked, may be a misuse). Mark it **page affected** when a page now says something
the lead contradicts.
2. **A lead is investigated only when** a page it affects is being worked on and needs it
settled, or the owner picks it. A lead does not get investigated just because it is there.
3. **Investigating** means narrowing it to a reproducer with nothing else in it, on the newest
BETA installed, with VB6 checked where VB6 has the feature, and misuse ruled out. It ends in
one of these, and the lead leaves this file:
- **Misuse or a wrong expectation**: the lead is deleted, and a page that said the wrong
thing is fixed.
- **A defect of a contributed package**: a failing case in the package's test project,
recorded in its `expect.json` ([test/package-tests/README.md](test/package-tests/README.md)),
and a callout on the page if a reader would meet it. Not a BUGS-TO-REPORT entry, unless
the cause turns out to be twinBASIC's.
- **A defect of twinBASIC** (the compiler, the IDE, or a default or built-in package): an
entry in BUGS-TO-REPORT.md with its reproducer under `bugs/<slug>/`, made with
`node scripts/bug_repro.mjs new`, and a callout on the page if a reader would meet it.
4. **A lead nobody can reproduce on the newest BETA** is deleted, with a line in the commit
message saying so.

## Leads

### VB package

Seen on BETA 1042 by the `vb` setup of `shoot_docs` (fixture `test/shots/vb`). None checked in
VB6.

- **`Controls.Add` of a control class no form holds** raises -2147467259, and never makes a
QRCode.
- **`TypeOf <MDIForm> Is Form`** is True.
- **`Form.BorderStyle` set at run time** gives the tool-window styles and the fixed dialog
style no extended window style.
- **A menu's `ShortcutId` set at run time** shows no shortcut text. **Page affected**: the
Menu page says it does.
- **`MousePointer` `vbIconPointer` and `vbSizePointer`** set a null cursor.
- **A Report's preview** never returns from its first `DoEvents` on a private desktop. May be
misuse, or the private desktop.

### WinNativeCommonCtls

Seen on BETA 1042 by the `commonctls` setup (fixture `test/shots/commonctls`).

- **A ListView filled while hidden** shows no items in `lvwIcon` view.
- **`MonthView.DayBold`** raises error 380 for a month scrolled into view by setting `Value`.
- **An icon in an ImageList with `ColorDepth24Bit`** draws on black.
- **The DTPicker's long date format** draws its fields with wide gaps.
- **`DTPicker.HandleDropDown`** tests `styles And MCS_NOTODAY = 0`, which by operator
precedence is `styles And (MCS_NOTODAY = 0)` and never true. Seen in the source, not run.

### CustomControls

- **`Class_Initialize` and `Sub New` together in a WaynesForm class** give TB5135. BETA 1042,
the `waynes` setup.

### VBFLXGRD18

- **Without an explicit `Load Form1`**, `Form1.VBFlexGrid1` through the implicit instance
raises -2147467262 at the grid's first property. BETA 1042, the samples' template project.
May be twinBASIC's implicit form instance rather than the package.

### User-defined types (from the GdiPlus work)

Seen on BETA 1005, 32-bit, by the agents documenting GdiPlus; not seen again since. Check on
the newest BETA first: each may be gone. The GdiPlus samples avoid every form below.

- **An element of a UDT array passed as a `ByVal` UDT argument** never returns:
`pts(1).Diff(pts(2))`, `g.DrawLine p, pts(1), pts(2)`, with `pts` a `GpPointF` array and no
GDI+ call involved.
- **A property read on an element of a UDT array** never returns: `types(1).CloseSubpath`,
with `types` a `PathPointType` array. Copying the element to a local first works. Another
agent got an access violation for the same read on a local array. Probably the same cause
as the lead above.
- **`m.Scale(2, 3)` as a statement**, with parentheses and no `Call`, does nothing and raises
nothing, on any class with a `Scale` method (also on a test class of its own).
- **`p.Scale(2)`** is a syntax error on `GpPointF` and `GpSizeF`; `p.Scale 2` compiles.
Probably related to the lead above.
- **GdiPlus's `PathIterator.NextSubpathPath`** gives a LINKER code generation error for any
project that uses `PathIterator`, though `tbbuild --build` still makes an exe.
- **Some UDT members do not link** ("compilation (codegen) error in Types.X"):
`GpPointF.Normalized`, and `OffsetBy`, `OffsetByPt`, `InflatedBy` and `InflatedByPt` on
`GpRect` and `GpRectF`.
29 changes: 14 additions & 15 deletions WIP.Build.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ markdown file under `docs/` (`markdownFiles`), applies the real
`code_block` / `code_inline` contents in order. Any difference fails. It also
checks on every page that `blockRegions`, which parses blocks only, finds exactly
the fences, code blocks and HTML blocks of the full parse. It is the gate on
`lib/markdown.mjs` and `lib/frontmatter.mjs` too (twelve module probes), and
`lib/markdown.mjs` and `lib/frontmatter.mjs` too (the module probes), and
holds the tools that ask them what is code: `builder/counts.mjs`'s count
validator, `builder/discover.mjs`'s warning about an unquoted frontmatter value
that ends in `#`, and `scripts/convert_em_dash_separators.mjs`'s dash normaliser.
Expand All @@ -575,7 +575,7 @@ it**, so removing the mask from one rewrite changes what the gate runs and is
caught --- a gate that exercised `maskCode` alone would pass. And **its probes
ride along in the normal run**, because the corpus is clean: a sweep that finds
nothing is otherwise indistinguishable from a gate that has stopped detecting. A
rewrite moved outside the mask is caught by the seven region probes (one or two
rewrite moved outside the mask is caught by the region probes (one or two
per damage in the table above, and a doubled-backtick span) while the sweep still
reports zero. After changing the chain or `maskCode`, move one rewrite outside the
mask and confirm a probe fails.
Expand All @@ -600,7 +600,7 @@ definition list's `: ` makes, and leaves an admonition alone when its `[!TYPE]`
line is in a region. A fence *inside* an admonition is a region too, and the
rewrite still strips its `>` markers.

The six admonition probes and two "chain leaves alone" probes assert this. An
The admonition probes and the "chain leaves alone" probes assert this. An
admonition must still be converted between two ordinary fences, beside a fence
whose body holds a fence marker, after a tilde fence, after a fence closed by a
longer run, after a line whose backtick info string keeps it from opening a fence,
Expand Down Expand Up @@ -673,8 +673,8 @@ exit code (1), so no later step can clear it; a refused command line or a crash
exits 2 instead.

`scripts/check_page_baseline.mjs` is the gate on the gate, in `test.bat` and
both CI workflows: seventeen probes against a scratch baseline, no browser, no
built tree, six of them on who may write. **It is not optional bookkeeping** --- the guard is silent on a
both CI workflows: probes against a scratch baseline, no browser, no
built tree, some of them on who may write. **It is not optional bookkeeping** --- the guard is silent on a
healthy tree, so a green build is exactly what a guard that has stopped working
produces. One probe replays the loss of 37 pages; the two that look redundant
(foreign source root, missing baseline under CI) each guard one of the rules
Expand Down Expand Up @@ -712,7 +712,7 @@ foreword on every build. The emission sites are listed once, in `bookCoverage()`
two probes pin them.

`scripts/check_book_coverage.mjs` is the gate on it, in `test.bat` and both CI
workflows: twelve probes over pages and a manifest built in memory, so it reads nothing
workflows: probes over pages and a manifest built in memory, so it reads nothing
under `docs/`. Dropping the chaptered-landing site fails ten of the twelve; ignoring
`left_out:` fails nine.

Expand Down Expand Up @@ -975,8 +975,7 @@ A change to the sweep is checked on real pages, not only on the probes: put a wr
count back into a page, in each of the five shapes, and confirm the gate names every
site.

Thirteen of its twenty-four probes cover the sweep, eight positive and five
negative. One puts a fenced `## ` line, the shape of Wisdom.md's `staging.md`
Most of its probes cover the sweep, positive and negative. One puts a fenced `## ` line, the shape of Wisdom.md's `staging.md`
example, inside a wrapper's section, since sections are split through
`lib/markdown.mjs`'s `splitOnMarker` and a heading-shaped line in a region starts
none.
Expand Down Expand Up @@ -1046,15 +1045,15 @@ unbounded hang.
**Never quote a `degN` from a census.** The two backends disagree on it ---
the native agent says polynomial degree 2 where the pure-JavaScript fallback says
degree 3 on the same pattern --- while agreeing on exponential-or-not, which is
what the gate rests on, and on all eight classification probes. A degree is a
what the gate rests on, and on every classification probe. A degree is a
ranking aid for reading a census, not a number to write into prose.

Three implementation details are essential:

- **The self-test probes ride along inside the normal run**, not behind a
`--self-test` nobody remembers. Eight classification probes, both directions:
the three regexes this repo has shipped (including the incomplete fix),
`^(a+)+$`, and four that must *not* be flagged --- plus nineteen fold probes,
`--self-test` nobody remembers. Classification probes, both directions:
the regexes this repo has shipped (including the incomplete fix),
`^(a+)+$`, and some that must *not* be flagged --- plus the fold probes,
below. A green line saying "no exponential regex" is otherwise
indistinguishable from a gate that has stopped detecting.
- **Parallelism comes from separate processes.** Importing `recheck` spawns one
Expand All @@ -1071,7 +1070,7 @@ Three implementation details are essential:
a silent fall back to the pure-JS implementation --- correct, but roughly a
hundred times slower. The script resolves the binary properly and sets
`RECHECK_BIN` itself. If no native backend is found it says so in its summary
line rather than just being slow. Both backends classify all eight probes
line rather than just being slow. Both backends classify every probe
identically, so the fallback is slower, not weaker.

Limitation: a regex recheck cannot decide comes back `unknown`, and an unknown is
Expand Down Expand Up @@ -1112,8 +1111,8 @@ modelled calls does (`--census` lists them).
glob compiler building a pattern character by character. That is the difference
between a blind spot someone can close and one they can only watch.

Nineteen fold probes ride along in the normal run, eleven that must resolve to an
exact pattern and eight that must be refused with a reason. **The negative eight
Fold probes ride along in the normal run, some that must resolve to an
exact pattern and some that must be refused with a reason. **The negative ones
are the ones that matter**: a folder that resolves less than it claims does not fail,
it moves constructions into the unresolved list, where nothing checks them and
the run goes green. A folder that resolves *more* than it can know is worse, and the negatives
Expand Down
10 changes: 5 additions & 5 deletions WIP.ExamplesBuild.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ compiles](docs/Documentation/Authoring.md) in Authoring.md.

## State

Of 2,832 `tb` fences in 1,037 pages, **2,660 are marked `check_build`** and compile (BETA 1010,
a full run with no finding), and 166 are `inert` with a recorded reason (114 of them
signatures, most OLEGuids' methods). 5 are undecided, in four pages (three under `IDE/`, and
`ToolWindow.md` of the tbIDE section). 2 fences are an `excerpt`. The run takes about 190 s on four lanes.
`examples.bat --census` gives the current figures: how many `tb` fences there are, and how many
of them are marked `check_build`, `inert` with a recorded reason (most of those signatures, most
OLEGuids' methods), still undecided, or an `excerpt`. Every marked fence compiles. The run takes
about three minutes on four lanes.
1,076 of the marked samples are also `check_run`.

New marked samples should come from editing pages, not from marking: the unmarked fences
Expand Down Expand Up @@ -1008,6 +1008,6 @@ a reader writes.
one line each, because its purpose is "the control instances the samples assume". The
invented *classes* go in `hidden` fences, because a class is not a control instance and a
page is where it belongs. The line between the two is a judgement, not a rule.
- Which pages should carry `check_run` (1,076 samples do)? A sample states its output in its own
- Which pages should carry `check_run`? A sample states its output in its own
text, as a trailing comment on a `Debug.Print` line or as the comment lines under
`' Output:`; its comparison is only as useful as the pages that state a printed value.
Loading
Loading