본문으로 건너뛰기
토파즈6.0 · 출시 전
다운로드 →

문서 검색

명세 6.0

방향키로 결과를 고르고 Enter를 눌러 여세요.

API 이름, 진단 번호, 규칙 또는 프로젝트 주제를 입력하세요.

    진단 TPZ3002

    The selected entry file is not contained by the active module root.

    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.

    대응

    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.

    규칙diagnostics.tpz3002.rule

    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

    링크
    example.tpzProduct diagnostic test플레이그라운드 열기 →
    1. let value = 1
    대상 제품 5.21.3
    기대 결과

    기대 결과

    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/../example.tpz --language-version 5.21.

    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/../example.tpz:1:1.

    Expect exactly one diagnostic.

    The diagnostic product test checks these expectations with the same files and command.

    Corrected program

    링크
    example.tpzCorrected program
    1. let value = 1
    기대 출력종료 코드 0
    $ topaz check example.tpz · 대상 제품 5.21.3
    기대 결과

    기대 결과

    검사가 프로그램을 받아들입니다. 종료 코드 0.

    This program applies the repair described above. The verification status records whether it has been run.

    메뉴

    다운로드 →