Skip to content

ariadne examples: declare requires: in every shipped document - #898

Merged
transfix merged 4 commits into
masterfrom
examples/ariadne-requires
Nov 1, 2026
Merged

transfix merged 4 commits into
masterfrom
examples/ariadne-requires

Conversation

@transfix

Copy link
Copy Markdown
Owner

What

Every document under examples/ariadne/ now declares a top-level requires: block.

  • Scene documents (hello, bunny_shadow, clip_planes, lsystem_forest, mesh_lab, fem_gallery, terminal_scene, transfer_function, volren_bunny, volslice_bunny, stream, conference_roster, nav_convoy) require gl.scene. ari has no scene adapter, so it now refuses them with one error instead of loading with the scene: block dropped and a warning. arigl (window and --terminal) is unaffected.
  • stream, conference_* list stream_view and the stream/room verbs they call; nav_compute lists nav-step; terminal_tour lists ui.windows, ui.menubar, quit.
  • terminal_images requires ui.windows and marks raster.bitmap optional (half-block cells still show the picture).
  • gl.shaders is deliberately not listed: no example supplies shaders: or a shader_canvas, and the terminal backend reports glsl = false regardless of the offscreen scene renderer.

Test and docs

  • AriadneComponents.ShippedExamplesDeclareWhatTheyNeed loads every .ari under examples/ariadne and checks each declares requires:, and that any document with a scene: requires gl.scene non-optionally.
  • docs/ARIADNE.md §5.7 notes the convention.

Not verified

Not built or run: the existing build-win directory targets an MSVC toolchain that is not installed on the authoring machine. CI is the first real run of the new test and of the example loads.

Behaviour change to be aware of: conference_roster and conference_live require room-join and friends, which arigl only registers when CVC_ARIADNE_RELAY is set. Without a relay they now fail at load with one error naming the missing verbs, rather than failing partway through at run time.

Each document under examples/ariadne/ now lists what it needs from the host. Scene documents
require gl.scene, so ari (which has no scene adapter) refuses them with one error instead of
dropping the scene: block with a warning. Documents that call stream, room, nav or quit verbs
list those, and terminal_images marks raster.bitmap optional because half-block cells still
show the picture.

AriadneComponents.ShippedExamplesDeclareWhatTheyNeed loads every .ari under examples/ariadne and
checks that each declares requires:, and that any document with a scene: requires gl.scene.
docs/ARIADNE.md section 5.7 notes the convention.

Not built or run on the authoring machine (no MSVC toolchain for the existing build dir).
…nds it

arigl --terminal registers stream_view through FtxuiBackend::register_widget,
which only stored the draw fn. ImGuiBackend::register_widget also calls
register_known_widget_type, which is what has_widget_type() (and so
requires: and (has? ...)) reads. So conference_media.ari's
requires: [stream_view] failed the load under --terminal
(arigl_terminal_stream_view, every package job), though the widget draws
there. The terminal backend now marks the type known too.
…quires

# Conflicts:
#	src/cvc/tests/ariadne_loader_test.cpp
@transfix
transfix merged commit 5184cb2 into master Nov 1, 2026
27 checks passed
@transfix
transfix deleted the examples/ariadne-requires branch November 1, 2026 02:41
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