Skip to content
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

jekyll 3.8.6 | Error: Liquid error (line 18): comparison of NilClass with String failed #48

Closed
stefanstranger opened this issue May 1, 2020 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@stefanstranger
Copy link

When running bash ./tools/run.sh on my Windows 10 within WSL Debian I get the following error:

jekyll 3.8.6 | Error: Liquid error (line 18): comparison of NilClass with String failed

Detailed info:

Liquid Exception: Liquid error (line 18): comparison of NilClass with String failed in tabs/categories.md

Regards,
Stefan

@stefanstranger stefanstranger added the bug Something isn't working label May 1, 2020
@cotes2020
Copy link
Owner

cotes2020 commented May 1, 2020

Sorry to tell you that this doesn't seem right. The Jekyll 3.8.6 on WSL Debian works fine:

  • Logs:
cotes@C-E3:~/GitRepos/jekyll-theme-chirpy$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

cotes@C-E3:~/GitRepos/jekyll-theme-chirpy$ jekyll -v
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
jekyll 3.8.6

cotes@C-E3:~/GitRepos/jekyll-theme-chirpy$ ./tools/run.sh
[INFO] Succeed! 3 category-pages created.
[INFO] Succeed! 4 tag-pages created.
[INFO] Success to update lastmod for 4 post(s).
$ bundle exec jekyll s
Configuration file: /home/cotes/GitRepos/jekyll-theme-chirpy/.container/_config.yml
            Source: /home/cotes/GitRepos/jekyll-theme-chirpy/.container
       Destination: /home/cotes/GitRepos/jekyll-theme-chirpy/.container/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
                    done in 2.768 seconds.
                    Auto-regeneration may not work on some Windows versions.
                    Please see: https://github.com/Microsoft/BashOnWindows/issues/216
                    If it does not work, please upgrade Bash on Windows or run Jekyll with --no-watch.
 Auto-regeneration: enabled for '/home/cotes/GitRepos/jekyll-theme-chirpy/.container'
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.
  • Snapshot
    WSL

@stefanstranger
Copy link
Author

Thanks for your investigation. I will again try to figure out why I get the error message.

Regards,
Stefan

@cotes2020 cotes2020 added the invalid This doesn't seem right label May 3, 2020
@cotes2020 cotes2020 added this to the v2.2 milestone May 16, 2020
cotes2020 added a commit that referenced this issue May 22, 2020
When one post have only one category will hit the bug.
@cotes2020 cotes2020 removed the invalid This doesn't seem right label May 22, 2020
@cotes2020
Copy link
Owner

Sorry for the invalid tag. This bug appears when a post has only one category, now it has been fixed at e87e1f5.

@cotes2020 cotes2020 modified the milestones: v2.2, v2.2.1 May 22, 2020
cotes2020 added a commit that referenced this issue Sep 21, 2020
When one post have only one category will hit the bug.
mattpopovich pushed a commit to mattpopovich/jekyll-theme-chirpy that referenced this issue Oct 3, 2020
When one post have only one category will hit the bug.
cotes2020 added a commit that referenced this issue Oct 22, 2021
When one post have only one category will hit the bug.
sanjidnet pushed a commit to sanjidnet/sanjidnet.github.io that referenced this issue Dec 26, 2023
When one post have only one category will hit the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants