✗
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_007_parser_dump_ast/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/5537d2336af27c32d00e605a0884687d/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_007_parser_dump_ast .zig-cache /Users/larsde/.cache/zig --seed 0xa88d2eba -Z71af27108d7d3147 Code
// Test: AST dump to JSON
//
// Parses Koru source code and dumps the AST as JSON.
// This enables tools to inspect parsed structure.
//
// Pure Koru - no Zig procs needed!
~import std/koru
~import std/io
const std = @import("std");
// Sample code to parse
const SAMPLE =
\\~tor hello {}
;
// Flow: parse → dump → print (pure Koru!)
~std/koru:parse.source(source: SAMPLE, file_name: "test.kz", allocator: std.heap.page_allocator)
| parsed p |> std/koru:dump.ast(ast: p, allocator: std.heap.page_allocator)
| dumped d |> std/io:print.ln("{{d:s}}")
| dump-error e |> std/io:print.ln("Dump error: {{e:s}}")
| parse-error e |> std/io:print.ln("Parse error: {{e:s}}")
Expected output
{
"module_annotations": [
],
"items": [
{
"type": "event_decl",
"name": "hello",
"path": ["hello"],
"module": "test",
"input": {
"fields": [
]
},
"branches": [
],
"location": {
"file": "test.kz",
"line": 1,
"col": 0
}
}
]
}
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