To post back to the list, this was resolved:

  https://github.com/greghendershott/racket-mode/issues/499

On Wednesday, October 14, 2020 at 8:48:43 PM UTC-4, primer wrote:
>
> I'm trying to use (debug-repl) in the following simple program:
>
> #lang racket 
> (require debug/repl)
>
> (define (add a b)
>   (debug-repl)
>   (+ a b))
>
> (add 4 5)
>
> If I run this in Dr. Racket, then I get a repl prompt as expected.  
> However, I'm using Greg Hendershott's racket-mode for emacs, where it blows 
> up with the following:
>
> ; 
> ; Welcome to Racket v7.8.
> ; 
> > 
> ; cache-set!: contract violation
> ;   expected: path-string?
> ;   given: #f
> ;   in: the 6th argument of
> ;       (->
> ;        path?
> ;        syntax?
> ;        syntax?
> ;        string?
> ;        namespace?
> ;        path-string?
> ;        any)
> ;   contract from: (function cache-set!)
> ;   blaming: 
> d:\data\prj\EmacsUnification\emacs\home\.emacs.d\elpa\racket-mode-20200924.1506\racket\syntax.rkt
> ;    (assuming the contract is correct)
> ;   at: 
> d:\data\prj\EmacsUnification\emacs\home\.emacs.d\elpa\racket-mode-20200924.1506\racket\syntax.rkt:89.18
>
> I'm not sure if this is a bug or a setup issue.  FWIW, I'm setting up 
> racket-mode in my .emacs file as follows:
>
> (use-package racket-mode)
> (add-to-list 'auto-mode-alist '("\\.rkt\\'" . racket-mode))
> (require 'racket-xp)
> (add-hook 'racket-mode-hook #'racket-xp-mode)
> (add-hook 'racket-xp-mode-hook
>            (lambda ()
>              (remove-hook 'pre-redisplay-functions
>                            #'racket-xp-pre-redisplay
>                            t)))
>
> Has anyone had any luck getting these two things to play nice?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/4b92fe6d-d642-4f69-b751-908a5b414d20o%40googlegroups.com.

Reply via email to