Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

FileNotFoundErrors from ModResourceLoader now end with .yaml instead of .json

オープン
#106 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python
領域
tooling

調査の方向性

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hexdoc-dev/hexdoc のほかの issue

hexdoc-dev/hexdoc の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。