Vite is trying to compile the scripts/parsers/in contents

Aperta
#722 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@kajal-jotwani ci sta già lavorando.

Dal 12/3/2025.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, vite
Ambito
build-system

Direzione di ricerca

Inizia eseguendo npm run build:reference e npm run dev, quindi verifica come scripts/parsers/in ed eventualmente scripts/parsers/out vengono gestiti dal reference build e da Vite. Conferma che il workflow di riferimento non causi più la compilazione da parte di Vite di contenuti non necessari dei parser e che entrambi i comandi vengano completati correttamente.

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

Descrizione

Bug
Most appropriate sections of the p5.js website?

Other (specify if possible)

What is your operating system?

Windows

Web browser and version

N/A

Actual Behavior

When running npm run dev, sometimes we run into Vite errors because it's trying to compile the js code in scripts/parsers/in and you get an error message from the internals of p5.sound. @lukeplowden and I have also found that the time from starting the dev server to being able to load the site is noticeably faster (at least on windows) after deleting the contents of that folder.

Expected Behavior

The scripts/parsers/in folder is mostly just used to produce the reference material. So far, we keep it around based on the assumption that cloning and setting up the main p5.js would be slower if we didn't, but we don't update the website reference all that often (just when a new version is released) compared to how often we make other changes to the site. So maybe it would be best if the reference parser script clears out the scripts/parsers/in folder after it's done? (Possibly scripts/parsers/out too?)

Steps to reproduce
Would you like to work on the issue?

Someone else can take this on if desired!

Lingua principale
MDX
Stelle
97
Fork
330
Merge medio
3g 15h
PR unite (30g)
13

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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-website

Tutte le issue di processing/p5.js-website

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.