[racket] identifier is already imported
Thanks. I've fixed this; below is the output I get for this program:
#lang racket
(require (planet aml/rosetta:1:=2))
Robby
Welcome to DrRacket, version 5.3.1.1--2012-10-10(f756f694/d) [3m].
Language: racket [custom]; memory limit: 128 MB.
matrix.rkt:70:8: module: identifier is already imported
at: matrix?
in: (define-values (struct:matrix matrix1 matrix? matrix-vals)
(let-values (((struct: make- ? -ref -set!) (syntax-parameterize
((struct-field-index (lambda (stx) (syntax-case stx (vals) ((_ vals)
(syntax 0)) ((_ name) (raise-syntax-error #f "no such f...
On Wed, Oct 10, 2012 at 6:09 PM, Antonio Menezes Leitao
<antonio.menezes.leitao at ist.utl.pt> wrote:
> On Wed, Oct 10, 2012 at 11:37 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
>> I see that message if I install the package with
>>
>> (require (planet aml/rosetta))
>>
>> within DrRacket.
>>
>> I think the Planet installation is inheriting DrRacket's configuration
>> to disable source locations in the text of the syntax errors, because
>> DrRacket extracts source information from the exception record and
>> implements its own way to show the source. During Planet-package
>> installation, though, the error is captured and printed to stderr by
>> the setup process, instead of raised as an exception that DrRacket can
>> handle. Probably the installation process should reset the
>> error-message configuration to its default mode.
>>
>> If I install in plain Racket, I get
>>
>> matrix.rkt:70:8: module: identifier is already imported
>> at: matrix?
>> in: (define-values (struct:matrix matrix1 matrix? matrix-vals) ....
>>
>
> Excellent. Problem solved. It was an old file that was no
> longer needed.
>
> Even if it is not desirable to have source locations available
> during planet installation, it would be good if the error
> message included the identifier that was already imported.
>
> Thanks a lot for your help.
>
> António.
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users