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

Error when deps folder does not exist #5

Open
gomezhyuuga opened this issue Oct 20, 2015 · 2 comments
Open

Error when deps folder does not exist #5

gomezhyuuga opened this issue Oct 20, 2015 · 2 comments

Comments

@gomezhyuuga
Copy link

When the deps folder doesn't exist, the linter throws the next error:

Error: ENOENT: no such file or directory, scandir '/Users/gomezhyuuga/Development/erlang/deps/'
Error: ENOENT: no such file or directory, scandir '/Users/gomezhyuuga/Development/erlang/deps/'
    at Error (native)
    at Object.fs.readdirSync (fs.js:813:18)
    at Object.fs.readdirSync (ATOM_SHELL_ASAR.js:449:28)
    at /Users/gomezhyuuga/.atom/packages/linter-erlang/lib/init.coffee:47:14
    at Object.provider.lint (/Users/gomezhyuuga/.atom/packages/linter-erlang/lib/init.coffee:42:20)
    at Promise.then._this.emitter.emit.linter (/Users/gomezhyuuga/.atom/packages/linter/lib/linter-registry.coffee:59:22)
    at LinterRegistry.triggerLinter (/Users/gomezhyuuga/.atom/packages/linter/lib/linter-registry.coffee:58:16)
    at /Users/gomezhyuuga/.atom/packages/linter/lib/linter-registry.coffee:52:17
    at Array.map (native)
    at /Users/gomezhyuuga/.atom/packages/linter/lib/linter-registry.coffee:50:27
gomezhyuuga added a commit to gomezhyuuga/linter-erlang that referenced this issue Oct 20, 2015
Simply enclose fs.readdir into a try/catch
@redpublic
Copy link

Has it been fixed?

@gomezhyuuga
Copy link
Author

It should be fixed but the pull-request ( #6 ) has not been merged yet. You can check the commit and apply the changes for yourself or you can use this fork.

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

2 participants