Hello
i cannot run jekyll with command “jekyll bundle exec” on local server. The output on terminal is:
bundle exec jekyll serve
jekyll 4.2.1 | Error: (C:/Users/sdcar/twistin.github.io/_config.yml): mapping values are not allowed in this context at line 113 column 16
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:143:in `parse': (C:/Users/sdcar/twistin.github.io/_config.yml): mapping values are not allowed in this context at line 113 column 16 (Psych::SyntaxError)
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:143:in `load'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:157:in `block in load_file'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:157:in `open'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:157:in `load_file'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/configuration.rb:129:in `safe_load_file'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/configuration.rb:167:in `read_config_file'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/configuration.rb:198:in `block in read_config_files'
Hi;
I still have problems… I can neither open Jekyll on local server, nor update the page on Github…it’s really frustrating
The output in VSC terminal is as follows:
PS C:\sersdersdcar\twistin.github.io> bundle exec
jekyll serve
Configuration file: C:/Users/sdcar/twistin.github.io/_config.yml
Source: C:/Users/sdcar/twistin.github.io
Destination: C:/Users/sdcar/twistin.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
Automatic pages: Disabled/Not configured in site.config.
Pagination: Full, processed 1 pagination page(s).
Imagemagick: Looking for files in C:/Users/sdcar/twistin.github.io/assets/img/
Imagemagick: Generating image "C:/Users/sdcar/twistin.github.io/_site/assets/img/1-480.webp".
------------------------------------------------
Jekyll 4.2.1 Please add `--trace` to the `serve` command
command for any additional information or backtrace.
------------------------------------------------
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/log_adapter.rb:110:in `gsub`: invalid byte sequence in UTF-8 (ArgumentError)
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/log_adapter.rb:110:in
`message
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/log_adapter.rb:148:in
`type'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/log_adapter.rb:86:in `error'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-imagemagick-1.4.0/lib/jekyll-imagemagick/convert.rb:19:in `run_cmd'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-imagemagick-1.4.0/lib/jekyll-imagemagick/convert.rb:35:in `run'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-imagemagick-1.4.0/lib/jekyll-imagemagick/generator.rb:118:in `block in generate_files'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-imagemagick-1.4.0/lib/jekyll-imagemagick/generator.rb:108:in `each'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-imagemagick-1.4.0/lib/jekyll-imagemagick/generator.rb:108:in `generate_files'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-imagemagick-1.4.0/lib/jekyll-imagemagick/generator.rb:41:in `generate'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/site.rb:193:in `block
en generate'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/site.rb:191:in `each'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/site.rb:191:in `generate'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/site.rb:79:in `process'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:28:in `process_site'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/commands/build.rb:65:in `build'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/commands/build.rb:36:in `process'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'.
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:91:in `each'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'.
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `go'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/exe/jekyll:15:in `<top (required)>'
from C:/Ruby31-x64/bin/jekyll:25:in `load'
from C:/Ruby31-x64/bin/jekyll:25:in `<main>
I have not fixed the problem. Also, I used the command ‘–trace’ and the result is :
'jekyll serve --trace
Configuration file: C:/Users/sdcar/Documents/my_site/_config.yml
Source: C:/Users/sdcar/Documents/my_site
Destination: C:/Users/sdcar/Documents/my_site/_site
Incremental build: disabled. Enable with --incremental
Generating...
AutoPages: Disabled/Not configured in site.config.
Pagination: Complete, processed 1 pagination page(s)
Imagemagick: Searching files in C:/Users/sdcar/Documents/my_site/assets/img/
Imagemagick: Generating image "C:/Users/sdcar/Documents/my_site/_site/assets/img/1-480.webp"
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/log_adapter.rb:110:in `gsub': invalid byte sequence in UTF-8 (ArgumentError)
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/log_adapter.rb:110:in `message'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/log_adapter.rb:148:in `write'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/log_adapter.rb:86:in `error'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-imagemagick-1.4.0/lib/jekyll-imagemagick/convert.rb:19:in `run_cmd'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-imagemagick-1.4.0/lib/jekyll-imagemagick/convert.rb:35:in `run'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-imagemagick-1.4.0/lib/jekyll-imagemagick/generator.rb:118:in `block in generate_files'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-imagemagick-1.4.0/lib/jekyll-imagemagick/generator.rb:108:in `each'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-imagemagick-1.4.0/lib/jekyll-imagemagick/generator.rb:108:in `generate_files'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-imagemagick-1.4.0/lib/jekyll-imagemagick/generator.rb:41:in `generate'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/site.rb:193:in `block in generate'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/site.rb:191:in `each'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/site.rb:191:in `generate'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/site.rb:79:in `process'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:28:in `process_site'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/commands/build.rb:65:in `build'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/commands/build.rb:36:in `process'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:91:in `each'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-4.2.1/exe/jekyll:15:in `<top (required)>'
from C:/Ruby31-x64/bin/jekyll:25:in `load'
from C:/Ruby31-x64/bin/jekyll:25:in `<main>'
'