Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

build errors in 'jekyll serve' leave state #190

Open
knarrff opened this issue Mar 11, 2021 · 0 comments
Open

build errors in 'jekyll serve' leave state #190

knarrff opened this issue Mar 11, 2021 · 0 comments

Comments

@knarrff
Copy link

knarrff commented Mar 11, 2021

I locally serve a site using jekyll serve. This works well, until I happen to save something that produces an error, like for instance a missing file for a translation:

Liquid Exception: Included file 'team.md' not found in /www/_i18n/de directory in team.md

As expected, jekyll doesn't stop, but after the next change (fixing the error) serves pages again. However, where it first created files in '/de/':

Building site for language: "de" to: /www/_site/de
Building site for language: "de" to: /www/_site/en

it now starts to create files in '/de/de':

Building site for language: "de" to: /www/_site/de/de
Building site for language: "de" to: /www/_site/de/en

Each subsequent cycle of 'error -> error fixed' adds another language prefix, inside one of the languages (I guess the one the error occurred in), e.g.:

.
├── de
│   ├── de
│   │   ├── de
│   │   │   └── team.html
│   │   ├── en
│   │   │   └── team.html
│   │   └── team.html
│   ├── en
│   │   └── team.html
│   └── team.html
└── en
    └── team.html

It is only my guess that whenever jekyl serve hits the error, some state (the current directory level) is still remembered and not reset whenever the error later is cleared.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant