pyret-lang icon indicating copy to clipboard operation
pyret-lang copied to clipboard

Using essentials2021 offline

Open me-ch opened this issue 2 years ago • 1 comments

After installing the pyret-npm package, I tried running some of the code on chapter 3.1 of DCIC.

Compiling code with the use context essentials2021 line gave me the following error message:

Compiling worklist...Could not find builtin module essentials2021 in any of ./.pyret/compiled, /usr/lib/node_modules/pyret-npm/pyret-lang/build/phaseA/lib-compiled

I tried using essentials2020 instead but it looks like it does not define the circle, triangle, overlay, above, and rectangle methods

me-ch avatar Nov 08 '23 19:11 me-ch

https://github.com/brownplt/pyret-lang/issues/1583#issuecomment-824494535

"At the moment, some of the libraries on code.pyret.org aren't supported offline, and image is one of them, so if you have import image or include image in your program, that would explain the issue."

Haha.

Those drunk pirates are letting you hang since November. I'm abandoning this sinking ship. Ahoy...

Them pirates can send me a letter in a bottle (or reply to my issue #1724), once they realize the importance of doing computing on your own computer and offline.

user706 avatar Dec 18 '23 21:12 user706

@jpolitz I think this is related to #1724 , so if that's ok to close than so is this.

schanzer avatar Sep 11 '25 15:09 schanzer

Sorry this didn't get a response at the time @user706 . The all-online-ness is something we've actively been working on and know is frustrating.

You don't need to be all-online to do this anymore. The VScode extension will let you do work entirely offline (https://marketplace.visualstudio.com/items?itemName=PyretProgrammingLanguage.pyret-parley), the release notes link to some other new functions that let you load and save images from local files: https://pyret.org/release-notes/2025.html

jpolitz avatar Sep 11 '25 17:09 jpolitz