✗
Failing This test is currently failing.
Failed: backend-exec
Error Details
install
Failure Output
Showing last 10 of 21 lines
error: the following command failed with 1 compilation errors:
/opt/homebrew/Cellar/zig/0.15.2_1/bin/zig build-exe -ODebug --dep parser --dep ast_serializer -Mroot=/Users/larsde/src/koru/tests/regression/200_COMPILER_FEATURES/220_COMPILATION/220_006_std_module_type_ref/output_emitted.zig -ODebug --dep ast --dep ast_mangle --dep lexer --dep errors --dep type_registry --dep expression_parser --dep annotation_parser --dep union_collector --dep module_resolver --dep file_types -Mparser=/Users/larsde/src/koru/src/parser.zig -ODebug --dep ast --dep parser --dep log -Mast_serializer=/Users/larsde/src/koru/src/ast_serializer.zig -ODebug --dep errors -Mast=/Users/larsde/src/koru/src/ast.zig -ODebug --dep ast -Mast_mangle=/Users/larsde/src/koru/src/ast_mangle.zig -ODebug -Mlexer=/Users/larsde/src/koru/src/lexer.zig -ODebug -Merrors=/Users/larsde/src/koru/src/errors.zig -ODebug --dep ast --dep log -Mtype_registry=/Users/larsde/src/koru/src/type_registry.zig -ODebug --dep lexer --dep ast -Mexpression_parser=/Users/larsde/src/koru/src/expression_parser.zig -ODebug -Mannotation_parser=/Users/larsde/src/koru/src/annotation_parser.zig -ODebug --dep ast -Munion_collector=/Users/larsde/src/koru/src/union_collector.zig -ODebug --dep config --dep log --dep file_types -Mmodule_resolver=/Users/larsde/src/koru/src/module_resolver.zig -ODebug -Mfile_types=/Users/larsde/src/koru/src/file_types.zig -ODebug -Mlog=/Users/larsde/src/koru/src/log.zig -ODebug --dep log -Mconfig=/Users/larsde/src/koru/src/config.zig -lc --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/f4af12f5a35957fc3916868e65fa2340/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/200_COMPILER_FEATURES/220_COMPILATION/220_006_std_module_type_ref .zig-cache /Users/larsde/.cache/zig --seed 0xd654c809 -Z0ef65db5819b830c Code
// Test: Reference types from std imports using module:Type syntax
//
// When we import a standard library module that exposes Zig types,
// we should be able to reference those types in event signatures
// using the same module:Type syntax as local imports.
//
// Example: std/koru:ParseResult should resolve to parser_impl.ParseResult
//
// This enables type-safe integration with runtime libraries without
// needing a redundant Zig @import.
~import std/koru
const std = @import("std");
// Event that processes a parse result - uses TYPE from std import
~tor process-ast {
result: std/koru:ParseResult,
} -> usize
~proc process-ast|zig {
return result.source_file.items.len;
}
// Event to report count
~tor report { count: usize }
~proc report|zig {
std.debug.print("AST has {} items\n", .{count});
}
// Sample code to parse
const SAMPLE =
\\~tor test {}
\\| done
;
// Flow: parse → process → report
~std/koru:parse.source(source: SAMPLE, file_name: "test.kz", allocator: std.heap.page_allocator)
| parsed p |> process-ast(result: p): r |> report(count: r)
| parse-error _ |> report(count: 0)
Expected output
AST has 1 items
Flows
flow ~parse.source click a branch to expand · @labels scroll to their anchor
parse.source (source: SAMPLE, file_name: "test.kz", allocator: std.heap.page_allocator)
Test Configuration
MUST_RUN