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 '$HOME/.cabal/bin/hlint.hs' #299

Closed
50574E opened this issue Dec 17, 2014 · 1 comment
Closed

Comments

@50574E
Copy link

50574E commented Dec 17, 2014

Uncaught Error: ENOENT, no such file or directory '$HOME/.cabal/bin/hlint.hs'

Atom Version: 0.160.0
System: linux 3.13.0-24-generic
Thrown From: linter package, v0.9.0

Steps To Reproduce

// dunno if these will work I have not done a full reinstall.

  1. Install atom
  2. Install linter
  3. Install linter-hlint via npm
  4. Open somefile.hs

Stack Trace

At fs.js:726

Error: ENOENT, no such file or directory '$HOME/.cabal/bin/hlint.hs'
  at Error (native)
  at fs.statSync (fs.js:726:18)
  at Object.fs.statSync (/usr/share/atom/resources/atom/common/lib/asar.js:155:14)
  at LinterHLint.<anonymous> (/home/pawnda/.atom/packages/linter/lib/linter.coffee:56:8)
  at LinterHLint.memoized [as _cachedStatSync] (/home/pawnda/.atom/packages/linter/node_modules/lodash/dist/lodash.js:5569:32)
  at LinterHLint.Linter.getCmdAndArgs (/home/pawnda/.atom/packages/linter/lib/linter.coffee:71:16)
  at LinterHLint.Linter.lintFile (/home/pawnda/.atom/packages/linter/lib/linter.coffee:112:24)
  at /home/pawnda/.atom/packages/linter/lib/linter-view.coffee:138:18
  at Array.forEach (native)
  at /home/pawnda/.atom/packages/linter/lib/linter-view.coffee:137:18
  at Object.oncomplete (fs.js:93:15)

/cc @atom/core

I have hlint installed, it works on its own and in other editors.
Example 1

The hlint.hs is in the location atom wants it to be in. But it still doesn't see it.
Example 2

I have started atom from the terminal and via menus but the problem persists.

I did a 'cursory search' of other similar problems and I've done some googling but the problem seems to be some sort of bug?

@jackatbancast
Copy link

Have you tried changing the path to the hlint executable in the linter-hlint package?

Like below?

screen shot 2014-12-17 at 21 11 31

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

4 participants