[plt-dev] Weird bug

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Tue Mar 17 18:30:35 EDT 2009

I have a planet package with a file called main that exports 'error'

When I try to run the following module:

#lang scheme
(require (planet cce/scheme:4:1/planet))
(require (for-label (only-in (this-package-in main)
                              error)))

I get the following error:

module: identifier already imported from a different source in:
  error
  (rename (planet plai/plai:1:0/main) error error)
  (rename (planet plai/plai:1:0/main) error error)

It macro expands to:

(module test scheme
  (#%module-begin
   (#%require (planet cce/scheme:4:1/planet))
   (#%require
    (just-meta 1 (for-meta #f (rename (planet plai/plai:1:0/main) error error)))
    (just-meta 0 (for-meta #f (rename (planet plai/plai:1:0/main) error error)))
    (for-meta #f (only (planet plai/plai:1:0/main))))))

I can't seem to get an error without using planet or cce's library.

Any idea?

Jay

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

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


Posted on the dev mailing list.