[racket] quack qunundrum

From: Greg Hendershott (greghendershott at gmail.com)
Date: Tue Nov 30 06:28:22 EST 2010

Although Windows path and file names preserve case, comparisons are
not case-sensitive.

This looks like a bug with the -S / --search command line parameter in
the Windows version.

WINDOWS
----
c:\Users\Greg>racket -i -q -S C:/Users/Greg/site/geiser/scheme/racket
-f c:/Users/Greg/site/geiser/scheme/racket/geiser/startup.rkt

Welcome to Racket v5.0.2.
c:/Users/Greg/site/geiser/scheme/racket/geiser/startup.rkt:21:9:
geiser/user: standard-module-name-resolver: collection not found:
"geiser" in any of: (#<path:C:\Program Files (x86)\Racket\collects>)
in: geiser/user


 === context ===
standard-module-name-resolver
C:\Program Files
(x86)\Racket\collects\errortrace\errortrace-lib.rkt:398:2:
errortrace-annotate
C:\Program Files (x86)\Racket\collects\errortrace\errortrace-lib.rkt:441:4

> (current-library-collection-paths)
'(#<path:C:\Program Files (x86)\Racket\collects>)
>
----

Notice how current-library-collection-paths does not return the path
supplied by the -S argument. Shouldn't it?


Trying similar on OS X is as-expected:
current-library-collection-paths returns the path.

I'll post a fresh message narrowing this down.

On Mon, Nov 29, 2010 at 4:12 PM, Jose A. Ortega Ruiz <jao at gnu.org> wrote:
> On Mon, Nov 29 2010, Greg Hendershott wrote:
>
>
> [...]
>
>> Just this:
>>
>> (load-file "~/site/geiser/elisp/geiser.el")
>> (setq geiser-active-implementations '(racket))
>
> Looks right.
>
>>> What is the value of the variable
>>> geiser-scheme-dir inside Emacs (from the trace above, it should be
>>> something like "c:/Users/Greg/site/geiser/scheme/racket/")?
>>
>> "c:/users/greg/site/geiser/scheme"
>
> That too (sorry, that was what i meant). So geiser is calling racket
> with -S c:/users/greg/site/geiser/scheme/racket in its argument list. If
> you call that yourself in a shell, does the library path in the repl
> include that directory? (Sorry, i don't have any windows machine to try
> myself) BTW, Are windows pathnames case-insensitive?
>
> Cheers,
> jao
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>


Posted on the users mailing list.