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

문서 검색

명세 6.0

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

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

    진단 TPZ3003

    A module source exceeds the compiler's bounded source-map size.

    Diagnostic and cause

    링크

    Module source is too large

    계열
    topaz
    단계
    resolve
    코드
    TPZ3003

    원인과 조건

    An imported file that is not valid UTF-8 produces TPZ3003 at its import path.

    대응

    Save the source as valid UTF-8 and make the module file and its containing directories readable. For a size-related failure, split the source into smaller modules.

    Compiler phase: resolve.

    Compiler explanation: A module source exceeds the compiler's bounded source-map size.

    Message templates. The marker ⟨value⟩ stands for text computed for the reported program.

    • cannot load entry ⟨value⟩: ⟨value⟩ Source
    • cannot load entry ⟨value⟩: source is not valid UTF-8 Source
    • cannot inspect module path for ⟨value⟩: ⟨value⟩ Source

    The resolver cannot read a source file or inspect a module directory. Invalid UTF-8 produces this diagnostic as well. The reproduction replaces lib.tpz with the single byte ff.

    규칙diagnostics.tpz3003.rule

    Trigger and repair

    An imported file that is not valid UTF-8 produces TPZ3003 at its import path.

    Response

    링크

    Save the source as valid UTF-8 and make the module file and its containing directories readable. For a size-related failure, split the source into smaller modules.

    Reproduction and verification

    링크

    Product diagnostic test

    링크
    example.tpzProduct diagnostic test플레이그라운드 열기 →
    1. import lib
    대상 제품 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.

    Prepare the files shown above, then complete this setup.

    Write the hexadecimal byte sequence ff to lib.tpz.

    Run topaz check example.tpz --language-version 5.21.

    Expect exit status 1, empty standard output, and TPZ3003.

    The resolver cannot read a source file or inspect a module directory. Invalid UTF-8 produces this diagnostic as well. The reproduction replaces lib.tpz with the single byte ff.

    The primary location is example.tpz:1:8.

    Expect exactly one diagnostic.

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

    Corrected program

    링크
    example.tpzCorrected program플레이그라운드 열기 →
    1. import lib
    기대 출력종료 코드 0
    $ topaz check example.tpz · 대상 제품 5.21.3
    lib.tpzCorrected program플레이그라운드 열기 →
    1. export let value = 1
    기대 결과

    기대 결과

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

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

    메뉴

    다운로드 →