render and clone have no effect #36

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

I have a small example with a few .pm and .pmd files. I can see the rendered files in a browser correctly after doing raco pollen start, but clone and render seem to have no effect. I don't see any errors in the terminal either.

I have a small example with a few `.pm` and `.pmd` files. I can see the rendered files in a browser correctly after doing `raco pollen start`, but clone and render seem to have no effect. I don't see any errors in the terminal either.
mbutterick commented 9 years ago (Migrated from github.com)

What platform (Windows / OS X / Linux)?

What platform (Windows / OS X / Linux)?
basus commented 9 years ago (Migrated from github.com)

This is on 64-bit Arch Linux.

This is on 64-bit Arch Linux.
mbutterick commented 9 years ago (Migrated from github.com)

If you want to post one of the files that isn't working correctly I can try it on my system.

If you want to post one of the files that isn't working correctly I can try it on my system.
mbutterick commented 9 years ago (Migrated from github.com)

(Meaning, there's not enough information yet for me to hypothesize about the source of the problem)

(Meaning, there's not enough information yet for me to hypothesize about the source of the problem)
basus commented 9 years ago (Migrated from github.com)

Here are the contents I currently have in my example:

article.html.pmd

#lang pollen

Hello, World!
=============

This is a simple example.

index.html.pmd:

#lang pollen

Hello, World!
=============

This is a simple example.

pollen.html.pm

#lang pollen

◊h1{Written using Pollen}

◊p{Is this going to work?}
Here are the contents I currently have in my example: article.html.pmd ``` #lang pollen Hello, World! ============= This is a simple example. ``` index.html.pmd: ``` #lang pollen Hello, World! ============= This is a simple example. ``` pollen.html.pm ``` #lang pollen ◊h1{Written using Pollen} ◊p{Is this going to work?} ```
basus commented 9 years ago (Migrated from github.com)

I tried deleting everything and rerunning, but no luck.

I tried deleting everything and rerunning, but no luck.
mbutterick commented 9 years ago (Migrated from github.com)

Your files work fine on my system (= project server, raco pollen render, and clone).

What perplexes me is that you can see the files rendered properly in the project server. That indicates that the software was installed correctly, the files have no syntax errors, and your project is set up correctly, etc.

When you run raco pollen render from your project directory, you should see something like this:

~/project-dir : raco pollen render article.html.pmd 
Rendering /Users/MB/project-dir/article.html.pmd
render: article.html.pmd
cpu time: 81 real time: 82 gc time: 0

This indicates that Pollen processed the file successfully.

If you run raco pollen clone, you should see something like this:

~/project-dir: raco pollen clone
Cloning ...
Completed to /Users/MB/Desktop/clone

You can't, however, clone sources that are already on the desktop. (The cloner should check for this condition and raise an error. It wasn't doing this. I just pushed a fix.)

What are you seeing in the terminal when you run raco pollen render ... or raco pollen clone? Nothing at all?

Your files work fine on my system (= project server, `raco pollen render`, and `clone`). What perplexes me is that you can see the files rendered properly in the project server. That indicates that the software was installed correctly, the files have no syntax errors, and your project is set up correctly, etc. When you run `raco pollen render` from your project directory, you should see something like this: ``` ~/project-dir : raco pollen render article.html.pmd Rendering /Users/MB/project-dir/article.html.pmd render: article.html.pmd cpu time: 81 real time: 82 gc time: 0 ``` This indicates that Pollen processed the file successfully. If you run `raco pollen clone`, you should see something like this: ``` ~/project-dir: raco pollen clone Cloning ... Completed to /Users/MB/Desktop/clone ``` You can't, however, clone sources that are already on the desktop. (The cloner should check for this condition and raise an error. It wasn't doing this. I just pushed a fix.) What are you seeing in the terminal when you run `raco pollen render ...` or `raco pollen clone`? Nothing at all?
basus commented 9 years ago (Migrated from github.com)

When I run raco pollen render I get the following:

Rendering preproc & pagetree files in directory /home/basus/documents/basus

When I run raco pollen clone, I see:

Cloning ...
Completed to /home/basus/clone

I then do see the non-source files under /home/basus/clone. However, if I specify a directory to the clone command, I get the same message, but nothing happens.

When I run `raco pollen render` I get the following: ``` Rendering preproc & pagetree files in directory /home/basus/documents/basus ``` When I run `raco pollen clone`, I see: ``` Cloning ... Completed to /home/basus/clone ``` I then do see the non-source files under `/home/basus/clone`. However, if I specify a directory to the `clone` command, I get the same message, but nothing happens.
mbutterick commented 9 years ago (Migrated from github.com)

OK, I’ve pushed some fixes that I believe will fix these problems.

raco pollen render was giving up when there were no pagetree files in the project directory. Now, it will render all the sources it finds.

The documentation for raco pollen clone was incorrect (and the underlying behavior needed some improvement too).

raco pollen clone will clone the current directory onto the desktop.
raco pollen clone source-dirwill clone source-dir to the desktop.
raco pollen clone source-dir dest-dirwill clone source-dir to dest-dir.

If you just want to clone the current directory to somewhere other than the desktop, use
raco pollen clone . dest-dir.

If that still doesn't help, please reopen this issue. Thanks for the report.

OK, I’ve pushed some fixes that I believe will fix these problems. `raco pollen render` was giving up when there were no pagetree files in the project directory. Now, it will render all the sources it finds. The documentation for `raco pollen clone` was incorrect (and the underlying behavior needed some improvement too). `raco pollen clone` will clone the current directory onto the desktop. `raco pollen clone source-dir`will clone source-dir to the desktop. `raco pollen clone source-dir dest-dir`will clone source-dir to dest-dir. If you just want to clone the current directory to somewhere other than the desktop, use `raco pollen clone . dest-dir`. If that still doesn't help, please reopen this issue. Thanks for the report.
basus commented 9 years ago (Migrated from github.com)

Everything seems to be working fine now. Thanks!

Everything seems to be working fine now. Thanks!
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#36
Loading…
There is no content yet.