Diagnostic and cause
링크Invalid extern replay or sandbox binding
- 계열
- topaz
- 단계
- check
- 코드
TPZ5032
원인과 조건
An imported extern module needs a valid deterministic replay binding. Malformed replay data is rejected at the module import.
관련 규칙 · Invalid extern replay or sandbox binding →대응
Provide the replay fixture required by the declared extern module. Correct malformed fixture data and add the missing operation entry.
Compiler phase: check/package.
Compiler explanation: An extern module is missing a deterministic replay fixture, has invalid replay data, or calls an entry not present in replay.
Message templates. The marker ⟨value⟩ stands for text computed for the reported program.
- extern module
⟨value⟩has an invalid deterministic replay binding: ⟨value⟩ Source
An imported extern module needs a valid deterministic replay binding. Malformed replay data is rejected at the module import.
Invalid extern replay or sandbox binding
An imported extern module needs a valid deterministic replay binding. Malformed replay data is rejected at the module import.
Response
링크Provide the replay fixture required by the declared extern module. Correct malformed fixture data and add the missing operation entry.
Reproduction and verification
링크Rejected program
링크import host.math { twice }export function main(args: Array<string>, stdin: string) -> Result<int, string> {Ok(0)}
표준 출력 없음.[package]name = "diagnostic_extern"version = "0.1.0"language = "5.21"entry = "main.tpz"[extern.host.math]hash = "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"abi_hash = "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"[[extern.host.math.functions]]name = "twice"params = ["int"]result = "int"[extern.host.math.replay]fixture = "replay/host-math.jsonl"[extern.host.math.sandbox]kind = "replay"
{"module":"host.math","function":"twice","args":"not-array","result":{"$":"int","value":"42"}}
기대 결과
This complete package fixture uses invocationArgs without a positional source file.
Repaired program
링크import host.math { twice }export function main(args: Array<string>, stdin: string) -> Result<int, string> {Ok(0)}
[package]name = "diagnostic_extern"version = "0.1.0"language = "5.21"entry = "main.tpz"[extern.host.math]hash = "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"abi_hash = "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"[[extern.host.math.functions]]name = "twice"params = ["int"]result = "int"[extern.host.math.replay]fixture = "replay/host-math.jsonl"[extern.host.math.sandbox]kind = "replay"
{"module":"host.math","function":"twice","args":[{"$":"int","value":"21"}],"result":{"$":"int","value":"42"}}
기대 결과
기대 결과
검사가 프로그램을 받아들입니다. 종료 코드 0.
This complete package fixture uses invocationArgs without a positional source file.