Open SuzanneSoy opened 8 years ago
On a recent version of racket (6.4.0.8), when compiling /home/me/path/to/bug.rkt
the error message is:
open-input-file: cannot open directory as a file
path: /home/me/path/to/
system error: errno=?
compilation context...:
/home/me/path/to/
context...:
/nix/store/5xgyl65ilsmgzv8qc8y9s1zi0xy37kx4-racket-6.4.0.8/share/racket/collects/syntax/modcode.rkt:264:5: compile-one
/nix/store/5xgyl65ilsmgzv8qc8y9s1zi0xy37kx4-racket-6.4.0.8/share/racket/collects/compiler/cm.rkt:346:0: compile-zo*
/nix/store/5xgyl65ilsmgzv8qc8y9s1zi0xy37kx4-racket-6.4.0.8/share/racket/collects/compiler/cm.rkt:561:26
/nix/store/5xgyl65ilsmgzv8qc8y9s1zi0xy37kx4-racket-6.4.0.8/share/racket/collects/setup/../racket/private/more-scheme.rkt:261:28
/nix/store/5xgyl65ilsmgzv8qc8y9s1zi0xy37kx4-racket-6.4.0.8/share/racket/collects/setup/parallel-do.rkt:435:20: loop
1 made bug.rkt
When building the file above with
-j 2
(or more) for the first time, i.e. after having removed thecompiled/
folder, I get the following error:-j 1
works finea
andb
) has to usetyped/racket
, it they both use plain racket the bug doesn't occur, but if either one usestyped/racket
, and the otherracket
, then the bug does occur.(require racket/list
can be any library, it also crashes withtyped/rackunit
oralexis/util/threading
for example(submod ".." a)
mustn't be first library required, if instead I write(require (submod ".." a) racket/list
the crash doesn't occur(submod ".." a)
and the other library have to be in the samerequire
form, if instead I write(require racket/list) (require (submod ".." a))
, the crash doesn't occur (because it's in the first position, I guess).I can consistently reproduce it on my machine, and on travis-ci too.