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

False positive FES warning for loadModel(path, callback)

オープン 初心者向け
#9,295 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

@xsupremeyx がすでに取り組んでいます。

2026年10月16日 から。

  • #9300 @xsupremeyx による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript

調査の方向性

この警告は loadModel() に対する Friendly Error System の引数チェックから出ています。まずそこから始めて、2番目の引数に文字列を期待する分岐を見つけてください。loadModel(path, true) を扱っていた PR #9286 の修正と比較し、コールバック形式も同じチェックを通るようにしてください。有効なコールバックを渡した loadModel(path, callback) が FES の警告を出さず、loadModel(path, true) が従来どおり動作すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

p5.js 2.0+
Most appropriate sub-area of p5.js?
  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • WebGPU
  • p5.strands
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)
p5.js version

2.3.4

Web browser and version

Google Chrome 155.0.8059.40 (Official Build) (64-bit)

Operating system

Windows 11 Version 25H2 (Build 26200.9457)

Steps to reproduce this
Steps:
  1. Open the p5.js Web Editor.
  2. Upload a valid teapot.obj file into an assets folder in the sketch.
  3. Run the following sketch and check the console.
Snippet:
let teapot;

function setup() {
  createCanvas(400, 400, WEBGL);

  loadModel("/assets/teapot.obj", function (modelData) {
    teapot = modelData;
    console.log("Model loaded successfully:", modelData);
  });
}

function draw() {
  background(220);
  orbitControl();
  normalMaterial();

  if (teapot) {
    scale(2);
    model(teapot);
  }
}
Expected behavior

Calling loadModel(path, callback) with a valid callback should not produce a Friendly Error System (FES) warning.

Actual behavior

The model loads and renders successfully, and the callback executes. However, FES reports:

p5.js says: Expected string at the second parameter in loadModel().

This appears to be a false positive because the callback is a valid second argument for this overload.

Additional context

This is a follow-up to Issue #9176 and it's fix PR #9286 , which addressed the false-positive FES warning for loadModel(path, true).

The callback overload loadModel(path, callback) still produces a similar warning after that fix. I reproduced this behavior in the p5.js Web Editor using a local OBJ file.

I'd like to work on this issue if approved. Could a maintainer please review it and assign it to me if appropriate?

Screenshot of Issue Visually
Image
主要言語
JavaScript
スター
24.1k
フォーク
3.9k
平均マージ
2日 20時間
マージ済み PR(30日)
37

環境構築

はじめの一歩

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

processing/p5.js のほかの issue

processing/p5.js の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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