default   Racket Bugs
Main PageQuick QueryStandard QueryAdvanced QueryHelp
Log in

View Problem Report: 12590

send email to interested parties or send email followup to audit-trail
Reporter's email: gustavo at oma dot org dot ar
Number: 12590
Category: all
Synopsis: error display handler: normalize-path: #<path:C:/var>
Class: sw-bug
Responsible: samth
Notify-List:
Severity: serious
Priority: medium
State: closed
Confidential: no
Arrival-Date: Tue Feb 21 16:12:01 -0500 2012
Closed-Date: Thu Feb 23 16:49:30 -0500 2012
Last-Modified: Mon Feb 18 23:26:01 -0500 2013
Originator: Gustavo Massaccesi
Organization: plt
Submitter-Id: unknown
Release: 5.2.1
Environment: windows "Windows NT 5.1 (Build 2600) Service Pack 3" (win32\i386\3m) (get-display-depth) = 32
Human Language: english
(current-memory-use) 184134436
Links: (links) = (); (links #:user? #f) = (); (links #:root? #t) = (); (links #:user? #f #:root? #t) = ()


Collections:
("C:\\Documents and Settings\\User\\Datos de programa\\Racket\\5.2.1\\collects"
(non-existent-path))
("C:\\Archivos de programa\\Racket\\collects"
("2htdp" "algol60" "at-exp" "browser" "combinator-parser" "compiler" "config" "data" "datalog" "db" "defaults" "deinprogramm" "drracket" "drscheme" "dynext" "embedded-gui" "eopl" "errortrace" "ffi" "file" "framework" "frtime" "games" "graphics" "gui-debugger" "help" "hierlist" "htdp" "html" "icons" "images" "info-domain" "lang" "launcher" "lazy" "macro-debugger" "make" "mred" "mrlib" "mysterx" "mzcom" "mzlib" "mzscheme" "net" "openssl" "parser-tools" "picturing-programs" "plai" "planet" "plot" "preprocessor" "profile" "r5rs" "r6rs" "racket" "racklog" "rackunit" "raco" "reader" "readline" "redex" "rnrs" "s-exp" "scheme" "schemeunit" "scribble" "scribblings" "scriblib" "setup" "sgl" "slatex" "slideshow" "srfi" "stepper" "string-constants" "swindle" "syntax" "syntax-color" "teachpack" "test-box-recovery" "test-engine" "tex2page" "texpict" "trace" "typed" "typed-racket" "typed-scheme" "unstable" "version" "web-server" "wxme" "xml" "xrepl"))

Computer Language: (("Determine language from source") (#(#t print mixed-fraction-e #f #t none) (default) #() "#lang racket\n" #f #f))
Description: I saw an error like this a few days ago, but it was in a large project.

"exception raised by error display handler: normalize-path: #<path:C:/var> (within the input path) is not a directory or does not exist; original exception raised: module: duplicate definition for identifier"

This is the minimal example to reproduce the error.

I guest that the problem is that a .zo exist for an older version of a file that now doesn't compile. The error disappears if I delete all the .zo files.
File Attachments:
How-To-Repeat: 1) Create two directories "\dir" and "\dir\subdir" with the files:
;--FILE: dir\def-one.rkt
#lang racket/base
(provide (all-defined-out))
(define (one) 1
#;(define (one) 1) ;duplicated

;--FILE: dir\subsir\one.rkt
#lang racket/base
(require "../def-one.rkt")
(one)

2) Add a "compile.ss" files to each directory
;--FILE: dir\compile.ss
#lang racket/base
(require compiler/compiler)
(require setup/getinfo)
(compile-directory-zos (current-directory)
                       (get-info/full (current-directory)))

;--FILE: dir\subdir\compile.ss
#lang racket/base
(require compiler/compiler)
(require setup/getinfo)
(compile-directory-zos (current-directory)
                       (get-info/full (current-directory)))

3) Run the "dir\compile.ss" to compile and create the .zo files

4) Edit the file "dir\def-one.rkt". Remove the #; so the definition of "one" is duplicated, and save the file. 

5) Run the other "dir\subdir\compile.ss" to compile and create the .zo files only in the subdir.

6) Get the ERROR: exception raised by error display handler: normalize-path: #<path:C:/var> (within the input path) is not a directory or does not exist; original exception raised: module: duplicate definition for identifier

To repeat:

+7) Edit "dir\def-one.rkt" to make it a valid file. Add again the #; and save

+8) Run "dir\compile.ss" to compile everithing.

+9) Edit "dir\def-one.rkt" to make it a invalid. Remove the #; or add or remove a random ( or ).

+10) Run again "dir\subdir\compile.ss" to get the error.
Fix:
Release-Note:
Unformatted:

send email to interested parties or send email followup to audit-trail

Audit Trail:

From: Sam Tobin-Hochstadt <samth at ccs.neu.edu>
To: gustavo at oma.org.ar, bugs at racket-lang.org
Cc: nobody at racket-lang.org, bug-notification at racket-lang.org
Subject: Re: [racket-bug] all/12590: error display handler: normalize-path: #<path:C:/var>
Date: Wed, 22 Feb 2012 10:19:14 -0500

 On Tue, Feb 21, 2012 at 4:12 PM,  <gustavo at oma.org.ar> wrote:
 >
 > *** Description:
 > I saw an error like this a few days ago, but it was in a large project.
 >
 > "exception raised by error display handler: normalize-path: #<path:C:/var> (within the input path) is not a directory or does not exist; original exception raised: module: duplicate definition for identifier"
 >
 > This is the minimal example to reproduce the error.
 >
 > I guest that the problem is that a .zo exist for an older version of a file that now doesn't compile. The error disappears if I delete all the .zo files.
 
 I believe that this bug was fixed a week or two ago.  Can you try this
 with a nightly build [1] and see if it still happens?
 
 Thanks!
 
 [1] http://pre.racket-lang.org/installers/
 -- 
 sam th
 samth at ccs.neu.edu

State changed from "open" to "closed" by samth at Thu, 23 Feb 2012 16:49:30 -0500
Reason>>> Fixed by mflatt a couple weeks ago.

From: Sam Tobin-Hochstadt <samth at ccs.neu.edu>
To: Gustavo Massaccesi <gustavo at oma.org.ar>
Cc: bugs at racket-lang.org, nobody at racket-lang.org,
        bug-notification at racket-lang.org
Subject: Re: [racket-bug] all/12590: error display handler: normalize-path: #<path:C:/var>
Date: Thu, 23 Feb 2012 16:48:46 -0500

 Thanks for the feedback, Gustavo.
 
 I'll close the bug.
 
 On Thu, Feb 23, 2012 at 4:45 PM, Gustavo Massaccesi <gustavo at oma.org.ar> wrote:
 > OK. I tested my example in plt-5.2.1.6-bin-i386-win32.exe (nightly,
 > 2012-02-23).
 >
 > With the incorrect program and I got the error:
 >
 > ERROR: . ..\def-one.rkt:7:9: module: duplicate definition for identifier in: one
 >
 > that is the expected error. :)
 >
 > Gustavo
 >
 >
 > On Wed, Feb 22, 2012 at 12:19, Sam Tobin-Hochstadt <samth at ccs.neu.edu> wrote:
 >> On Tue, Feb 21, 2012 at 4:12 PM,  <gustavo at oma.org.ar> wrote:
 >>>
 >>> *** Description:
 >>> I saw an error like this a few days ago, but it was in a large project.
 >>>
 >>> "exception raised by error display handler: normalize-path: #<path:C:/var> (within the input path) is not a directory or does not exist; original exception raised: module: duplicate definition for identifier"
 >>>
 >>> This is the minimal example to reproduce the error.
 >>>
 >>> I guest that the problem is that a .zo exist for an older version of a file that now doesn't compile. The error disappears if I delete all the .zo files.
 >>
 >> I believe that this bug was fixed a week or two ago.  Can you try this
 >> with a nightly build [1] and see if it still happens?
 >>
 >> Thanks!
 >>
 >> [1] http://pre.racket-lang.org/installers/
 >> --
 >> sam th
 >> samth at ccs.neu.edu
 
 
 
 -- 
 sam th
 samth at ccs.neu.edu
 
From: Gustavo Massaccesi <gustavo at oma.org.ar>
To: Sam Tobin-Hochstadt <samth at ccs.neu.edu>
Cc: bugs at racket-lang.org, nobody at racket-lang.org,
        bug-notification at racket-lang.org
Subject: Re: [racket-bug] all/12590: error display handler: normalize-path: #<path:C:/var>
Date: Thu, 23 Feb 2012 18:45:03 -0300

 OK. I tested my example in plt-5.2.1.6-bin-i386-win32.exe (nightly,
 2012-02-23).
 
 With the incorrect program and I got the error:
 
 ERROR: . ..\def-one.rkt:7:9: module: duplicate definition for identifier in: one
 
 that is the expected error. :)
 
 Gustavo
 
 
 On Wed, Feb 22, 2012 at 12:19, Sam Tobin-Hochstadt <samth at ccs.neu.edu> wrote:
 > On Tue, Feb 21, 2012 at 4:12 PM,  <gustavo at oma.org.ar> wrote:
 >>
 >> *** Description:
 >> I saw an error like this a few days ago, but it was in a large project.
 >>
 >> "exception raised by error display handler: normalize-path: #<path:C:/var> (within the input path) is not a directory or does not exist; original exception raised: module: duplicate definition for identifier"
 >>
 >> This is the minimal example to reproduce the error.
 >>
 >> I guest that the problem is that a .zo exist for an older version of a file that now doesn't compile. The error disappears if I delete all the .zo files.
 >
 > I believe that this bug was fixed a week or two ago.  Can you try this
 > with a nightly build [1] and see if it still happens?
 >
 > Thanks!
 >
 > [1] http://pre.racket-lang.org/installers/
 > --
 > sam th
 > samth at ccs.neu.edu
 

Responsible changed from "nobody" to "samth" by eli at Mon, 18 Feb 2013 23:26:01 -0500
Reason>>> samth closed