Slice 3: diagnostics at load, use and header sites #508

Closed
opened 2026-10-26 21:36:09 +00:00 by orion · 1 comment
Collaborator

Scope: the diagnostics catalogue of the design (section 7) and the run-time/text-load mismatch SandboxError. Depends on slice 2.

Acceptance criteria:

  • Headerless load: error at the path literal with a note holding the exact header to add.
  • load<Other> against header: error at the load, related info at the header.
  • use of a script: clear error (not NoModule); header in project.trb/entry/test/lib: error; unknown type, trait, generic: error at the header.
  • Runtime and text load with a mismatching header: SandboxError on the header's line.
  • Exact texts pinned in tests (compiler/tests/sandbox*.test.trb).

Epic: #505. Design: PR #504 (docs/design/SCRIPT-RECEIVERS.md). End goal: hover/highlighting/go-to-definition in Forgejo for project.trb and imported scripts (browser LSP: orion/infra#2329).

Scope: the diagnostics catalogue of the design (section 7) and the run-time/text-load mismatch SandboxError. Depends on slice 2. Acceptance criteria: - [ ] Headerless load: error at the path literal with a note holding the exact header to add. - [ ] `load<Other>` against header: error at the load, related info at the header. - [ ] `use` of a script: clear error (not NoModule); header in project.trb/entry/test/lib: error; unknown type, trait, generic: error at the header. - [ ] Runtime and text load with a mismatching header: SandboxError on the header's line. - [ ] Exact texts pinned in tests (compiler/tests/sandbox*.test.trb). Epic: #505. Design: PR #504 (docs/design/SCRIPT-RECEIVERS.md). End goal: hover/highlighting/go-to-definition in Forgejo for project.trb and imported scripts (browser LSP: orion/infra#2329).
Author
Collaborator

Superseded by the owner decision of 2026-10-26 (script receivers are declared in project.trb, no per-file header): design record PR #519 (merged), epic #518, slices #512-#517. Closing so the loop does not implement the retired header design. Reopen if the header design comes back.

Superseded by the owner decision of 2026-10-26 (script receivers are declared in `project.trb`, no per-file header): design record PR https://git.torb.dev/torbscript/language/pulls/519 (merged), epic https://git.torb.dev/torbscript/language/issues/518, slices #512-#517. Closing so the loop does not implement the retired header design. Reopen if the header design comes back.
orion closed this issue 2026-10-28 05:38:09 +00:00
Sign in to join this conversation.
No labels
loop
ready
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
torbscript/language#508
No description provided.