Diagnostic and cause
링크Entry is outside module root
- 계열
- topaz
- 단계
- resolve
- 코드
TPZ3002
원인과 조건
An entry path containing a complete .. segment is rejected with TPZ3002 before the resolver requests source files.
관련 규칙 · Trigger and repair →대응
Pass the direct entry path without .. and choose a root directory that contains the entry.
Compiler phase: resolve.
Compiler explanation: The selected entry file is not contained by the active module root.
Message templates are Pending. The explanation above is not an observed CLI message.
The entry or root contains a parent path segment. The resolver also rejects a root equal to the entry or a root that does not contain it. The CLI checks the latter two cases before resolution.
Trigger and repair
An entry path containing a complete .. segment is rejected with TPZ3002 before the resolver requests source files.
Response
링크Pass the direct entry path without .. and choose a root directory that contains the entry.
Reproduction and verification
링크Product diagnostic test
링크let value = 1
기대 결과
기대 결과
The separate diagnostic product test validates this command, runtime diagnostic, or filesystem setup. The shared example runner does not execute that assertion plan.
Run topaz check parent/.
Expect exit status 1, empty standard output, and TPZ3002.
The entry or root contains a parent path segment. The resolver also rejects a root equal to the entry or a root that does not contain it. The CLI checks the latter two cases before resolution.
The primary location is parent/.
Expect exactly one diagnostic.
The diagnostic product test checks these expectations with the same files and command.
Corrected program
링크let value = 1
기대 결과
기대 결과
검사가 프로그램을 받아들입니다. 종료 코드 0.
This program applies the repair described above. The verification status records whether it has been run.