pixelkind / p5canvas

An interactive preview for writing p5js code in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=garrit.p5canvas
Other
39 stars 4 forks source link

Getting P5.JS' friendly error system into the console #57

Open ccoenen opened 2 years ago

ccoenen commented 2 years ago

Recent versions of P5.js have excellent error messages. We should look into getting them into the console.

ccoenen commented 1 year ago

I just learned that this is called "Friendly Error System": https://github.com/processing/p5.js/blob/main/contributor_docs/friendly_error_system.md

ccoenen commented 1 year ago

I fiddled around with _fesLogger for a good long while, until I realized that minified p5 just strips the debug logging stuff. I now included the full, unminified p5.js, and did no other modifications to p5canvas. This is the result:

grafik

ccoenen commented 1 year ago

I will now look into getting the filenames cleaner. Would you be fine with shipping full p5.js instead of minified @pixelkind?

ccoenen commented 1 year ago

whoopsie! it noticed! grafik

ccoenen commented 1 year ago

getting somewhere :-)

grafik