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

Liquid Exception: Liquid syntax error (line 8): Unknown tag 'when' in bundles/ruby/2.3.0/gems/liquid-4.0.3/lib/liquid/locales/en.yml #193

Closed
KonaArctic opened this issue Apr 25, 2019 · 6 comments

Comments

@KonaArctic
Copy link

KonaArctic commented Apr 25, 2019

When trying to build as per instructions, the following error is produced:

kona@arcticjieer:~/startbootstrap-clean-blog-jekyll$ bundle exec jekyll serve 
Configuration file: /home/kona/startbootstrap-clean-blog-jekyll/_config.yml
            Source: /home/kona/startbootstrap-clean-blog-jekyll
       Destination: /home/kona/startbootstrap-clean-blog-jekyll/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
  Liquid Exception: Liquid syntax error (line 8): Unknown tag 'when' in bundles/ruby/2.3.0/gems/liquid-4.0.3/lib/liquid/locales/en.yml
jekyll 3.8.5 | Error:  Liquid syntax error (line 8): Unknown tag 'when'
kona@arcticjieer:~/startbootstrap-clean-blog-jekyll$ 

Preventing build

@KonaArctic
Copy link
Author

OK. Solved

@berthelemy
Copy link

Hi @ArcticKona I'm having the same issue. How did you fix it?

Thanks.

@berthelemy
Copy link

For reference, I discovered my problem was with a badly formed exclude command in _config.yml

@ranaalisaeed
Copy link

ranaalisaeed commented Feb 20, 2021

How was this solved? I'm facing the same issue and there is nothing in this issue log that's helpful.

@locness3
Copy link

@ArcticKona how did you fix this? saying "solved" is not helpful...

@tniezg
Copy link

tniezg commented Aug 21, 2021

The issue happens when you change BUNDLE_PATH to a path that's inside of a Jekyll project. In the case described it was changed to bundles. Jekyll will then try to parse en.yml as a Liquid template. To solve, you can add the path to exclude - #193 (comment) or change bundles to .bundles.

locness3 added a commit to csourcesc/csourcesc.github.io that referenced this issue Nov 3, 2023
from
https://jekyllrb.com/docs/configuration/options/#global-configuration;
the github action is using jekyll 3.9.3 so our exclusions override the
default ones, which are needed for the build to work, else jekyll tries
to parse data from ruby bundles as website content similar to
StartBootstrap/startbootstrap-clean-blog-jekyll#193 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants