[racket] help on error: module-path-index-resolve: "self" index has no resolution?

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Sun Nov 7 00:37:08 EDT 2010

I have seen this error occur when you are using DrRacket compilation
and something is out-dated. Restarting DrRacket and/or running from
the command-line doesn't result in the same error for me.

Jay

On Sat, Nov 6, 2010 at 7:39 PM, Danny Yoo <dyoo at cs.wpi.edu> wrote:
> I'm trying to reuse the definitions of ASL for Moby/js-vm, and ran
> across a strange macro error.  I've reduced a test case to show the
> bug:
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> ;; when.rkt
> #lang racket
> (define-syntax -when
>  ((lambda (dont-care)
>     (lambda (stx)
>       (syntax-case stx ()
>         [(_ q expr ...)
>          (syntax/loc stx
>            (when q expr ...))])))
>   42))
>
> (provide (rename-out [-when when]))
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> ;; test-when.rkt
> (when 42
>  'huh)
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> When I try to run test-when.rkt, I see the following error:
>
>    module-path-index-resolve: "self" index has no resolution:
> #<module-path-index>
>
> As far as I can tell, the bug is being triggered by the use of the
> function application to create when "when" value binding.  Does anyone
> know what's happening here?
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93


Posted on the users mailing list.