Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[p5.js 2.0+ Bug Report]: Some Vector friendly errors don't work correctly

Aperta
#8,930 11 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@Ayush4958 ci sta già lavorando.

Dal 20/7/2026.

  • #8933 di @BHARATH0153 — chiusa senza merge
  • #8998 di @Ayush4958 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Area:Math Bug p5.js 2.0+ Reserved (CodeDay)
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.0

Web browser and version

Brave 1.90.122

Operating system

Linux Mint 22.1

Steps to reproduce this
Steps:
  1. Run the snippet below. It has an error; the first param should be a vector.
  2. The expected output is a friendly error message "The v1 parameter should be of type Array or p5.Vector"
  3. Instead, it gives an error "TypeError: this._friendlyError is not a function"
Snippet:
function setup() {
  print(p5.Vector.equals(1, createVector(1, 2)));
}
Discussion

Friendly errors for vectors seem to work fine for instance methods like setValue(), but not for static methods like p5.Vector.equals.

Lingua principale
JavaScript
Stelle
24.1k
Fork
3.9k
Merge medio
3g 4h
PR unite (30g)
27

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di processing/p5.js

Tutte le issue di processing/p5.js

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.