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

[draft] fix: Better error message when there is cross-pollination between typegpu versions

Aperta
#3,146 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
tooling

Direzione di ricerca

Start by locating isData, the accessor path that calls schemaOrConstructor, and other checks for whether a value belongs to this typegpu instance. Trace how values carrying a symbol whose description starts with typegpu: are handled, then verify that these cases produce the cross-instance error instead of a function-call error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

[!caution]
DRAFT

There's an opportunity to have better errors from isData failures. In my recent example, an accessor saw a value that wasn't recognised as a schema, assumed it was a function, and called it, giving schemaOrConstructor is not a function. If the value carries a symbol from another typegpu copy (description starts with typegpu:), an error saying "this schema comes from a different typegpu instance" could be thrown instead. The same check would help everywhere typegpu tests whether a value is one of its own objects.

Lingua principale
TypeScript
Stelle
3.3k
Fork
135
Merge medio
4g 1h
PR unite (30g)
64

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 software-mansion/TypeGPU

Tutte le issue di software-mansion/TypeGPU

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.