'pathutil' ruby​​ gem 与 jekyll (v3.9.0) 和 ruby​​ (v3.0.0) 兼容吗? [英] Is the 'pathutil' ruby gem compatible with jekyll (v3.9.0) and ruby (v3.0.0)?

查看:68
本文介绍了'pathutil' ruby​​ gem 与 jekyll (v3.9.0) 和 ruby​​ (v3.0.0) 兼容吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题:我有一个基于 jekyll 的静态网站;运行 bundle exec jekyll serve (按照 jekyll 文档的指示)后,我得到了下面的堆栈跟踪.我在堆栈跟踪中为该博客文章文件创建的 Markdown 文件完全是标准语法.我已经在 google 上搜索了特定的错误,并获得了有关无法解决我的问题的类似错误的帖子.我还搜索了 jekyll 文档,看看是否有任何不兼容的问题.

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'

我所有的代码都可以在 github 上找到:https://github.com/thomdlee/thomdlee.github.io

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

我的环境:

  • Ubuntu 20.10(在 Windows 10 上的 WSL 2 中运行)
  • Ruby v3.0.0
  • Jekyll (gem) v3.9.0
  • pathutil (gem) v0.16.2

推荐答案

pathutil 似乎存在弃用问题 链接

我遇到了同样的问题,但将 Ruby 降级到 2.7.x 可以解决这个问题.

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

这篇关于'pathutil' ruby​​ gem 与 jekyll (v3.9.0) 和 ruby​​ (v3.0.0) 兼容吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆