Unable to make sense of error output

0 views
Skip to first unread message

Thomas C. Cloyd

unread,
Nov 24, 2025, 12:11:41 PM (2 days ago) Nov 24
to nanoc
I have tried for an hour to figure out the problem. I am completely stumped.

SOURCE FILE (vastly striped down, to find the error):
```
---
title: Notes
---
xxx
```
RESULTING CRASH FILE; https://pastebin.com/3zW2cAmS

QUESTION: Is it impossible simply to begin compile crash output with the name of the offending file, followed by the line and if possible the character that caused the problem? I desperately want this information but it seems never to be output. Is this impossible?

Thanks for your help...

t.

Denis Defreyne

unread,
Nov 25, 2025, 3:23:41 AM (yesterday) Nov 25
to na...@googlegroups.com
Hey Tom,

The error message in the crash log, undefined method `render', suggests that the Rendering helper isn’t activated. In a file in lib/ (e.g. lib/helpers.rb) you’ll need

use_helper Nanoc::Helpers::Rendering

or

include Nanoc::Helpers::Rendering

The render method is provided by the Rendering helper. Let me know if that helps, and if it doesn’t, do share the contents of your default layout file as well.

As for your question: It would be possible to start the crash log with the name of the item that is being compiled (it’s currently further down, in the ITEM BEING COMPILED section) but I’ve found that to be not a useful place to start — most often, when compilation fails, the stack trace provides more useful information.

Best,

--
You received this message because you are subscribed to the Google Groups "nanoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nanoc+un...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages