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 'C:\usr\local\bin\stylint' #505

Closed
rootasjey opened this issue Apr 16, 2015 · 3 comments

Comments

@rootasjey
Copy link

Hello, the package isn't working on Windows 8.1 with Atom 0.192.
Maybe it's related to the OS : the directory that linter-stylint wants to find seems to be a unix one.

[steps to reproduce below:]

  1. Install linter and linter-stylint
  2. Open a .styl file

Atom Version: 0.192.0
System: Microsoft Windows 8.1 Pro
Thrown From: linter package, v0.12.0

Stack Trace

Uncaught Error: ENOENT: no such file or directory, stat 'C:\usr\local\bin\stylint'

At fs.js:846

Error: ENOENT: no such file or directory, stat 'C:\usr\local\bin\stylint'
  at Error (native)
  at fs.statSync (fs.js:846:18)
  at Object.fs.statSync (ATOM_SHELL_ASAR.js:206:16)
  at LinterStylint.Linter._cachedStatSync (C:\Users\Jeremie\.atom\packages\linter\lib\linter.coffee:69:17)
  at LinterStylint.Linter.getCmdAndArgs (C:\Users\Jeremie\.atom\packages\linter\lib\linter.coffee:86:16)
  at LinterStylint.Linter.lintFile (C:\Users\Jeremie\.atom\packages\linter\lib\linter.coffee:127:24)
  at C:\Users\Jeremie\.atom\packages\linter\lib\linter-view.coffee:158:18
  at Array.forEach (native)
  at C:\Users\Jeremie\.atom\packages\linter\lib\linter-view.coffee:157:18
  at FSReqWrap.oncomplete (fs.js:77:15)

Commands

Config

{
  "core": {
    "disabledPackages": [
      "wrap-guide",
      "save-session",
      "linter-jsxhint"
    ],
    "autoHideMenuBar": true
  },
  "linter": {
    "statusBar": "Show all errors",
    "showInfoMessages": true
  }
}

Installed Packages

# User
atom-jade, v0.1.0
atom-ternjs, v0.5.19
autocomplete-css, v0.6.0
autocomplete-paths, v1.0.2
autocomplete-plus, v2.10.0
autocomplete-snippets, v1.2.0
autohide-tree-view, v0.16.5
color-picker, v1.6.0
file-icons, v1.5.4
highlight-selected, v0.9.1
linter, v0.12.0
linter-jshint, v0.1.2
linter-stylint, v0.5.0
minimap, v4.7.6
react, v0.11.4
script, v2.19.0
Stylus, v0.7.0

# Dev
No dev packages
@steveoh
Copy link

steveoh commented May 27, 2015

👍

@audreytoskin
Copy link

I'm getting basically the same thing on Ubuntu 15.04 (x64).

Error message pops up frequently while working on a stylus file.

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

Stack Trace:

fs.js:846

Error: ENOENT: no such file or directory, stat '/usr/local/bin/stylint'
  at Error (native)
  at fs.statSync (fs.js:846:18)
  at Object.fs.statSync (ATOM_SHELL_ASAR.js:206:16)
  at LinterStylint.Linter._cachedStatSync ($HOME/.atom/packages/linter/lib/linter.coffee:87:17)
  at LinterStylint.Linter.getCmdAndArgs ($HOME/.atom/packages/linter/lib/linter.coffee:104:16)
  at LinterStylint.Linter.lintFile ($HOME/.atom/packages/linter/lib/linter.coffee:145:24)
  at $HOME/.atom/packages/linter/lib/linter-view.coffee:163:18
  at Array.forEach (native)
  at $HOME/.atom/packages/linter/lib/linter-view.coffee:162:18
  at FSReqWrap.oncomplete (fs.js:77:15)

@steveoh
Copy link

steveoh commented Jun 5, 2015

I'm not sure how to install plugins locally but I wonder if something like this will help this along. Seems like the linter has no idea where the executable is.

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

5 participants