ASKnetCommunity / LEAD

https://lead.asknet.community
MIT License
5 stars 17 forks source link

Broken plugins or dependencies on both LEAD and ASKnet sites locally #348

Closed dutkulang closed 7 months ago

dutkulang commented 8 months ago

When running docker compose up to launch the development server, working branch content branch on a newly cloned copy of ASKlead to avoid losing current work. Note that I get the same error even on my old clone of the repo. The only config that I touched is the Gemfile

  1. file structure
    dut@asknet:~/workspace/ask/LEAD$ ls
    404.html  CNAME        _data               extract.py  Gemfile.lock  index.html  LICENSE.txt  _profiles     README.md
    assets    _config.yml  docker-compose.yml  Gemfile     _includes     _layouts    _pages       profiles.csv  _site
  2. un-Commented `gem webrick"

    
    dut@asknet:~/workspace/ask/LEAD$ nl Gemfile
     1  source "https://rubygems.org"
    
     2  # webrick http local development server
    
     3  gem 'webrick'
    
     4  gem 'bundler'
     5  gem 'jekyll'
     6  gem 'jekyll-sitemap'
     7  gem 'wdm', '>= 0.1.0'
     8  gem 'jekyll-remote-include', :github => 'netrics/jekyll-remote-include'
3. start docker and development server
```sh
docker compose up
  1. the following error is produced
    lead-jekyll-1  |   Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/scss/style.scss':
    lead-jekyll-1  |                     end of file reached
    lead-jekyll-1  |                     ------------------------------------------------
    lead-jekyll-1  |       Jekyll 4.3.2   Please append `--trace` to the `serve` command 
    lead-jekyll-1  |                      for any additional information or backtrace. 
    lead-jekyll-1  |                     ------------------------------------------------
    lead-jekyll-1  | /usr/gem/gems/sass-embedded-1.69.5-x86_64-linux-musl/lib/sass/embedded/varint.rb:20:in `readbyte': end of file reached (EOFError)
    lead-jekyll-1  |    from /usr/gem/gems/sass-embedded-1.69.5-x86_64-linux-musl/lib/sass/embedded/varint.rb:20:in `block in read'
    lead-jekyll-1  |    from /usr/gem/gems/sass-embedded-1.69.5-x86_64-linux-musl/lib/sass/embedded/varint.rb:19:in `loop'
    lead-jekyll-1  |    from /usr/gem/gems/sass-embedded-1.69.5-x86_64-linux-musl/lib/sass/embedded/varint.rb:19:in `read'
    lead-jekyll-1  |    from /usr/gem/gems/sass-embedded-1.69.5-x86_64-linux-musl/lib/sass/embedded/connection.rb:29:in `block (2 levels) in initialize'
    lead-jekyll-1  |    from /usr/gem/gems/sass-embedded-1.69.5-x86_64-linux-musl/lib/sass/embedded/connection.rb:28:in `loop'
    lead-jekyll-1  |    from /usr/gem/gems/sass-embedded-1.69.5-x86_64-linux-musl/lib/sass/embedded/connection.rb:28:in `block in initialize'
    lead-jekyll-1 exited with code 1
dutkulang commented 8 months ago

@bmen @timmwille

bmen commented 8 months ago

You are using docker compose version 2.x or higher. The Gem webrick is a prerequisite. So you have to enter gem "webrick" in the gemfile.

dutkulang commented 8 months ago

@bmen yes gem "webrick" exists in the gemfile,

bmen commented 8 months ago

in which branch do you work? @dutkulang

dutkulang commented 8 months ago

on the content branch, on the same branch content inside the Gemfile I un-commented out gem webrick

dutkulang commented 7 months ago

I had to git restore Gemfile.lock file to the initial state that @bmen committed it at the initial start of development , looking through it I discovered that he had jekyll-sass-converter plugin but did not include it in the Gemfile as gem 'jekyll-sass-converter' that would then saved us from this error