Path to input file for raco pollen mangled, if underscore present #100

Closed
opened 9 years ago by thorwil · 1 comments
thorwil commented 9 years ago (Migrated from github.com)

Given a hello.txt.pp in the current dir /media/hd/web/some_thing, raco pollen render hello.txt.pp fails with

rendering hello.txt.pp
rendering: /hello.txt.pp as /../some.thing/hello.txt
cpu time: 671 real time: 675 gc time: 254
open-output-file: cannot open output file
  path: /media/hd/web/some.thing/hello.txt
  system error: No such file or directory; errno=2
  context...:
   /usr/local/racket/collects/racket/private/kw-file.rkt:116:2: call-with-output-file*70
   /usr/local/racket/collects/raco/raco.rkt: [running body]

Note that some_thing has somehow become some.thing.

raco pollen render ./hello.txt.pp fails with:

rendering ./hello.txt.pp
find-relative-path: contract violation
  expected: (and/c path-for-some-system? simple-form?)
  given: #<path:/media/hd/web/some_thing/./hello.txt.pp>
  context...:
   /usr/local/racket/collects/racket/path.rkt:116:2: for-loop
   /usr/local/racket/collects/racket/path.rkt:114:0: do-explode-path
   /usr/local/racket/collects/racket/path.rkt:124:0: find-relative-path5
   core79
   render-to-file
   /usr/local/racket/collects/raco/raco.rkt: [running body]

Though this also happens without underscore in the dir name.

All of this on Linux, Ubuntu 14.04, bash shell.

Given a `hello.txt.pp` in the current dir `/media/hd/web/some_thing`, `raco pollen render hello.txt.pp` fails with ``` rendering hello.txt.pp rendering: /hello.txt.pp as /../some.thing/hello.txt cpu time: 671 real time: 675 gc time: 254 open-output-file: cannot open output file path: /media/hd/web/some.thing/hello.txt system error: No such file or directory; errno=2 context...: /usr/local/racket/collects/racket/private/kw-file.rkt:116:2: call-with-output-file*70 /usr/local/racket/collects/raco/raco.rkt: [running body] ``` Note that `some_thing` has somehow become `some.thing`. `raco pollen render ./hello.txt.pp` fails with: ``` rendering ./hello.txt.pp find-relative-path: contract violation expected: (and/c path-for-some-system? simple-form?) given: #<path:/media/hd/web/some_thing/./hello.txt.pp> context...: /usr/local/racket/collects/racket/path.rkt:116:2: for-loop /usr/local/racket/collects/racket/path.rkt:114:0: do-explode-path /usr/local/racket/collects/racket/path.rkt:124:0: find-relative-path5 core79 render-to-file /usr/local/racket/collects/raco/raco.rkt: [running body] ``` Though this also happens without underscore in the dir name. All of this on Linux, Ubuntu 14.04, bash shell.
mbutterick commented 9 years ago (Migrated from github.com)

Thanks, this is now fixed.

Thanks, this is now fixed.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen#100
Loading…
There is no content yet.