Tutorial three css file doesn't compile properly #63

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

Steps to reproduce error

  1. Clone the Pollen repo and start a server in the third tutorial directory:
$ git clone https://github.com/mbutterick/pollen.git
$ cd pollen/scribblings/third-tutorial-files/                                                                                
$ raco pollen start
Welcome to Pollen 0.001 (Racket 6.2)
Project root is /Users/iv/Developer/Racket/pollen/scribblings/third-tutorial-files/
Project server is http://localhost:8080 (Ctrl-C to exit)
Project dashboard is http://localhost:8080/index.ptree
Ready to rock
  1. Open a browser and navigate to http://localhost:8080/index.ptree, and click on burial.html.pm. This happens:
request: / dashboard 
request: /burial.html 
render: burial.html.pm
cpu time: 249 real time: 253 gc time: 65
request: /styles.css 
render: styles.css.pp
Servlet (@ /styles.css) exception:
split-meta-elements: Not a txexpr: '(placeholder-root (meta (here-path "/Users/iv/Developer/Racket/pollen/scribblings/third-tutorial-files/styles.css.pp")) "body {" "\n" "    " "margin: " 4 "em;" "\n" "    " "border: " 2 "em double " "gray" ";" "\n" "    " "padding: " 2 "em;" "\n" "    " "font-size: " 1.3 "em;" "\n" "    " "line-height: " 1.3 ";" "\n" "}" "\n" "\n" "h1 {" "\n" "    " "font-size: " 1.3 "em;" "\n" "}" "\n" "\n" "#prev, #next {" "\n" "position: fixed;" "\n" "    " "top: " 2 "em;" "\n" "}" "\n" "\n" "#prev {" "\n" "    " "left: " 4 "em;" "\n" "}" "\n" "\n" "#next {" "\n" "    " "right: " 4 "em;" "\n" "}")

  context...:
   /Users/iv/Library/Racket/6.2/pkgs/pollen/metas.rkt:82:0: split-metas-to-hash
   (submod /Users/iv/Developer/Racket/pollen/scribblings/third-tutorial-files/styles.css.pp pollen-lang-module): [running body]
   /Users/iv/Developer/Racket/pollen/scribblings/third-tutorial-files/styles.css.pp: [traversing imports]
   /Applications/Racket v6.2/collects/racket/rerequire.rkt:18:0: rerequire
   /Users/iv/Library/Racket/6.2/pkgs/pollen/cache.rkt:45:0: cached-require
   render-preproc-source
   render-to-file
   unpack62
   /Users/iv/Library/Racket/6.2/pkgs/pollen/server-routes.rkt:223:0: route-default
   /Applications/Racket v6.2/share/pkgs/web-server-lib/web-server/dispatchers/dispatch-servlets.rkt:58:2
   /Applications/Racket v6.2/share/pkgs/web-server-lib/web-server/private/dispatch-server-with-connect-unit.rkt:125:8
  1. No styles.css file appears on disk and there are no styling visible on the page in the browser.

Versions

I'm using Racket 6.2. Pollen was installed with raco pkg install pollen.

### Steps to reproduce error 1. Clone the Pollen repo and start a server in the third tutorial directory: ``` $ git clone https://github.com/mbutterick/pollen.git $ cd pollen/scribblings/third-tutorial-files/ $ raco pollen start Welcome to Pollen 0.001 (Racket 6.2) Project root is /Users/iv/Developer/Racket/pollen/scribblings/third-tutorial-files/ Project server is http://localhost:8080 (Ctrl-C to exit) Project dashboard is http://localhost:8080/index.ptree Ready to rock ``` 2. Open a browser and navigate to http://localhost:8080/index.ptree, and click on burial.html.pm. This happens: ``` request: / dashboard request: /burial.html render: burial.html.pm cpu time: 249 real time: 253 gc time: 65 request: /styles.css render: styles.css.pp Servlet (@ /styles.css) exception: split-meta-elements: Not a txexpr: '(placeholder-root (meta (here-path "/Users/iv/Developer/Racket/pollen/scribblings/third-tutorial-files/styles.css.pp")) "body {" "\n" " " "margin: " 4 "em;" "\n" " " "border: " 2 "em double " "gray" ";" "\n" " " "padding: " 2 "em;" "\n" " " "font-size: " 1.3 "em;" "\n" " " "line-height: " 1.3 ";" "\n" "}" "\n" "\n" "h1 {" "\n" " " "font-size: " 1.3 "em;" "\n" "}" "\n" "\n" "#prev, #next {" "\n" "position: fixed;" "\n" " " "top: " 2 "em;" "\n" "}" "\n" "\n" "#prev {" "\n" " " "left: " 4 "em;" "\n" "}" "\n" "\n" "#next {" "\n" " " "right: " 4 "em;" "\n" "}") context...: /Users/iv/Library/Racket/6.2/pkgs/pollen/metas.rkt:82:0: split-metas-to-hash (submod /Users/iv/Developer/Racket/pollen/scribblings/third-tutorial-files/styles.css.pp pollen-lang-module): [running body] /Users/iv/Developer/Racket/pollen/scribblings/third-tutorial-files/styles.css.pp: [traversing imports] /Applications/Racket v6.2/collects/racket/rerequire.rkt:18:0: rerequire /Users/iv/Library/Racket/6.2/pkgs/pollen/cache.rkt:45:0: cached-require render-preproc-source render-to-file unpack62 /Users/iv/Library/Racket/6.2/pkgs/pollen/server-routes.rkt:223:0: route-default /Applications/Racket v6.2/share/pkgs/web-server-lib/web-server/dispatchers/dispatch-servlets.rkt:58:2 /Applications/Racket v6.2/share/pkgs/web-server-lib/web-server/private/dispatch-server-with-connect-unit.rkt:125:8 ``` 3. No `styles.css` file appears on disk and there are no styling visible on the page in the browser. ### Versions I'm using Racket 6.2. Pollen was installed with `raco pkg install pollen`.
mbutterick commented 9 years ago (Migrated from github.com)

Thanks for the bug report. Reproduced & fixed.

Thanks for the bug report. Reproduced & fixed.
mbutterick commented 9 years ago (Migrated from github.com)

It usually takes a half hour or so for the Racket package server to notice an update (and make it available through raco pkg update ...). In the meantime, you make the tutorial work by going into styles.css.pp and changing ◊(define multiplier 1.3) to ◊(define multiplier "1.3").

It usually takes a half hour or so for the Racket package server to notice an update (and make it available through `raco pkg update ...`). In the meantime, you make the tutorial work by going into `styles.css.pp` and changing `◊(define multiplier 1.3)` to `◊(define multiplier "1.3")`.
wolverian commented 9 years ago (Migrated from github.com)

Thanks! Sorry I couldn't debug this deeper myself; the error message was, let's just say, uninformative…

Thanks! Sorry I couldn't debug this deeper myself; the error message was, let's just say, uninformative…
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#63
Loading…
There is no content yet.