dracula / snippetslab

🧛🏻‍♂️ Dark theme for SnippetsLab
https://draculatheme.com/snippetslab
MIT License
5 stars 1 forks source link

Getting: cannot load such file -- active_support/all (LoadError) #3

Closed bsschang closed 1 year ago

bsschang commented 1 year ago

Hello:

I cloned the git repository and then ran './generate.command'. I am getting the following error:

/usr/local/Homebrew/Library/Taps/dracula/homebrew-install/cmd/dracula-yaml-json.rb:1:in `require': cannot load such file -- active_support/all (LoadError)
    from /usr/local/Homebrew/Library/Taps/dracula/homebrew-install/cmd/dracula-yaml-json.rb:1:in `<top (required)>'
    from ./generate.rb:3:in `require'
    from ./generate.rb:3:in `<main>'

I have spent considerable time googling for help, but nothing I have tried is working. It's possible that I have something configured incorrectly on my side, but I'm not sure where to look.

Thank you!

danielbayley commented 1 year ago

@bsschang It was a problem with brew not having access to the necessary bundled RubyGems, since they aren’t installed by default. I pushed a fix, so please test and report back… Thanks.

Also, be sure the tap is updated:

brew update
brew untap dracula/install --force
brew tap dracula/install
brew install --cask dracula-snippetslab
bsschang commented 1 year ago

@danielbayley It worked -- thank you!

If you are willing to share what you fixed, I'd love to learn.

Is it proper etiquette for me to close this issue since you fixed it?

danielbayley commented 1 year ago

If you are willing to share what you fixed, I'd love to learn.

@bsschang Sure, it needed to ensure the bundled RubyGems were installed to be able to access and use methods from Active Support… See https://github.com/dracula/homebrew-install/blob/main/cmd/dracula-yaml-json.rb#L3-L4, along with a few other small fixes… Basically, the generate.command/generate.rb relies on the above command (as with other themes) to generate the actual Dracula.json theme… the failure of which was breaking the install.

Is it proper etiquette for me to close this issue since you fixed it?

Probably… but I already did 😉

bsschang commented 1 year ago

@danielbayley Thank you for taking the time to explain (with links!) and help me understand.