040 registry scope dotted

✗ Failing This test is currently failing.

Failed: backend-exec

Error Details

install

Failure Output

Showing last 10 of 29 lines
error: the following command failed with 1 compilation errors:
/opt/homebrew/Cellar/zig/0.15.2_1/bin/zig build-exe -ODebug --dep koru_parser --dep koru_ast=ast --dep koru_errors=errors --dep ast --dep flow_parser --dep liquid -Mroot=/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/430_RUNTIME/430_040_registry_scope_dotted/output_emitted.zig -ODebug --dep ast --dep lexer --dep errors --dep type_registry --dep expression_parser --dep union_collector --dep module_resolver -Mkoru_parser=/usr/local/lib/koru/src/parser.zig -ODebug --dep errors -Mast=/usr/local/lib/koru/src/ast.zig -ODebug -Merrors=/usr/local/lib/koru/src/errors.zig -ODebug --dep ast --dep lexer --dep errors --dep expression_parser -Mflow_parser=/usr/local/lib/koru/src/flow_parser.zig -ODebug -Mliquid=/usr/local/lib/koru/src/liquid.zig -ODebug -Mlexer=/usr/local/lib/koru/src/lexer.zig -ODebug --dep ast --dep log -Mtype_registry=/usr/local/lib/koru/src/type_registry.zig -ODebug --dep lexer --dep ast -Mexpression_parser=/usr/local/lib/koru/src/expression_parser.zig -ODebug --dep ast -Munion_collector=/usr/local/lib/koru/src/union_collector.zig -ODebug --dep config --dep log -Mmodule_resolver=/usr/local/lib/koru/src/module_resolver.zig -ODebug -Mlog=/usr/local/lib/koru/src/log.zig -ODebug --dep log -Mconfig=/usr/local/lib/koru/src/config.zig --cache-dir .zig-cache --global-cache-dir /Users/larsde/.cache/zig --name output --zig-lib-dir /opt/homebrew/Cellar/zig/0.15.2_1/lib/zig/ --listen=-

Build Summary: 0/3 steps succeeded; 1 failed
install transitive failure
+- install output transitive failure
   +- compile exe output Debug native 1 errors

error: the following build command failed with exit code 1:
.zig-cache/o/0f883d27a72b8668a7f5d17f9e245e9b/build /opt/homebrew/Cellar/zig/0.15.2_1/bin/zig /opt/homebrew/Cellar/zig/0.15.2_1/lib/zig /Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/430_RUNTIME/430_040_registry_scope_dotted .zig-cache /Users/larsde/.cache/zig --seed 0x6792d612 -Zdf78c5af345ac9d8

Code

// Test: Registry Scope - Dotted Scope Names
//
// Verifies scope lookup works with names like "api.v1" and that
// numeric arguments are parsed into typed inputs.

~import "$std/runtime"
~import "$std/io"

const std = @import("std");

~pub event greet { id: u64 }
| ok

~proc greet {
    return .{ .ok = .{} };
}

~std.runtime:register(scope: "api.v1") {
    greet(1)
}

const SOURCE = "~greet(id: 7)";

~std.runtime:parse.source(source: SOURCE, file_name: "dotted.kz", allocator: std.heap.page_allocator)
| parsed p |> std.runtime:eval(ast: p.ast, scope: "api.v1")
    | result _ |> std.io:print.ln("OK")
    | event_denied e |> std.io:print.ln("DENIED: {{e.name:s}}")
    | exhausted _ |> std.io:print.ln("EXHAUSTED")
    | validation_error _ |> std.io:print.ln("VALIDATION ERROR")
    | dispatch_error _ |> std.io:print.ln("DISPATCH ERROR")
    | scope_not_found _ |> std.io:print.ln("SCOPE NOT FOUND")
| parse_error e |> std.io:print.ln("PARSE ERROR: {{e.message:s}}")
input.kz

Test Configuration

MUST_RUN