You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 24, 2021. It is now read-only.
Whenever I try to preview I get the error 'Uncaught Error: spawn pandoc ENOENT'. I'm using version 0.1.2, Atom version 0.165.0 on OS X.
Here is the stack trace:
Error: spawn pandoc ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
I had the same problem, with the same error message as above. To fix it you have to:
vi `which atom`
Add "env" before this line:
open -a "$ATOM_PATH/$ATOM_APP_NAME" -n --args --executed-from="$(pwd)" --pid=$$ --path-environment="$PATH" "$@"
Like so:
env open -a "$ATOM_PATH/$ATOM_APP_NAME" -n --args --executed-from="$(pwd)" --pid=$$ --path-environment="$PATH" "$@"
Then call atom from the command line. I have yet to make it work by calling atom from spotlight
I also tried editing /etc/launchd.conf, adding in setenv PATH /Applications/Atom.app to the file and reloading everything with grep -E "^setenv" /etc/launchd.conf | xargs -t -L 1 launchctl, but that only gave me this error instead:
'pandoc' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.
I've got the same issue. Will work when I run atom from command line, but not launch as an icon/explorer. I've added "env" and that didn't fix it. Any updates of things to try out?
Activity
jagregory commentedon Dec 29, 2014
Have you got your PATH set up correctly? See: Problems with PATH
twsh commentedon Dec 30, 2014
I made the change you described; it didn't avoid the problem. (Pandoc is properly installed and in my path.)
One thing that does suggest that it might be a path issue of some sort: if I do
$ atom foo.md
it works fine.twsh commentedon Dec 30, 2014
I don't know if this is relevant: I have the same problem on Ubuntu 14.04. So it's not just an OS X quirk.
Skyfold commentedon Jan 18, 2015
I had the same problem, with the same error message as above. To fix it you have to:
Add "env" before this line:
Like so:
Then call atom from the command line. I have yet to make it work by calling atom from spotlight
I also tried editing /etc/launchd.conf, adding in
setenv PATH /Applications/Atom.app
to the file and reloading everything withgrep -E "^setenv" /etc/launchd.conf | xargs -t -L 1 launchctl
, but that only gave me this error instead:'pandoc' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.
jeffmcneill commentedon Feb 14, 2015
I've got the same issue. Will work when I run atom from command line, but not launch as an icon/explorer. I've added "env" and that didn't fix it. Any updates of things to try out?
jagregory commentedon Mar 18, 2015
I'm afraid not. This is a more general issue with Atom (and Sublime) and Macs, unfortunately.
maxheld83 commentedon May 12, 2015
I have the same problem, on OS X – even though
PATH
is set up as indicated:Starting Atom from CLI works just fine, oddly.