FileNotFoundErrors from ModResourceLoader now end with .yaml instead of .json
まだ誰も着手していません。
評価
調査の方向性
Start with src/hexdoc/core/loader.py, especially ModResourceLoader.find_resource, which the traceback shows raising the FileNotFoundError; compare how it determines resource paths and extensions. The example is a missing recipe path ending in .yaml, while the title says these errors should end in .json. Confirm the expected extension behavior and add or run a focused test for the reported case; done means the error path matches the expected extension.
索引モデルが issue の本文から書いたものです。
説明
For example:
│ C:\Users\object\Git\hexdoc\src\hexdoc\minecraft\recipe\recipes.py:74 in load_resource │
│ │
│ 71 │ │
│ 72 │ @classmethod │
│ 73 │ def load_resource(cls, id: ResourceLocation, loader: ModResourceLoader): │
│ ❱ 74 │ │ return loader.load_resource( │
│ 75 │ │ │ "data", │
│ 76 │ │ │ "recipe" if IsVersion(">=1.21") else "recipes", │
│ 77 │ │ │ id, │
│ │
│ C:\Users\object\Git\hexdoc\src\hexdoc\core\loader.py:248 in load_resource │
│ │
│ 245 │ │ Raises FileNotFoundError if the file does not exist. │
│ 246 │ │ """ │
│ 247 │ │ │
│ ❱ 248 │ │ resource_dir, path = self.find_resource(*args, **kwargs) │
│ 249 │ │ return resource_dir, self._load_path( │
│ 250 │ │ │ resource_dir, │
│ 251 │ │ │ path, │
│ │
│ C:\Users\object\Git\hexdoc\src\hexdoc\core\loader.py:307 in find_resource │
│ │
│ 304 │ │ │ │ if path.is_file(): │
│ 305 │ │ │ │ │ return resource_dir, path │
│ 306 │ │ │
│ ❱ 307 │ │ raise FileNotFoundError(f"Path {path_stub} not found in any resource dir") │
│ 308 │ │
│ 309 │ @overload │
│ 310 │ def load_resources( │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
FileNotFoundError: Path data\hexcasting\recipe\pride_colorizer_pansexual.yaml not found in any resource dir
- 主要言語
- Python
- スター
- 7
- フォーク
- 10
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hexdoc-dev/hexdoc のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
hexdoc-dev/hexdoc#109 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
hexdoc-dev/hexdoc#108 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
hexdoc-dev/hexdoc#90 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 53/100
hexdoc-dev/hexdoc#107 ·
-
Support Toki Ponaオープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
hexdoc-dev/hexdoc#105 ·
hexdoc-dev/hexdoc の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
eclipse-score/inc_someip_gateway#356 ·
メンテナーはふだん 2 日以内に返信
-
[BUG]: `GitHubRestAdapter.check_user_permission` and `has_write_access` raise `TypeError` (missing `params`), silently disabling the inactivity lifecycle対応中かも @tarunagnihotri534 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
AOSSIE-Org/Gitcord-GithubDiscordBot#167 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
mihai-vlc/sublime-jsfmt#56 ·
-
comp/cli comp/plugins P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NousResearch/hermes-agent#141917 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
riscv/riscv-opcodes#441 ·