Pollen server does not show any error if pollen.rkt is invalid #224

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

Hi,

I just started with Pollen and I notice that the Pollen server does not show any error if my pollen.rkt file contains invalid code.

Am I doing something wrong?

I'm on Linux (Manjaro) using Pollen 2.2.2473.915 (Racket 7.6)

Hi, I just started with `Pollen` and I notice that the `Pollen` server does not show any error if my `pollen.rkt` file contains invalid code. Am I doing something wrong? I'm on Linux (Manjaro) using Pollen 2.2.2473.915 (Racket 7.6)
otherjoel commented 5 years ago (Migrated from github.com)

Can you provide the steps to reproduce what you’re seeing?

Can you provide the steps to reproduce what you’re seeing?
arnaudchenyensu commented 5 years ago (Migrated from github.com)

I just realized that you get an error but only if you open the file to render (in this example document.html), but nothing when you are viewing the index.ptree.

document.poly.pm

#lang pollen

This is a document.

pollen.rkt

#lang racket/base

(require
  pollen/decode
  quadwriter
  txexpr)

(provide (all-defined-out))

(module setup racket/base
  (provide (all-defined-out))
  (define poly-targets '(txt pdf)))

(define (root . xs)
  (case (current-poly-target)
    [(pdf) `(q ,@(add-between (decode-paragraphs xs 'q) para-break))]
    [else xs]))

My stupid mistake is that I couldn't understand why I couldn't see document.txt and document.pdf. I did not think about opening document.html.

I just realized that you get an error but only if you open the file to render (in this example `document.html`), but nothing when you are viewing the `index.ptree`. `document.poly.pm` ``` #lang pollen This is a document. ``` `pollen.rkt` ``` #lang racket/base (require pollen/decode quadwriter txexpr) (provide (all-defined-out)) (module setup racket/base (provide (all-defined-out)) (define poly-targets '(txt pdf))) (define (root . xs) (case (current-poly-target) [(pdf) `(q ,@(add-between (decode-paragraphs xs 'q) para-break))] [else xs])) ``` My stupid mistake is that I couldn't understand why I couldn't see `document.txt` and `document.pdf`. I did not think about opening `document.html`.
mbutterick commented 5 years ago (Migrated from github.com)

Closing as moot.

Closing as moot.
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#224
Loading…
There is no content yet.