dan.ml.901
2022-3-22 15:30:38

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


dan.ml.901
2022-3-22 15:30:52

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


samth
2022-3-22 15:35:49

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


laurent.orseau
2022-3-22 15:42:26

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


samth
2022-3-22 15:43:22

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


dan.ml.901
2022-3-22 15:45:21

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


dan.ml.901
2022-3-22 15:45:30

(with the cli version)


samth
2022-3-22 15:45:30

Yes, I think it will


dan.hillier.anderson
2022-3-22 17:21:09

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.


ben.knoble
2022-3-22 17:35:15

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


ben.knoble
2022-3-22 17:35:35

The REPL is different :slightly_smiling_face:


dan.hillier.anderson
2022-3-22 17:55:37

I’ve heard it called hopeless, even.


ben.knoble
2022-3-22 18:13:50

Yes, quite :laughing: