
I’m guessing this is the way it works, but is there a way to get accurate source location for this missing required keyword argument error? http://pasterack.org/pastes/20068

Code: (define (test #:a a #:b b)
(list a b))
(test #:a 1)

I think this is a bug and should get fixed, but I don’t have a workaround.

Works well for me in DrRacket (see screenshot). Do you need you want better source location in pasterack?

I think you have to turn on errortrace/"debuggin" in the drracket language dialog to get that

Yeah… Dr Racket is a fallback. Maybe requiring errortrace will help?

(with the cli version)

Yes, I think it will

lazy-require does not work with submodules (example code from https://docs.racket-lang.org/reference/lazy-require.html)
#lang racket
(require racket/lazy-require)
(module hello racket/base
(provide hello)
(printf "starting hello server\n")
(define (hello) (printf "hello!\n")))
(lazy-require
['hello ([hello greet])])
(greet)
dynamic-require: unknown module
module name: 'hello
the equivalent code works when used from the REPL. this is surprising, and I’ll open an issue for it (at least for docs), but I wanted to check if I’m just Holding It The Wrong Way.

Perhaps that should be (submod "." hello)
in the place of 'hello
?

The REPL is different :slightly_smiling_face:

I’ve heard it called hopeless, even.

Yes, quite :laughing: