‘raco pollen render’ doesn’t work in Directory mode #172

Closed
opened 7 years ago by leafac · 2 comments
leafac commented 7 years ago (Migrated from github.com)

Consider the project:

;; my-book/index.txt.pm
#lang pollen

Hi
;; my-book/index.ptree
#lang pollen

index.txt

Now try to render it:

$ raco pollen version
1.3.1679.1017
$ raco pollen render my-book/
rendering preproc & pagetree files in directory /Users/leafac/Downloads/my-book/
$ raco pollen render my-book/index.ptree
rendering my-book/index.ptree
$ cd my-book/ && raco pollen render
rendering preproc & pagetree files in directory /Users/leafac/Downloads/my-book/
rendering: /index.txt.pm as /index.txt
cpu time: 167 real time: 198 gc time: 35

raco pollen render my-book/ (Directory mode) doesn’t render index.txt, but cding into the directory and calling raco pollen render from there (Source mode) does.

This wasn’t the case a few weeks ago. Maybe it has something to do with the introduction of the --subdir flag?

Consider the project: ```racket ;; my-book/index.txt.pm #lang pollen Hi ``` ```racket ;; my-book/index.ptree #lang pollen index.txt ``` Now try to render it: ``` $ raco pollen version 1.3.1679.1017 $ raco pollen render my-book/ rendering preproc & pagetree files in directory /Users/leafac/Downloads/my-book/ $ raco pollen render my-book/index.ptree rendering my-book/index.ptree $ cd my-book/ && raco pollen render rendering preproc & pagetree files in directory /Users/leafac/Downloads/my-book/ rendering: /index.txt.pm as /index.txt cpu time: 167 real time: 198 gc time: 35 ``` `raco pollen render my-book/` ([**Directory mode**](http://docs.racket-lang.org/pollen/raco-pollen.html#%28part._raco_pollen_render%29)) doesn’t render `index.txt`, but `cd`ing into the directory and calling `raco pollen render` from there (**Source mode**) does. This wasn’t the case a few weeks ago. Maybe it has something to do with the introduction of the `--subdir` flag?
mbutterick commented 7 years ago (Migrated from github.com)

You’re right — it should’ve been treating the first directory argument as the project root, and wasn’t.

You’re right — it should’ve been treating the first directory argument as the project root, and wasn’t.
leafac commented 7 years ago (Migrated from github.com)

Thank you 😀

Thank you 😀
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#172
Loading…
There is no content yet.