
Ideally, I wanted to omit the prompt character, but I’ll try the workaround with code:line
. Thanks! :slightly_smiling_face:

I tried it in my document, but IMHO it looks too strange/confusing/distracting.
By the way, another workaround is to use separate examples
invocations, even if it’s a bit tedious. I should (try to) write a macro for that. :wink:

My Scribble code now looks like: Vectors can be mutable or immutable. Literal vectors and those created with
@racket[vector-immutable] are immutable. Vectors created with @racket[vector]
are mutable.
@examples[
#:eval helper-eval
(define vec1 #(1 2 3))
(eval:error (vector-set! vec1 1 5))]
@examples[
#:eval helper-eval
#:label #f
(define vec2 (vector-immutable 1 2 3))
(eval:error (vector-set! vec2 1 5))]
@examples[
#:eval helper-eval
#:label #f
(define vec3 (vector 1 2 3))
(vector-set! vec3 1 5)
vec3]


is there a way to get the git hash or version of a package that is bundled with a Racket snapshot?

@capfredf basically no

@capfredf I have wanted this, too. I think it would work for raco pkg catalog-archive
(IIRC) to add a metadata field like upstream-checksum
to preserve it, since the checksum of a git package source is the commit hash.

@philip.mcgrath an easier solution is to include the output of raco pkg show -l
in the snapshot somewhere, which is what DrDr does