Repository navigation
ariadne examples: declare requires: in every shipped document - #898
Merged
Merged
Conversation
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
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.
What
Every document under
examples/ariadne/now declares a top-levelrequires:block.hello,bunny_shadow,clip_planes,lsystem_forest,mesh_lab,fem_gallery,terminal_scene,transfer_function,volren_bunny,volslice_bunny,stream,conference_roster,nav_convoy) requiregl.scene.arihas no scene adapter, so it now refuses them with one error instead of loading with thescene:block dropped and a warning.arigl(window and--terminal) is unaffected.stream,conference_*liststream_viewand the stream/room verbs they call;nav_computelistsnav-step;terminal_tourlistsui.windows,ui.menubar,quit.terminal_imagesrequiresui.windowsand marksraster.bitmapoptional (half-block cells still show the picture).gl.shadersis deliberately not listed: no example suppliesshaders:or ashader_canvas, and the terminal backend reportsglsl = falseregardless of the offscreen scene renderer.Test and docs
AriadneComponents.ShippedExamplesDeclareWhatTheyNeedloads every.ariunderexamples/ariadneand checks each declaresrequires:, and that any document with ascene:requiresgl.scenenon-optionally.docs/ARIADNE.md§5.7 notes the convention.Not verified
Not built or run: the existing
build-windirectory 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_rosterandconference_liverequireroom-joinand friends, whichariglonly registers whenCVC_ARIADNE_RELAYis set. Without a relay they now fail at load with one error naming the missing verbs, rather than failing partway through at run time.