Is the 'pathutil' ruby gem compatible with jekyll (v3.9.0) and ruby (v3.0.0)?

Viewed 1090

My problem: I have a jekyll-based static website; after running bundle exec jekyll serve (as directed by the jekyll docs) I get the stack trace below. The markdown file I've created for that blog post file in the stack trace is entirely standard syntax. I've googled the specific error and get posts for similar errors that don't solve my problem. I've also scoured the jekyll docs to see if there are any incompatibilities with no luck.

           Writing: /home/REDACTED/projects/thomdlee.github.io/_site/jekyll/update/2020/12/28/currently-in-maintenance.html
                    done in 0.356 seconds.
jekyll 3.9.0 | Error:  no implicit conversion of Hash into Integer
/home/REDACTED/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/pathutil-0.16.2/lib/pathutil.rb:502:in `read': no implicit conversion of Hash into Integer (TypeError)
        from /home/REDACTED/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/pathutil-0.16.2/lib/pathutil.rb:502:in `read'

All my code can be found here on github: https://github.com/thomdlee/thomdlee.github.io

My environment:

  • Ubuntu 20.10 (running in WSL 2 on Windows 10)
  • Ruby v3.0.0
  • Jekyll (gem) v3.9.0
  • pathutil (gem) v0.16.2
3 Answers

It seems pathutil have an issue with deprecation Link

I had a same issue, but downgrading Ruby to 2.7.x solve this.

I had the same issue but in MacOS environment.

To fix it I've ran the following command on the project folder:

bundler update

Related