atom/node-pathwatcher

Uncaught Error: EACCES, permission denied. // Idea: Maybe an enhancement.

keeev opened this issue · 1 comments

Hey,

I guess it's not a bug but something which could definitely be enhanced.
While I got this error above I tried to modify a file which I created through the terminal via sudo, that means I shouldn't have the permission to do so. Sometimes Mac OS asks me for my password as the root user then. Do you have any idea for making this step more seamless?

It's a little bit wird because the console opens then and throws that error:
/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:190
otherwise it would be a way you're used to when you modify files without permission on OS X.

if you're trying to open a file made with sudo, open atom with sudo:

sudo atom /path/to/your/file

I think there's also a graphical version of this called cocoasudo, but it's not builtin like Ubuntu's gksudo.

Anyway, this issue doesn't really have anything to do with pathwatcher & should be closed/migrated to https://discuss.atom.io/