Closed dxps closed 10 months ago
Oh, I believe this is simply because each page extends the other. :facepalm:
I leave it here as a case for improving the behavior by reporting to the console that such setup is wrong instead of crashing due to stack overflow. If you don't want to consider it as a future enhancement, you may close it.
Last but not least, many thanks to this community for creating Zola. :pray: Today, I started using it as the SSG for my GitHub Pages. :partying_face:
Weird that Tera is not catching that though!
Facing the same error in Zola v0.17.2 windows build. Same site using Zola v0.17.2 is building fine on Fedora and Ubuntu (Github Actions).
zola serve
and zola build
both give following error:
PS D:\> zola serve
Building site...
Checking all internal links with anchors.
> Successfully checked 0 internal link(s) with anchors.
-> Creating 43 pages (0 orphan) and 2 sections
thread 'main' has overflowed its stack
I am not using macros or shortcodes. Only 4 taxonomies and one taxonomy is iterated for pages on home page. zola serve
works fine for a new blank site.
Is it the same case? Do you have templates extending each other?
Is it the same case? Do you have templates extending each other?
Templates extending each other, no. Just extending base.html in index.html and page.html. Code is available at https://github.com/0xcrypto/0xcrypto.github.io if you wanna take a look. I have now added macros but only after reporting this error.
Unfortunately I wont be able to test again on windows or provide much information as my m.2 SSD having Windows is dead (different issue).
I can reproduce it with the next
version so it's not OS related.
I can reproduce it with the
next
version so it's not OS related.
I used same codebase, same versions (0.17.2) on Linux and Windows though. In linux it works, in windows it does not.
ah I tested on Mac
Tried again today, didn't work in Windows but worked fine in WSL (Kali Linux).
That should be fixed on the next branch
Thank you @Keats, next is working!
Bug Report
Environment
Zola version:
0.16.1
Pop!_OS 22.04 LTS (up to date, with kernel 6.0.12-76060006-generic)Expected Behavior
zola serve
should just continue working, instead of crashing.Current Behavior
zola serve
crashes.Step to reproduce
Just quickstarting it by following the Overview doc, using the official sam.
config.tml
file: declared theme = "sam"base.html
, createdtemplates/base.html
file with this content:index.html
, createdtemplates/index.html
file with this content:It crashes after saving that content into
index.html
file, and also at start up:Hope it helps the investigation! I'm very new to Zola, and depending on the outcome I might try to help as well.
Thanks!