5e5c406a创建于 2月18日历史提交
# Copyright (c) 2025-2026 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

arkts_config_error:

- name: CYCLIC_IMPORT
  id: 2
  message: Encountered cyclic import in 'extends' field

- name: DEPENDENCIES_ABSOLUTE
  id: 18
  message: "Don't use absolute path '{}' as key in 'dependencies'"

- name: DUPLICATED_DEPENDENCIES
  id: 9
  message: Duplicated dynamic path '{}' for key '{}'

- name: EMPTY_ARRAY_SUBSTITOTIONS
  id: 5
  message: Substitutions for pattern '{}' shouldn't be an empty array

- name: EMPTY_LIST
  id: 11
  message: The {} list in config file is empty

- name: FAILED_TO_OPEN_FILE
  id: 12
  message: Failed to open file {}

- name: INVALID_DESTINATION_FILE
  id: 16
  message: Invalid destination file

- name: INVALID_JSON
  id: 13
  message: ArkTsConfig is not valid json

- name: INVALID_JSON_TYPE
  id: 10
  message: The '{}' must have {} type

- name: INVALID_LANGUAGE
  id: 6
  message: Invalid '{}' value for dynamic path with key '{}'. Should be one of {}

- name: INVALID_NAMED_VALUE
  id: 8
  message: Invalid {} value for '{}' with key '{}'

- name: INVALID_PATH
  id: 17
  message: File '{}' not found (required from '{}', baseUrl is '{}').

- name: INVALID_VALUE
  id: 4
  message: Invalid value for '{}' with key '{}'

- name: NOT_A_DIR
  id: 19
  message: '{} is not a directory'

- name: NOT_ROOT_DIR
  id: 15
  message: '{} is not root directory for {}'

- name: NO_FILE
  id: 14
  message: No such file {}

- name: NO_MAIN_FILE
  id: 20
  message: Entry file for binary dependency {} is not specified

- name: UNRESOLVABLE_CONFIG_PATH
  id: 1
  message: Can't resolve config path {}

- name: UNSUPPORTED_LANGUAGE_FOR_INTEROP
  id: 7
  message: Interoperability with language '{}' is not supported

- name: WRONG_BASE_CONFIG
  id: 3
  message: Failed to parse base config {}

graveyard: []
# See ets_frontend/ets2panda/util/diagnostic/README.md before contributing.