Hi, I installed jekyll and things seemed to work. I started to configure it to my needs and then suddenly I got the error below. Ever since I have not been able to get rid of this error. I did a complete reinstall of jekyll and bundle and all local gems, created a new projects from scratch, but nothing helps.
Can someone please help me debug what is wrong?
I create a new directory:
jekyll new docs2
cd docs2
And then run:
daniel:~/projects/aicxx/linuxviewer/linuxviewer/docs2>bundle exec jekyll serve --trace
Configuration file: /home/carlo/projects/aicxx/linuxviewer/linuxviewer/docs2/_config.yml
Source: /home/carlo/projects/aicxx/linuxviewer/linuxviewer/docs2
Destination: /home/carlo/projects/aicxx/linuxviewer/linuxviewer/docs2/_site
Incremental build: disabled. Enable with --incremental
Generating...
Jekyll Feed: Generating feed for posts
Liquid Exception: undefined method `each' for #<Liquid::Registers:0x00005590e3a42008 @static={:cached_partials=>{}, :file_system=>#<Liquid::BlankFileSystem:0x00005590e1ddac08>, :template_factory=>#<Liquid::TemplateFactory:0x00005590e3a41e78>, :site=>#<Jekyll::Site @source=/home/carlo/projects/aicxx/linuxviewer/linuxviewer/docs2>, :page=>{ "tags": [ ], "excerpt": "<p>You’ll find this post in your <code class=\"language-plaintext highlighter-rouge\">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class=\"language-plaintext highlighter-rouge\">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>\n", "path": "_posts/2023-03-26-welcome-to-jekyll.markdown", "title": "Welcome to Jekyll!", "id": "/jekyll/update/2023/03/26/welcome-to-jekyll", "content": "<p>You’ll find this post in your <code class=\"language-plaintext highlighter-rouge\">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class=\"language-plaintext highlighter-rouge\">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>\n\n<p>Jekyll requires blog post files to be named according to the following format:</p>\n\n<p><code class=\"language-plaintext highlighter-rouge\">YEAR-MONTH-DAY-title.MARKUP</code></p>\n\n<p>Where <code class=\"language-plaintext highlighter-rouge\">YEAR</code> is a four-digit number, <code class=\"language-plaintext highlighter-rouge\">MONTH</code> and <code class=\"language-plaintext highlighter-rouge\">DAY</code> are both two-digit numbers, and <code class=\"language-plaintext highlighter-rouge\">MARKUP</code> is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.</p>\n\n<p>Jekyll also offers powerful support for code snippets:</p>\n\n<figure class=\"highlight\"><pre><code class=\"language-ruby\" data-lang=\"ruby\"><span class=\"k\">def</span> <span class=\"nf\">print_hi</span><span class=\"p\">(</span><span class=\"nb\">name</span><span class=\"p\">)</span>\n <span class=\"nb\">puts</span> <span class=\"s2\">\"Hi, </span><span class=\"si\">#{</span><span class=\"nb\">name</span><span class=\"si\">}</span><span class=\"s2\">\"</span>\n<span class=\"k\">end</span>\n<span class=\"n\">print_hi</span><span class=\"p\">(</span><span class=\"s1\">'Tom'</span><span class=\"p\">)</span>\n<span class=\"c1\">#=> prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>\n\n<p>Check out the <a href=\"https://jekyllrb.com/docs/home\">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href=\"https://github.com/jekyll/jekyll\">Jekyll’s GitHub repo</a>. If you have questions, you can ask them on <a href=\"https://talk.jekyllrb.com/\">Jekyll Talk</a>.</p>\n\n", "categories": [ "jekyll", "update" ], "output": null, "date": "2023-03-26 22:48:54 +0200", "previous": null, "url": "/jekyll/update/2023/03/26/welcome-to-jekyll.html", "collection": "posts", "next": null, "relative_path": "_posts/2023-03-26-welcome-to-jekyll.markdown", "name": "2023-03-26-welcome-to-jekyll.markdown", "draft": false, "layout": "post", "slug": "welcome-to-jekyll", "ext": ".markdown" }}, @changes={}> in /usr/lib/ruby/gems/3.0.0/gems/minima-2.5.1/_layouts/default.html
bundler: failed to load command: jekyll (/usr/bin/jekyll)
/home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/template.rb:176:in `render': undefined method `each' for #<Liquid::Registers:0x00005590e3a42008 @static={:cached_partials=>{}, :file_system=>#<Liquid::BlankFileSystem:0x00005590e1ddac08>, :template_factory=>#<Liquid::TemplateFactory:0x00005590e3a41e78>, :site=>#<Jekyll::Site @source=/home/carlo/projects/aicxx/linuxviewer/linuxviewer/docs2>, :page=>{ (NoMethodError)
"tags": [
],
"excerpt": "<p>You’ll find this post in your <code class=\\"language-plaintext highlighter-rouge\\">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class=\\"language-plaintext highlighter-rouge\\">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>\\n",
"path": "_posts/2023-03-26-welcome-to-jekyll.markdown",
"title": "Welcome to Jekyll!",
"id": "/jekyll/update/2023/03/26/welcome-to-jekyll",
"content": "<p>You’ll find this post in your <code class=\\"language-plaintext highlighter-rouge\\">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class=\\"language-plaintext highlighter-rouge\\">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>\\n\\n<p>Jekyll requires blog post files to be named according to the following format:</p>\\n\\n<p><code class=\\"language-plaintext highlighter-rouge\\">YEAR-MONTH-DAY-title.MARKUP</code></p>\\n\\n<p>Where <code class=\\"language-plaintext highlighter-rouge\\">YEAR</code> is a four-digit number, <code class=\\"language-plaintext highlighter-rouge\\">MONTH</code> and <code class=\\"language-plaintext highlighter-rouge\\">DAY</code> are both two-digit numbers, and <code class=\\"language-plaintext highlighter-rouge\\">MARKUP</code> is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.</p>\\n\\n<p>Jekyll also offers powerful support for code snippets:</p>\\n\\n<figure class=\\"highlight\\"><pre><code class=\\"language-ruby\\" data-lang=\\"ruby\\"><span class=\\"k\\">def</span> <span class=\\"nf\\">print_hi</span><span class=\\"p\\">(</span><span class=\\"nb\\">name</span><span class=\\"p\\">)</span>\\n <span class=\\"nb\\">puts</span> <span class=\\"s2\\">\\"Hi, </span><span class=\\"si\\">#{</span><span class=\\"nb\\">name</span><span class=\\"si\\">}</span><span class=\\"s2\\">\\"</span>\\n<span class=\\"k\\">end</span>\\n<span class=\\"n\\">print_hi</span><span class=\\"p\\">(</span><span class=\\"s1\\">'Tom'</span><span class=\\"p\\">)</span>\\n<span class=\\"c1\\">#=> prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>\\n\\n<p>Check out the <a href=\\"https://jekyllrb.com/docs/home\\">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href=\\"https://github.com/jekyll/jekyll\\">Jekyll’s GitHub repo</a>. If you have questions, you can ask them on <a href=\\"https://talk.jekyllrb.com/\\">Jekyll Talk</a>.</p>\\n\\n",
"categories": [
"jekyll",
"update"
],
"output": null,
"date": "2023-03-26 22:48:54 +0200",
"previous": null,
"url": "/jekyll/update/2023/03/26/welcome-to-jekyll.html",
"collection": "posts",
"next": null,
"relative_path": "_posts/2023-03-26-welcome-to-jekyll.markdown",
"name": "2023-03-26-welcome-to-jekyll.markdown",
"draft": false,
"layout": "post",
"slug": "welcome-to-jekyll",
"ext": ".markdown"
}}, @changes={}>
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/template.rb:204:in `render!'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag.rb:36:in `render'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/tag.rb:51:in `render_to_output_buffer'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:80:in `render_node'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:230:in `render_node'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:213:in `render_to_output_buffer'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/document.rb:41:in `render_to_output_buffer'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/template.rb:194:in `render'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/template.rb:204:in `render!'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:39:in `block (3 levels) in render!'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:59:in `measure_counts'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:38:in `block (2 levels) in render!'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:63:in `measure_bytes'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:37:in `block in render!'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:70:in `measure_time'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:36:in `render!'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/inclusion.rb:16:in `render'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/tags/include.rb:208:in `block in render'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/context.rb:134:in `stack'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/tags/include.rb:206:in `render'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/tag.rb:51:in `render_to_output_buffer'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:80:in `render_node'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:230:in `render_node'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:213:in `render_to_output_buffer'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/document.rb:41:in `render_to_output_buffer'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/template.rb:194:in `render'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/liquid-5.4.0/lib/liquid/template.rb:204:in `render!'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:39:in `block (3 levels) in render!'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:59:in `measure_counts'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:38:in `block (2 levels) in render!'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:63:in `measure_bytes'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:37:in `block in render!'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:70:in `measure_time'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:36:in `render!'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:129:in `render_liquid'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:192:in `render_layout'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:161:in `place_in_layouts'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:93:in `render_document'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:63:in `run'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:572:in `render_regenerated'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:557:in `block (2 levels) in render_docs'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:556:in `each'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:556:in `block in render_docs'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:555:in `each_value'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:555:in `render_docs'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:210:in `render'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:80:in `process'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:28:in `process_site'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:65:in `build'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:36:in `process'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `each'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
from /usr/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from /usr/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from /usr/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from /usr/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from /usr/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/exe/jekyll:15:in `<top (required)>'
from /usr/bin/jekyll:25:in `load'
from /usr/bin/jekyll:25:in `<top (required)>'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.9/lib/bundler/cli/exec.rb:58:in `load'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.9/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.9/lib/bundler/cli/exec.rb:23:in `run'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.9/lib/bundler/cli.rb:492:in `exec'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.9/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.9/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.9/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.9/lib/bundler/cli.rb:34:in `dispatch'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.9/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.9/lib/bundler/cli.rb:28:in `start'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.9/exe/bundle:45:in `block in <top (required)>'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.9/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /home/carlo/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.9/exe/bundle:33:in `<top (required)>'
from /home/carlo/.local/share/gem/ruby/3.0.0/bin/bundle:25:in `load'
from /home/carlo/.local/share/gem/ruby/3.0.0/bin/bundle:25:in `<main>'