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-plantuml build doesn't work in WSL2 environment due to Liquid exception unknown tag 'plantuml` #20

Closed
dragondive opened this issue Mar 11, 2023 · 7 comments

Comments

@dragondive
Copy link

What I'm trying to do

Use plantuml in Jekyll blog to generate a diagram, using the below command:

bundle exec jekyll serve --watch --force-polling --livereload

My source codes

  • yyyy-mm-dd-title.md file:

    {% plantuml %}
    [First] - [Second]
    {% endplantuml %}
  • _config.yml file:

    plugins:
      - jekyll-plantuml
  • Gemfile file:

    gem 'jekyll-plantuml', '~> 1.3', '>= 1.3.4'
    

Software versions

  • OS: Ubuntu 20.04.5 LTS (using WSL2 on Windows 11)
  • Ruby: 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]
  • Jekyll: 3.9.2
  • Bundler: 2.4.8
  • Liquid: 4.0.3

Expected behaviour

Jekyll build generates the HTML pages properly with the PlantUML diagrams included

Actual behaviour

Build crashes with following error:

  Liquid Exception: Liquid syntax error (line 1): Unknown tag 'plantuml' in /mnt/c/WORK/dragondive/dragondive.github.io/docs/_posts/2023-03-11-plantuml-in-jekyll-blog.md
jekyll 3.9.2 | Error:  Liquid syntax error (line 1): Unknown tag 'plantuml'
/home/dragondive/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/liquid-4.0.3/lib/liquid/document.rb:23:in `unknown_tag': Liquid syntax error (line 1): Unknown tag 'plantuml' (Liquid::SyntaxError)

What I have tried so far

  • Run plantuml "standalone" in the same environment [x]
plantuml foo.puml

This properly generates the foo.png with the specified diagram. It confirms that plantuml is properly installed and working.

What else can I try to fix this problem?


Make sure the title of the issue explains the problem you are having. ✅ Also, the description of the issue must clearly explain what is broken, not what you want us to implement. ✅ Go through this checklist and make sure you answer "YES" to all points:

  • You have all pre-requisites listed in README.md installed ✅
  • You are sure that you are not reporting a duplicate (search all issues) ✅
  • You say "is broken" or "doesn't work" in the title ✅
  • You tell us what you are trying to do ✅
  • You explain the results you are getting ✅
  • You suggest an alternative result you would like to see ✅

This article will help you understand what we are looking for: http://www.yegor256.com/2014/11/24/principles-of-bug-tracking.html

yegor256 added a commit that referenced this issue Jun 2, 2023
yegor256 added a commit that referenced this issue Jun 2, 2023
@yegor256
Copy link
Owner

yegor256 commented Jun 2, 2023

@rultor release, tag is 1.4.1

yegor256 added a commit that referenced this issue Jun 2, 2023
@rultor
Copy link
Collaborator

rultor commented Jun 2, 2023

@rultor release, tag is 1.4.1

@yegor256 OK, I will release it now. Please check the progress here

yegor256 added a commit that referenced this issue Jun 2, 2023
@rultor
Copy link
Collaborator

rultor commented Jun 2, 2023

@rultor release, tag is 1.4.1

@dragondive @yegor256 Oops, I failed. You can see the full log here (spent 1min)

	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/lib/jekyll/site.rb:556:in `each'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/lib/jekyll/site.rb:556:in `block in render_docs'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/lib/jekyll/site.rb:555:in `each_value'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/lib/jekyll/site.rb:555:in `render_docs'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/lib/jekyll/site.rb:210:in `render'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/lib/jekyll/site.rb:80:in `process'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/lib/jekyll/command.rb:28:in `process_site'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:65:in `build'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:36:in `process'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `each'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/jekyll-4.3.2/exe/jekyll:15:in `<top (required)>'
	from /usr/local/rvm/gems/ruby-3.0.1/bin/jekyll:23:in `load'
	from /usr/local/rvm/gems/ruby-3.0.1/bin/jekyll:23:in `<top (required)>'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:58:in `load'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:23:in `run'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/cli.rb:486:in `exec'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/cli.rb:31:in `dispatch'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/cli.rb:25:in `start'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/exe/bundle:48:in `block in <top (required)>'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
	from /usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/exe/bundle:36:in `<top (required)>'
	from /usr/local/rvm/gems/ruby-3.0.1/bin/bundle:23:in `load'
	from /usr/local/rvm/gems/ruby-3.0.1/bin/bundle:23:in `<main>'
make: *** [Makefile:9: all] Error 1
rake aborted!
Command failed with status (2): [cd test-jekylls; make...]
/home/r/repo/Rakefile:41:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-3.0.1/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:58:in `load'
/usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:58:in `kernel_load'
/usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:23:in `run'
/usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/cli.rb:486:in `exec'
/usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/cli.rb:31:in `dispatch'
/usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/cli.rb:25:in `start'
/usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/exe/bundle:48:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
/usr/local/rvm/gems/ruby-3.0.1/gems/bundler-2.3.26/exe/bundle:36:in `<top (required)>'
/usr/local/rvm/gems/ruby-3.0.1/bin/bundle:23:in `load'
/usr/local/rvm/gems/ruby-3.0.1/bin/bundle:23:in `<main>'
Tasks: TOP => default => jekylls
(See full trace by running task with --trace)
container 17f22b8a7f6ff595d4ac1a905c249b90142e3ff44ca2ff293238e15e42682806 is dead
Fri 02 Jun 2023 08:06:04 AM CEST

@yegor256
Copy link
Owner

yegor256 commented Jun 2, 2023

@rultor release, tag is 1.4.1

yegor256 added a commit that referenced this issue Jun 2, 2023
@rultor
Copy link
Collaborator

rultor commented Jun 2, 2023

@rultor release, tag is 1.4.1

@yegor256 OK, I will release it now. Please check the progress here

@rultor
Copy link
Collaborator

rultor commented Jun 2, 2023

@rultor release, tag is 1.4.1

@yegor256 Done! FYI, the full log is here (took me 3min)

@yegor256
Copy link
Owner

yegor256 commented Jun 2, 2023

@dragondive try version 1.4.1, I believe it should work just fine. You can see the test suites that prove it: https://github.com/yegor256/jekyll-plantuml/tree/master/test-jekylls

@yegor256 yegor256 closed this as completed Aug 2, 2023
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

3 participants