0

我一直在尝试让 Reek Linter 插件在我的 OSX 机器上与 Sublime Text 3 一起工作,但我没有运气。

该插件称为SublimeLinter-contrib-reek. 我已按照包装主页上的说明进行操作,但仍然无法正常工作。

当我启用调试模式时,我在控制台中收到此错误:

SublimeLinter: ENV['GEM_HOME'] = '/Users/David/.rvm/gems/ruby-2.3.1' 
SublimeLinter: reek version query: /Users/David/.rvm/bin/rvm-auto-ruby -S reek -v 
SublimeLinter: WARNING: no reek version could be extracted from:
/Users/David/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems.rb:271:in `find_spec_for_exe': can't find gem reek (>= 0.a) (Gem::GemNotFoundException)
  from /Users/David/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems.rb:299:in `activate_bin_path'
  from /Users/David/.rvm/gems/ruby-2.3.1/bin/reek:23:in `<main>'

SublimeLinter:           using cmd: ['/Users/David/.rvm/bin/rvm-auto-ruby', '-S', 'reek', '-v'], env: {'USER': 'David', 'TMPDIR': '/var/folders/4h/2z9m8s3d2pngdjxdvynfb90m0000gn/T/', 'SHELL': '/bin/bash', 'LC_CTYPE': 'en_US.UTF-8', 'HOME': '/Users/David', 'XML_CATALOG_FILES': ' file:///etc/xml/catalog file:///etc/xml/catalog.xml', 'PATH': '/usr/local/bin:/usr/local/opt/imagemagick@6/bin:/usr/local/opt/qt@5.5/bin:/Users/David/.rvm/gems/ruby-2.3.1/bin:/Users/David/.rvm/gems/ruby-2.3.1@global/bin:/Users/David/.rvm/rubies/ruby-2.3.1/bin:/opt/local/bin:/opt/local/sbin:/usr/local/sbin:/opt/local/bin:/opt/local/sbin:/Users/David/.nvm/versions/node/v6.3.0/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/TeX/texbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/David/Documents/Development/tools/infer-osx-v0.1.0/infer/infer/bin:/usr/local/ec2/ec2-api-tools-1.7.5.0//bin:/Users/David/.rvm/bin', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.5GF3JtTX5B/Listeners', 'LOGNAME': 'David', 'PYTHONIOENCODING': 'utf8', 'XPC_SERVICE_NAME': 'com.sublimetext.3.1880', 'Apple_PubSub_Socket_Render': '/private/tmp/com.apple.launchd.4bQlKdCF7j/Render', 'DISPLAY': '/private/tmp/com.apple.launchd.HsWI5bJQqo/org.macosforge.xquartz:0', 'LANG': 'en_US.UTF-8', 'XPC_FLAGS': '0x0', '__CF_USER_TEXT_ENCODING': '0x1F5:0x0:0xF'} 
environment variables loaded using: /bin/bash -l

任何帮助将不胜感激。

4

0 回答 0