jekyll
一、bug:
- 执行 jekyll s 报:in `load’: marshal data too short (ArgumentError)
完整bug记录:
Configuration file: F:/develop_doc/blog/github/pentiumCM_github_io/pentiumCM.github.io/_config.yml
------------------------------------------------
Jekyll 4.0.0 Please append `--trace` to the `serve` command
for any additional information or backtrace.
------------------------------------------------
Traceback (most recent call last):
19: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/bin/jekyll:23:in `<main>'
18: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/bin/jekyll:23:in `load'
17: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/exe/jekyll:15:in `<top (required)>'
16: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
15: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
14: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
13: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
12: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
11: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
10: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `process_with_graceful_fail'
9: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `each'
8: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `block in process_with_graceful_fail'
7: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/commands/build.rb:30:in `process'
6: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/commands/build.rb:30:in `new'
5: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/site.rb:33:in `initialize'
4: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/site.rb:113:in `reset'
3: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/cache.rb:41:in `clear_if_config_changed'
2: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/cache.rb:86:in `[]'
1: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/cache.rb:171:in `load'
F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/cache.rb:171:in `load': marshal data too short (ArgumentError)
解决方案:
在命令行中执行:
jekyll clean
之后再执行:jekyll s便正常了
参考GitHub中某大神issue:
https://github.com/jekyll/jekyll/issues/3761