soegaard / metapict

A graphics library for producing Racket picts in a MetaPost/TikZ style.
http://soegaard.github.io/metapict/
65 stars 13 forks source link

Collection not found #48

Closed jsampson45 closed 2 weeks ago

jsampson45 commented 2 weeks ago

I am new to Racket. I tried to install metapict using file / Package Manager in DrRacket. As far as I could see no error messages appeared during the apparent installation but when I "run" #lang metapict there is a long error message:

standard-module-name-resolver: collection not found for module path: metapict/lang/reader collection: "metapict/lang" in collection directories: C:\Users\jrsid\AppData\Roaming\Racket\8.14\collects C:\Program Files\Racket\collects\ ... [183 additional linked and package directories] packages that provide the missing module: . metapict .

Where do I go from here?

soegaard commented 2 weeks ago

@jsampson45 The issue is that metapict isn't a new language, but a library. You can start you programs like this:

#lang racket
(require metapict)
(draw (rectangle (pt 0 0) (pt 1 1)))

Invoked like this, the rectangle commands draws a rectangle where the two points are opposite corners.

jsampson45 commented 2 weeks ago

Thanks - I have tried again and it is working. Kind regards John Sampson On 01/10/2024 11:57:21, Jens Axel Søgaard @.***> wrote: @jsampson45 [https://github.com/jsampson45] The issue is that metapict isn't a new language, but a library. You can start you programs like this:

lang racket (require metapict) (draw (rectangle (pt 0 0) (pt 1 1)))

Invoked like this, the rectangle commands draws a rectangle where the two points are opposite corners. — Reply to this email directly, view it on GitHub [https://github.com/soegaard/metapict/issues/48#issuecomment-2385467577], or unsubscribe [https://github.com/notifications/unsubscribe-auth/APUQLDWPAYLC4WAP3IETU3TZZJ5Y3AVCNFSM6AAAAABPFHY6XGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBVGQ3DONJXG4]. You are receiving this because you were mentioned.Message ID: @.***> [106c8c0d-92c6-40a3-9320-ce536e72bc54]

soegaard commented 2 weeks ago

Great to hear.