Open alexandre1985 opened 4 years ago
This is still reproducible.
The line number of the culprit may have changed between versions (I have 1.7.0) because the stack trace above does not point to anything meaningful in my copy of the plugin,
but it must be crashing trying to validate stuff because there is no lang
key in the site.config
hash.
This key doesn't need to be present in the config file, though; it is extracted from the languages
key in the Site::process
method.
I suspect the Site::process
is not getting called (most likely by design) in the case of running jekyll doctor;
I can confirm it by removing the languages
key from the config file and running jekyll doctor
- it crashes with the same stack trace instead of giving human-readable errors.
I do not know anything about Jekyll's internal structure, but there may be a method which the jekyll doctor
command calls.
bundle exec jekyll --version
jekyll 4.1.1
When I run
jekyll doctor
, I do not know why I get this issue below:I believe it is an bug. my
_config.yml
snippet is:Update: Also on my other jekyll project that has two i18n languages, I get: