raco pollen fails when given multiple input paths starting with ./ #53

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

This fails:

$ raco pollen render ./about/index.html.pmd ./electronics/ntc-thermistor-network/index.html.pmd
Rendering /Users/ben/Desktop/Staccato Signals.pollen/about/index.html.pmd
render: index.html.pmd
cpu time: 180 real time: 189 gc time: 93
render: index.html.pmd
find-relative-path: contract violation
  expected: (and/c path-for-some-system? simple-form?)
  given: #<path:/Users/ben/Desktop/Staccato Signals.pollen/./electronics/ntc-thermistor-network/>
  context...:
   /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/racket/path.rkt:116:2: for-loop
   /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/racket/path.rkt:114:0: do-explode-path
   /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/racket/path.rkt:124:0: find-relative-path5
   core225
   render-to-file
   unpack62
   loop
   (submod /Users/ben/Library/Racket/6.1.1/pkgs/pollen/raco.rkt main): [running body]
   /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/raco/raco.rkt: [running body]
   /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/raco/main.rkt: [running body]

But this works:

$ raco pollen render about/index.html.pmd electronics/ntc-thermistor-network/index.html.pmd
Rendering /Users/ben/Desktop/Staccato Signals.pollen/about/index.html.pmd
render: index.html.pmd
cpu time: 182 real time: 192 gc time: 93
render: index.html.pmd
cpu time: 66 real time: 66 gc time: 0
This fails: ``` $ raco pollen render ./about/index.html.pmd ./electronics/ntc-thermistor-network/index.html.pmd Rendering /Users/ben/Desktop/Staccato Signals.pollen/about/index.html.pmd render: index.html.pmd cpu time: 180 real time: 189 gc time: 93 render: index.html.pmd find-relative-path: contract violation expected: (and/c path-for-some-system? simple-form?) given: #<path:/Users/ben/Desktop/Staccato Signals.pollen/./electronics/ntc-thermistor-network/> context...: /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/racket/path.rkt:116:2: for-loop /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/racket/path.rkt:114:0: do-explode-path /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/racket/path.rkt:124:0: find-relative-path5 core225 render-to-file unpack62 loop (submod /Users/ben/Library/Racket/6.1.1/pkgs/pollen/raco.rkt main): [running body] /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/raco/raco.rkt: [running body] /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/raco/main.rkt: [running body] ``` But this works: ``` $ raco pollen render about/index.html.pmd electronics/ntc-thermistor-network/index.html.pmd Rendering /Users/ben/Desktop/Staccato Signals.pollen/about/index.html.pmd render: index.html.pmd cpu time: 182 real time: 192 gc time: 93 render: index.html.pmd cpu time: 66 real time: 66 gc time: 0 ```
mbutterick commented 10 years ago (Migrated from github.com)

I can reproduce this; I’ll look into it further.

I can reproduce this; I’ll look into it further.
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#53
Loading…
There is no content yet.