-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model labels causes errors in field rendering #19
Comments
I've reproduced your steps down get the error to show, and that a whitespace change to the template triggers a successful build. Can you elaborate on what you mean by
Which label? Thank you for the report. I'm actually experiencing something similar I think in another site. I'm not sure what's causing this atm, or if it's always been present or somehow came about because of a change in behavior of a dependency. |
It's worth noting that your report is a failure of jinja to render a string type, whereas mine in another project is a failure to render a markdown type, but you have a markdown type succeeding on the first pass. This feels like something non-deterministic, yet once a page is built, it's kind of stuck that way until we trick the page into being built again. |
This sort of seems deterministic. For me, it fails on my other site every time I |
I mean the "label" line on the Page model file (line 3 in the last code snippet in my original comment). I also played around with cleaning and rebuilding and managed to get it to work at times, but never got to the bottom of it, hence the vague bug report. Anyway, glad to contribute, and thanks for looking into it! |
I have a fix for this. I'll merge it in and publish a fixed version in a day or two. |
I've set a breakpoint in Perhaps Lektor itself is using a different copy of this object? I can debug further but I'd like to hear what @nixjdm found, before expending a bunch of effort. Can I help get the patch over the finish line? |
The related macros issue (#18) is a bit of a show stopper for me. Will this project be getting any more updates? |
Using the basic blog from
lektor quickstart
, I get strange behavior with some fields.Take the start page,
page.html
for example:When running
lektor serve
...This markdown:
Renders like this:

If I make a trivial whitespace change to

page.html
to force the watcher to do a refresh, everything works:Here's the Page model:
Removing
label
in the model file makes everything work.The text was updated successfully, but these errors were encountered: