Skip to content

Error using #:auto-value of number#556

Open
bdeket wants to merge 1 commit into
racket:masterfrom
bdeket:patch-1
Open

Error using #:auto-value of number#556
bdeket wants to merge 1 commit into
racket:masterfrom
bdeket:patch-1

Conversation

@bdeket

@bdeket bdeket commented Apr 8, 2026

Copy link
Copy Markdown

Make sure that syntax-span is not false before checking length

currently rendering scribble with an auto-value (or using #:value with other syntax objects that are numbers) fails.
This fixes the direct problem for me, but I'm not sure it's the best approach.

Example:

#lang scribble/manual

@(module a racket/base
   (provide :a :b)
   (define :a 4.8)
   (define :b 'symbol))

@(require (for-label (submod "." a)))

@defthing[:b symbol? #:auto-value]
@defthing[:a number? #:value 3.5]
@defthing[:a number? #:auto-value] @;; this fails

tested using "Welcome to DrRacket, version 9.1.0.11 [cs]." on windows

Make sure that span is not false before checking length
bdeket added a commit to bdeket/rktsicm that referenced this pull request Jun 11, 2026
put documentation in separate package and incorporate into master branch
(local builds will fail until racket/scribble#556 is resolved)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant