Skip to content
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

Uncaught Error: ENOENT: no such file or directory, stat '/usr/local/bin/rubocop ' #520

Closed
thorsten-mueller opened this issue May 1, 2015 · 0 comments

Comments

@thorsten-mueller
Copy link

[Enter steps to reproduce below:]

  1. Install gem rubocop
  2. Install atom packages linter & linter-rubocop
  3. Open any .rb file

Atom Version: 0.196.0
System: linux 3.19.0-15-generic
Thrown From: linter package, v0.12.1

Stack Trace

Uncaught Error: ENOENT: no such file or directory, stat '/usr/local/bin/rubocop
'

At fs.js:846

Error: ENOENT: no such file or directory, stat '/usr/local/bin/rubocop                                                                                                                                                                                                         
'
  at Error (native)
  at fs.statSync (fs.js:846:18)
  at Object.fs.statSync (ATOM_SHELL_ASAR.js:206:16)
  at LinterRubocop.Linter._cachedStatSync (/home/thor/.atom/packages/linter/lib/linter.coffee:69:17)
  at LinterRubocop.Linter.getCmdAndArgs (/home/thor/.atom/packages/linter/lib/linter.coffee:86:16)
  at LinterRubocop.Linter.lintFile (/home/thor/.atom/packages/linter/lib/linter.coffee:127:24)
  at /home/thor/.atom/packages/linter/lib/linter-view.coffee:163:18
  at Array.forEach (native)
  at /home/thor/.atom/packages/linter/lib/linter-view.coffee:162:18
  at FSReqWrap.oncomplete (fs.js:77:15)

Commands

     -5:55.9.0 settings-view:open (atom-text-editor.editor)
     -0:21.9.0 editor:move-to-end-of-word (atom-text-editor.editor.mini)

Config

{
  "core": {
    "themes": [
      "atom-solarized-dark-ui",
      "solarized-dark-syntax"
    ]
  },
  "linter": {}
}

Installed Packages

# User
atom-solarized-dark-ui, v0.25.0
file-icons, v1.5.4
linter, v0.12.1
linter-rubocop, v0.2.3
minimap, v4.8.0
minimap-color-highlight, v4.1.0
tabs-to-spaces, v0.9.2

# Dev
No dev packages

/usr/local/bin/rubocop is owned by root but has full permissions and can be run as normal user from commandline:

-rwxr-xr-x 1 thor thor 496 Mai 1 13:28 rubocop

Still if I start Atom with kdesudo the error goes away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants