yujinakayama / atom-lint

Obsolete: Generic code linting support for Atom
https://atom.io/packages/atom-lint
MIT License
111 stars 33 forks source link

Rubocop not working since upgrade to Yosemite #107

Closed RafeHatfield closed 9 years ago

RafeHatfield commented 9 years ago

Big fan of your plugin, but since my upgrade to Yosemite rubocop hasn't been functional. I've been getting 'Rubocop not installed' message, editing the config and adding the below removes that error, but then the highlighting isn't working correctly. I've tried using both the global path to rubocop and the gemset path (I'm using rvm).

Appreciate any insight!

'atom-lint':
    'rubocop':
        'path': '/Users/rafehatfield/.rvm/gems/ruby-2.1.3@projectname/bin/rubocop'
rochefort commented 9 years ago

Now it works under global:

'global':
  'atom-lint':
      'rubocop':
          'path': '/Users/rafehatfield/.rvm/gems/ruby-2.1.3@projectname/bin/rubocop'
yujinakayama commented 9 years ago

Here's a workaround on OS X Yosemite: https://github.com/yujinakayama/atom-lint#workaround-on-os-x-yosemite

acrogenesis commented 9 years ago

The PR fixing this has already been merged https://github.com/atom/atom/pull/4064

RafeHatfield commented 9 years ago

Back and working, thanks for the updates and help!

yujinakayama commented 9 years ago

The underlying issue with the PATH is now handled in Atom 0.142.0, so it's recommended to upgrade Atom and remove the process.env.PATH = '...'; in your ~/.atom/init.coffee added by the workaround.