I think I'm somehow creating infinite loops for two different use cases. First, I have a nested directory structure and I'm trying to run pollen in parallel subdirectory mode. I'm using `raco pollen -p -s . ` and here is the error I'm getting:
pollen: rendering generated pagetree for directory /Users/basus/src/basus/
pollen: rendered parallel on core 4 /template.html (21 ms)
pollen: rendered parallel on core 1 /error.html (222 ms)
pollen: rendered parallel on core 2 /index.html (271 ms)
pollen: rendering generated pagetree for directory /Users/basus/src/basus/about
pollen: rendering generated pagetree for directory /Users/basus/src/basus/css
pollen: rendering generated pagetree for directory /Users/basus/src/basus/images
pollen: rendering generated pagetree for directory /Users/basus/src/basus/js
pollen: rendering generated pagetree for directory /Users/basus/src/basus/posts
pollen: rendering generated pagetree for directory /Users/basus/src/basus/research
open-input-file: cannot open input file
path: /Applications/Racket v7.2/collects/racket/compiled/match_rkt.zo
system error: Too many open files; errno=24
context...:
default-load-handler
standard-module-name-resolver
namespace-module-instantiate!96
for-loop
[repeats 1 more time]
run-module-instance!125
for-loop
[repeats 1 more time]
run-module-instance!125
do-dynamic-require5
open-input-file: cannot open input file
path: /Applications/Racket v7.2/collects/racket/private/compiled/string_rkt.zo
system error: Too many open files; errno=24
context...:
default-load-handler
standard-module-name-resolver
namespace-module-instantiate!96
for-loop
[repeats 1 more time]
run-module-instance!125
for-loop
[repeats 1 more time]
run-module-instance!125
for-loop
[repeats 1 more time]
run-module-instance!125
for-loop
[repeats 1 more time]
run-module-instance!125
do-dynamic-require5
pollen: rendering generated pagetree for directory /Users/basus/src/basus/research/publications
open-input-file: cannot open input file
path: /Applications/Racket v7.2/share/pkgs/scribble-lib/scribble/private/compiled/render-utils_rkt.zo
system error: Too many open files; errno=24
context...:
default-load-handler
standard-module-name-resolver
namespace-module-instantiate!96
for-loop
[repeats 1 more time]
run-module-instance!125
for-loop
[repeats 1 more time]
run-module-instance!125
for-loop
[repeats 1 more time]
run-module-instance!125
for-loop
[repeats 1 more time]
run-module-instance!125
do-dynamic-require5
dynamic-place: stdout dup failed
system error: Too many open files; errno=24
context...:
/Applications/Racket v7.2/collects/racket/place.rkt:108:0: start-place
/Users/basus/Library/Racket/7.2/pkgs/pollen/pollen/render.rkt:51:25: render-batch4
/Users/basus/Library/Racket/7.2/pkgs/pollen/pollen/private/command.rkt:106:9: render-one-dir
/Users/basus/Library/Racket/7.2/pkgs/pollen/pollen/private/command.rkt:127:15: for-loop
/Users/basus/Library/Racket/7.2/pkgs/pollen/pollen/private/command.rkt:106:9: render-one-dir
/Users/basus/Library/Racket/7.2/pkgs/pollen/pollen/private/command.rkt:127:15: for-loop
/Users/basus/Library/Racket/7.2/pkgs/pollen/pollen/private/command.rkt:106:9: render-one-dir
/Users/basus/Library/Racket/7.2/pkgs/pollen/pollen/private/external/logging.rkt:46:0
(submod "/Users/basus/Library/Racket/7.2/pkgs/pollen/pollen/private/command.rkt" raco): [running body]
temp37_0
for-loop
run-module-instance!125
"/Applications/Racket v7.2/collects/raco/raco.rkt": [running body]
temp37_0
for-loop
run-module-instance!125
...
Second, I am trying to override the setup module using the instructions described in the documentation. Here is the setup module I'm trying to write:
(module setup racket/base
(provide (all-defined-out))
(define publish-directory "./output")
(define (omitted-path path)
(print (path))
(or (default-omitted-path path)
(equal? path (path->complete-path "./images/"))
(equal? path (path->complete-path "./js/"))
)))
But when I run `raco pollen publish` I get the following output and then it gets stuck:
pollen: publishing from /Users/basus/src/basus to /Users/basus/Desktop/publish ...
Note that it doesn't seem to be picking up the new publish directory I specified above.
Unfortunately I'm still pretty new to Racket, so I'm not sure how to go about debugging this.
Thanks,
Basu
--