将SublimeLiner调试设置为on,我在控制台中看到这一点,使其显示加载了linter:
SublimeLinter: scss activated: /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/bin/scss-lint
scss-lint实际上就在那个目录中。
但是我在编辑.scss文件时看到了这一点:
SublimeLinter: scss: _layout.scss ['/Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/bin/scss-lint']
SublimeLinter: scss output:
/Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'scss-lint' (>= 0) among 0 total gem(s) (Gem::LoadError)
from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'
from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/bin/scss-lint:22:in `<main>'
没有突出显示语法错误。
这是否提供了任何线索?
答案 0 :(得分:2)
当前版本的Scss-Lint不支持RVM, 您可以在https://github.com/attenzione/SublimeLinter-scss-lint/issues/5
获取更多信息有几种解决方法
rvm @global do gem install scss-lint
将scss-lint gem安装到@global gemset中,并正常启动Sublime Text 3。请记住这有点错过了整个RVM点(我自己也没有验证过)。