-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
brew cask style failed #52775
Comments
I'm facing the same issue. I'll add the output of the $ brew cask style --debug
Ignoring jaro_winkler-1.5.1 because its extensions are not built. Try: gem pristine jaro_winkler --version 1.5.1
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- jaro_winkler (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-0.59.2/lib/rubocop/string_util.rb:3:in `<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-0.59.2/lib/rubocop.rb:21:in `require_relative'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-0.59.2/lib/rubocop.rb:21:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-0.59.2/exe/rubocop:6:in `<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/bin/rubocop:22:in `load'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/bin/rubocop:22:in `<main>'
Error: style check failed
/usr/local/Homebrew/Library/Homebrew/cask/cmd/style.rb:15:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/abstract_command.rb:34:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:89:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:155:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:120:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:7:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:91:in `<main>'
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:160:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:160:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:143:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:120:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:7:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:91:in `<main>' |
Thx |
Same 😞 > cmd brew cask style --debug
Ignoring jaro_winkler-1.5.1 because its extensions are not built. Try: gem pristine jaro_winkler --version 1.5.1
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- jaro_winkler (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-0.59.1/lib/rubocop/string_util.rb:3:in `<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-0.59.1/lib/rubocop.rb:21:in `require_relative'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-0.59.1/lib/rubocop.rb:21:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-0.59.1/exe/rubocop:6:in `<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/bin/rubocop:22:in `load'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/bin/rubocop:22:in `<main>'
Error: style check failed
/usr/local/Homebrew/Library/Homebrew/cask/cmd/style.rb:15:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/abstract_command.rb:34:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:89:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:155:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:120:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:7:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:91:in `<main>'
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:160:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:160:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:143:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:120:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:7:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:91:in `<main>' then |
FYI, this comment fixed it. But that probably doesn't solve whatever was the root cause… |
Probably a software update or Mojave |
Didn't work for me |
Please run:
and try |
Sorry to say
|
Not sure why it solves it, but my go to fix lately has been to run:
Wether if it's a good idea or not, I don't know, but at least is solves the issue temporarily. |
Didn't work |
So... does anyone have any idea what I can do? |
Hi again, Just had my own error about
|
Except the jaro-winkler gem that brew needs to style is broken and I have no clue how to fix it |
This issue also breaks CI server. Does anyone knows the root cause or how to fix it? |
I have yet to determine what the root cause was, my first guess was my upgrade to Mojave. |
I'm running it on High Sierra and got the same error, so I think it not only happened on Mojave. |
Huh, weird |
I found the way to fix
to
The difference between However, since the CI server also break because of Updated: |
Even after brew update, brew cask style $ cd "$(brew --repository)"/Library/Taps/Homebrew/homebrew-cask
$ brew cask style Casks/oxygen-xml-editor.rb
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- jaro_winkler (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-0.59.2/lib/rubocop/string_util.rb:3:in `<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-0.59.2/lib/rubocop.rb:21:in `require_relative'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-0.59.2/lib/rubocop.rb:21:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-0.59.2/exe/rubocop:6:in `<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/bin/rubocop:22:in `load'
from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/bin/rubocop:22:in `<main>'
Error: style check failed
Joes-MacBook-Pro-13-PAHO:homebrew-cask joe$ brew cask style Casks/oxygen-xml-editor
Error: Cask 'oxygen-xml-editor' is unavailable: No Cask with this name exists. Did you mean “oxygen-xml-editor ✔”? cask-repair $ cask-repair oxygen-xml-editor
Updating taps… Already up-to-date.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
cask 'oxygen-xml-editor' do
version :latest
sha256 :no_check
url 'http://mirror.oxygenxml.com/InstData/Editor/MacOSX/VM/oxygen.dmg'
name 'oXygen XML Editor'
homepage 'https://www.oxygenxml.com/xml_editor.html'
suite 'Oxygen XML Editor'
end
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Type the new version (or leave blank to use current one, or use `s` to skip)
>
Paste the new URL (or leave blank to use the current one)
> https://www.oxygenxml.com/InstData/Editor/MacOSX/VM/oxygen.dmg
diff --git a/Casks/oxygen-xml-editor.rb b/Casks/oxygen-xml-editor.rb
index c05dd2b6b..230f73b8c 100644
--- a/Casks/oxygen-xml-editor.rb
+++ b/Casks/oxygen-xml-editor.rb
@@ -2,7 +2,7 @@ cask 'oxygen-xml-editor' do
version :latest
sha256 :no_check
- url 'http://mirror.oxygenxml.com/InstData/Editor/MacOSX/VM/oxygen.dmg'
+ url 'https://www.oxygenxml.com/InstData/Editor/MacOSX/VM/oxygen.dmg'
name 'oXygen XML Editor'
homepage 'https://www.oxygenxml.com/xml_editor.html'
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
•
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Is everything correct? ([y]es / [n]o / [e]dit) y
diff --git a/Casks/oxygen-xml-editor.rb b/Casks/oxygen-xml-editor.rb
index c05dd2b6b..230f73b8c 100644
--- a/Casks/oxygen-xml-editor.rb
+++ b/Casks/oxygen-xml-editor.rb
@@ -2,7 +2,7 @@ cask 'oxygen-xml-editor' do
version :latest
sha256 :no_check
- url 'http://mirror.oxygenxml.com/InstData/Editor/MacOSX/VM/oxygen.dmg'
+ url 'https://www.oxygenxml.com/InstData/Editor/MacOSX/VM/oxygen.dmg'
name 'oXygen XML Editor'
homepage 'https://www.oxygenxml.com/xml_editor.html'
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
•
•
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Is everything correct? ([y]es / [n]o / [e]dit) ^C
You aborted. |
I think thats different issue. In your case, the problem seems missing the gem
Maybe you should check if this gem installed, or try to reinstall it again and see if it works? |
Please stop discussing |
Noted, now the question is how do we fix |
I beg your forgiveness, but I'm gem-illiterate. Could you suggest some specific commands that I should run? I've updated & upgraded homebrew, and brew doctor says I'm ready to brew. But |
Here are some attempts to answer the question about if I have jaro_winkler installed (no, it appears). As you can tell, I am not a ruby user - I just use homebrew and thus depend on $ gem list
*** LOCAL GEMS ***
bigdecimal (1.2.8)
CFPropertyList (2.2.8)
did_you_mean (1.0.0)
io-console (0.4.5)
json (1.8.3.1)
libxml-ruby (2.9.0)
minitest (5.8.5)
net-telnet (0.1.1)
nokogiri (1.5.6)
power_assert (0.2.6)
psych (2.1.0.1)
rake (10.4.2)
rdoc (4.2.1)
sqlite3 (1.3.11)
test-unit (3.1.5)
$ gem install jaro_winkler
Fetching: jaro_winkler-1.5.1.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
$ brew search rubocop
No formula or cask found for "rubocop".
$ gem install rubocop
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory. |
Try sudo?
…On Mon, Oct 22, 2018, 1:49 PM Joe Wicentowski ***@***.***> wrote:
Here are some attempts to answer the question about if I have jaro_winkler
installed (no, it appears). As you can tell, I am not a ruby user - I just
use homebrew and thus depend on brew cask style.
$ gem list
*** LOCAL GEMS ***
bigdecimal (1.2.8)
CFPropertyList (2.2.8)
did_you_mean (1.0.0)
io-console (0.4.5)
json (1.8.3.1)
libxml-ruby (2.9.0)
minitest (5.8.5)
net-telnet (0.1.1)
nokogiri (1.5.6)
power_assert (0.2.6)
psych (2.1.0.1)
rake (10.4.2)
rdoc (4.2.1)
sqlite3 (1.3.11)
test-unit (3.1.5)
$ gem install jaro_winkler
Fetching: jaro_winkler-1.5.1.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.$ brew search rubocopNo formula or cask found for "rubocop".$ gem install rubocopERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#52775 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AV-IdqJwQ--G2G6OAWFr0O9KWVyxxY66ks5uniE8gaJpZM4XGJt_>
.
|
Seems like the |
This is actually a bug in Mojave, so I'll reopen this as a tracking issue. https://openradar.appspot.com/46465917 |
Thank you @reitermarkus . |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
General troubleshooting steps
--force
and the issue is still present.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
{{Whenever I try to use
brew cask style' or
cask-repair` both come back with some error}}Command that failed
Output of command with
--force --verbose --debug
Output of
brew cask doctor
Output of
brew tap
The text was updated successfully, but these errors were encountered: