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

문서 검색

명세 6.0

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

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

    도구

    compiler status

    Reports installed compiler identities, default selection, and command support.

    Invocation, options and results

    링크

    topaz compiler status

    호출 형식
    1. topaz compiler status

    입력

    Use topaz compiler status with no positional operand. Accept only --format human or --format json, at most once, with human as the default.

    Reject --json, equals forms, repeated options, unsupported format values, missing values, source operands, compiler and language selectors and all other options before inspecting the installation.

    옵션과 충돌

    옵션기본값계약충돌
    --format human|jsonhuman

    Selects human output or one JSON report. The default is human output.

    없음

    출력 채널

    stdout

    stderr

    종료 상태

    0

    The complete installed compiler report is written, including an unhealthy compiler row.

    1

    Command arguments or report production fails.

    효과

    Inspect the installed compiler identity and admitted metadata. Do not compile source, allocate a build workspace, repair the installation or write any user file.

    Perform no network access, update check, registry query or compiler download.

    The same executable, admitted identity records, target and installation health produce identical JSON bytes and inventory ordering.

    A changed installation or health state is changed input. Current directory contents, wall clock time and a user package do not choose a different report.

    Do not discover or load the current directory as a package. Do not read, create or rewrite its manifest, lock or vendor tree.

    Compiler route inventory describes installed support and does not promise that dependencies for an arbitrary package are available.

    Operation

    링크

    Use this command to confirm the available compiler families and supported operations. JSON output provides the machine-readable support record.

    Option conditions

    링크

    Use --format json for the JSON report. The --json spelling is rejected.

    Behavior contract

    링크
    규칙tools-commands-compiler-status.rule.behavior

    Command behavior

    Arguments and rejection

    Use topaz compiler status with no positional operand. Accept only --format human or --format json, at most once, with human as the default.

    Reject --json, equals forms, repeated options, unsupported format values, missing values, source operands, compiler and language selectors and all other options before inspecting the installation.

    Output

    Human output on standard output identifies the product release, language mode, default compiler and its scope, reference compiler, bootstrap seed engine, installed self compiler health and absence of silent fallback.

    --format json writes one UTF-8 JSON object followed by a newline using topaz.compiler-support/v5. Its top level fields are schema, productVersion, languageMode, selfCompilationProductSchema, defaultCompiler, defaultScope, referenceCompiler, bootstrapSeedEngine, silentFallback, selectionOrigins, compilers, routes and previewProducers.

    silentFallback is false. selectionOrigins and previewProducers are string arrays. Each compiler row has string selector, producer and status. A supported self row also records its producer stage, execution kind, source, link, toolchain, target and digest identities. An unhealthy self row carries a string reason.

    Each route row has string command, rust, self, omitted and condition fields. The omitted selector route agrees with the installed product default. Human and JSON forms describe the same inventory.

    Usage or report production failures use standard error. Do not mix human banners into JSON output.

    Exit status

    Exit 0 after producing the complete report even when a compiler row reports unhealthy. An unhealthy inspected compiler is report data rather than a failed inspection command.

    Exit 1 for invalid arguments or failure to produce the report. The status command does not execute a source program to determine its exit code.

    Filesystem effects

    Inspect the installed compiler identity and admitted metadata. Do not compile source, allocate a build workspace, repair the installation or write any user file.

    Network access

    Perform no network access, update check, registry query or compiler download.

    Reproducibility

    The same executable, admitted identity records, target and installation health produce identical JSON bytes and inventory ordering.

    A changed installation or health state is changed input. Current directory contents, wall clock time and a user package do not choose a different report.

    Packages and locks

    Do not discover or load the current directory as a package. Do not read, create or rewrite its manifest, lock or vendor tree.

    Compiler route inventory describes installed support and does not promise that dependencies for an arbitrary package are available.

    이유

    Inspecting a compiler can succeed while the inspected compiler is unhealthy. Keeping the health state in the report preserves that distinction. The format selector changes representation without changing the compiler identities being inspected.

    The linked public CLI recipe checks the exact displayed argument rejection before the requested operation. It does not execute the successful operation or verify its effects.

    The reviewed recipe checks rejection of an extra source operand. A successful human or JSON inventory is outside that recipe and has not been executed in this sandbox.

    Example contract

    링크
    규칙tools-commands-compiler-status.rule.invocation

    Example contract

    The invocation topaz compiler status main.tpz --language-version 5.21 is expected to exit with 1.

    Reject the adapter-supplied extra positional operand. The status operation accepts no operand; the current dispatcher falls back to an unknown-command error for the compiler family. Status JSON is not exercised.

    이유

    Compiler status describes the installed toolchain. Rejecting a source operand prevents the report from appearing to describe compilation of that file.

    Example

    링크

    Argument-rejection example

    링크
    main.tpzArgument-rejection example플레이그라운드 열기 →
    1. function identity<T>(value: T) -> T {
    2. value
    3. }
    대상 제품 5.21.3
    기대 결과

    기대 결과

    Textual rejection details remain Pending in the reference model. The independent Tools example gate expects exit 1.

    Reject the adapter-supplied extra positional operand. The status operation accepts no operand; the current dispatcher falls back to an unknown-command error for the compiler family. Status JSON is not exercised.

    Verification scope

    링크

    Observed with Topaz 5.21.3 on 2026-11-06T08:36:29.642Z. This invocation passed; exit 1. 3 assertions were evaluated against the independent expected result. Execution record. This result covers the displayed invocation.

    Related references

    링크

    Compiler selection →

    Packages, locks and targets →

    메뉴

    다운로드 →