Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not run #88

Closed
daniiii5 opened this issue Jan 7, 2024 · 2 comments
Closed

Can not run #88

daniiii5 opened this issue Jan 7, 2024 · 2 comments

Comments

@daniiii5
Copy link

daniiii5 commented Jan 7, 2024

Describe the bug
Cant run the web

To Reproduce
Steps to reproduce the behavior:
Execute bundle exec jekyll serve

Expected behavior
To work

Screenshots
CMD output:

D:\daniv\Documentos\jekyll-klise-master>bundle exec jekyll serve
jekyll 4.1.1 | Error:  undefined method `[]' for nil
C:/Ruby33-x64/lib/ruby/3.3.0/logger.rb:384:in `level': undefined method `[]' for nil (NoMethodError)

    @level_override[Fiber.current] || @level
                   ^^^^^^^^^^^^^^^
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/jekyll-4.1.1/lib/jekyll/log_adapter.rb:45:in `adjust_verbosity'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/jekyll-4.1.1/lib/jekyll/configuration.rb:143:in `config_files'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/jekyll-4.1.1/lib/jekyll.rb:118:in `configuration'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/jekyll-4.1.1/lib/jekyll/command.rb:44:in `configuration_from_options'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/jekyll-4.1.1/lib/jekyll/commands/serve.rb:83:in `block (2 levels) in init_with_program'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/jekyll-4.1.1/exe/jekyll:15:in `<top (required)>'
        from C:/Ruby33-x64/bin/jekyll:25:in `load'
        from C:/Ruby33-x64/bin/jekyll:25:in `<main>'

D:\daniv\Documentos\jekyll-klise-master>

Desktop (please complete the following information):

  • OS: Windows 11 Insider Dev Preview 23612.1000
  • Browser Not needed
  • Version Not needed

Smartphone (please complete the following information):

  • Device:
  • OS:
  • Browser:
  • Version:

Additional context

@dopewevmond
Copy link

dopewevmond commented Jan 7, 2024

hi @daniiii5, i had the same issue. was running ruby v3.3.0 (same as you)

  • install an older version of ruby. v2.6.1 worked for me. i used ruby-install and chruby
  • get a fresh clone of the repo
  • cd into the folder and run bundle install. then bundle exec jekyll serve
    hopefully that should work

@daniiii5
Copy link
Author

daniiii5 commented Jan 7, 2024

hi @daniiii5, i had the same issue. was running ruby v3.3.0 (same as you)

  • install an older version of ruby. v2.6.1 worked for me. i used ruby-install and chruby
  • get a fresh clone of the repo
  • cd into the folder and run bundle install. then bundle exec jekyll serve
    hopefully that should work

No need to, just changed the version of Jekyll inside the Gemfile to a newer one, that bad that problem, and it got fixed

@daniiii5 daniiii5 closed this as completed Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants