shriram / plai-public

Repository for (for now) filing bug reports about PLAI.
6 stars 0 forks source link

The #lang headers in the smol tutorials are wrong #6

Closed MichaelJFishman closed 1 year ago

MichaelJFishman commented 1 year ago

Contact Details

michaeljfishman@proton.me

What's your suggestion?

EDIT: I've since found the stacker repo. After installing stacker, the #lang stacker/smol/fun works. So rather than the headers being wrong, it may be that the instructions in the last step of the scope tutorial omit mentioning that stacker needs to be installed.

The #lang headers in the smol tutorials (eg the scope tutorial)) do not work. These are the tutorials linked in the Teach Yourself SMoL section of PLAI Version 3.2.1, 2023-01-10.

These tutorials use the #lang header

#lang stacker/smol/fun

Using these in DrRacket gives the error

standard-module-name-resolver: collection not found
  for module path: stacker/smol/fun/lang/reader
  collection: "stacker/smol/fun/lang"
  in collection directories:
  <collects directory>
   ... [165 additional linked and package directories]
  no package suggestions are available .

The correct header, according to the smol readme, is

#lang smol/fun

I verified that the latter works, at least after following the installation instructions in the above readme.

shriram commented 1 year ago

Thank you. KC has edited the tutorial to now make this explicit:

image

Does that make sense?

MichaelJFishman commented 1 year ago

This makes sense. Thanks!