Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Foodcritic not working on Windows when installed with Chef-DK #139

Closed
mattstratton opened this issue Aug 21, 2014 · 3 comments
Closed

Foodcritic not working on Windows when installed with Chef-DK #139

mattstratton opened this issue Aug 21, 2014 · 3 comments

Comments

@mattstratton
Copy link
Contributor

User's Windows 7 machine that had zero rubies on it prior, installed Chef-DK and when trying to run foodcritic get the following:

PS C:\chefgit> foodcritic .
C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require': cannot load such file -- yajl/2.0/yajl (LoadError)
        from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
       from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/yajl-ruby-1.1.0-x86-mingw32/lib/yajl/yajl.rb:2:in `<top (required)>'
        from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/yajl-ruby-1.1.0-x86-mingw32/lib/yajl.rb:1:in `<top (required)>'
        from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
        from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/foodcritic-3.0.3/lib/foodcritic.rb:5:in `<top (required)>'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/foodcritic-3.0.3/bin/foodcritic:2:in `require_relative'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/foodcritic-3.0.3/bin/foodcritic:2:in `<top (required)>'
        from C:/opscode/chefdk/bin/foodcritic:23:in `load'
        from C:/opscode/chefdk/bin/foodcritic:23:in `<main>'
@jf647
Copy link

jf647 commented Aug 22, 2014

This is a dup of #124, which was closed as "will auto-fix when the next Chef DK is built".

I presented a workaround in the comments on that issue that will get you working on 0.2.0.

@sersut
Copy link

sersut commented Aug 22, 2014

Thanks for the explanation @jf647. A Chef DK release is currently in the works with the ETA of early next week. Closing this issue for now. Let's reopen if we can repro with the new build.

@sersut sersut closed this as completed Aug 22, 2014
@mattstratton
Copy link
Contributor Author

Thanks @jf647 and @sersut for tolerating my opening of the issue without checking for an existing one already 👍

ksubrama pushed a commit that referenced this issue Jan 11, 2016
git-cache updates for chef & chefdk
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants