➜ _posts git:(jekyll) tree -L 2
.
├── 日常
│ ├── chapter0
│ └── chapter1
├── 杂谈
│ ├── 2019-05-18-penguin_and_rpg.md # for example, change this file, then crash
....
+ I change local file to fix this error, but I‘m not the expert at ruby, so i made this issue
```ruby
# Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)
# /opt/homebrew/lib/ruby/gems/3.2.0/gems/listen-3.8.0/lib/listen/adapter/darwin.rb:68:in `_process_event'
# before
rel_path = path.relative_path_from(dir).to_s
# after
rel_path = path.relative_path_from(dir).to_s.force_encoding('utf-8')
Change the file whose folder contains utf-8 string
Other information (It seems like only crash with macOS)
➜ ~ ruby --version ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin22]
project tree structure
find the project at https://github.com/jskyzero/design.jskyzero.com
➜ _posts git:(jekyll) tree -L 2 . ├── 日常 │ ├── chapter0 │ └── chapter1 ├── 杂谈 │ ├── 2019-05-18-penguin_and_rpg.md # for example, change this file, then crash ....