[plt-scheme] Current library collection paths and Check Syntax

From: jos koot (jos.koot at telefonica.net)
Date: Wed Apr 18 05:51:13 EDT 2007

Hi,
Consider:

Definitions window:
(module runs-well-but-does-not-pass-syntax-check mzscheme
 (begin-for-syntax
  (current-library-collection-paths
   (cons
    "c:/scheme/kcollects"
    (current-library-collection-paths))))
 (require (lib "for.ss" "for")) ; from c:/scheme/kcollects/for/for.ss
 (for ((i 1 3)) (printf "~s~n" i)))

This works fine when pressing the run button, but Check Syntax can't process the require form. Check Syntax results in:

DrScheme internal error
standard-module-name-resolver: collection not found: "for" in any of: (#<path:C:\Documents and Settings\HP_Eigenaar\Application 
Data\PLT Scheme\369.9\collects> #<path:C:\Program Files\PLT-FULL-369.9\collects>)

The definitions window is blanked out. The only possible way to proceed is to close all DrScheme windows.

May be I am doing a nasty thing, but having a program that runs well but does not pass Check Syntax is somewhat confusing. I did 
this with DrScheme, version 369.9-svn14apr2007 [3m]. Language: (module ...)

Be assured that I like PLT very much, Jos Koot

(((((lambda(x)((((((((x x)x)x)x)x)x)x)x))
    (lambda(x)(lambda(y)(x(x y)))))
   (lambda(x)(x)x))
  (lambda()(printf "Greetings, Jos~n")))) 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20070418/731558a6/attachment.html>

Posted on the users mailing list.