processing / processing-docs

[Deprecated] Processing reference, examples, tutorials, and website
https://processing.org
371 stars 179 forks source link

Add Rosetta Code example set #787

Closed jeremydouglass closed 4 years ago

jeremydouglass commented 4 years ago

Adds the PDE Processing Rosetta Code example set to Contributions Manager. https://github.com/jeremydouglass/processing_rosetta_examples

jeremydouglass commented 4 years ago

Hmm. Odd.

In PDE > Contrib > Examples > Rosetta Code > Install,

I'm getting the error "Could not find a examples in the downloaded file".

Odd, because when I take the URL in sources.conf, change .txt to .zip, and download that file and unzip, there is clearly an "examples" sub folder.

https://github.com/jeremydouglass/processing_rosetta_examples/releases/latest/download/processing_rosetta_examples.zip

And when I check a comparable example set -- like https://shiffman.net/p5/examples/natureofcode.txt -- the corresponding .zip has an examples folder and the same files, in the same way. I'm not sure what is causing this error....

REAS commented 4 years ago

@prisonerjohn Can you have a look at this?

REAS commented 4 years ago

I also received the "Could not find examples in the downloaded file" error message. I was able to download the ZIP through a browser and then to unZIP it. After I manually placed it into the Examples folder, the examples behaved as expected.

jeremydouglass commented 4 years ago

@REAS thanks -- it looks like the zip was built by my release script such that it lacked a top-level folder. My MacOS Finder unzip automatically creates a top-level folder matching the zip file name if there is not one, so this problem wasn't apparent to either of us when inspecting and manually installing the file that way.

@prisonerjohn pointed this out (thanks!) and requested a name change, so I have submitted a new URL to a renamed repo https://github.com/jeremydouglass/rosetta_examples_p5/releases/latest/download/rosetta_examples_p5.txt via email and prisonerjohn will commit to sources.conf.

prisonerjohn commented 4 years ago

Should be good to go now