Skip to content

EACCES: permission denied when starting #174

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

Closed
logikaljay opened this issue Aug 22, 2020 · 5 comments
Closed

EACCES: permission denied when starting #174

logikaljay opened this issue Aug 22, 2020 · 5 comments

Comments

@logikaljay
Copy link

The extension crashes on start when it doesn't have permission to a folder or file in the project.

Example:

Error: EACCES: permission denied, scandir '/home/jay/tailwindcss-intellisense-crash-example/data/mongo/journal'
Emitted 'error' event at:
    at c._handleError (/home/jay/.vscode-server/extensions/bradlc.vscode-tailwindcss-0.4.2/dist/server/index.js:1:261315)
    at /home/jay/.vscode-server/extensions/bradlc.vscode-tailwindcss-0.4.2/dist/server/index.js:1:261016
    at worked (/home/jay/.vscode-server/extensions/bradlc.vscode-tailwindcss-0.4.2/dist/server/index.js:13:95816)
    at /home/jay/.vscode-server/extensions/bradlc.vscode-tailwindcss-0.4.2/dist/server/index.js:1:261133
    at l (/home/jay/.vscode-server/extensions/bradlc.vscode-tailwindcss-0.4.2/dist/server/index.js:1:190033)
    at /home/jay/.vscode-server/extensions/bradlc.vscode-tailwindcss-0.4.2/dist/server/index.js:1:189246
    at fs.js:153:23
    at FSReqCallback.req.oncomplete (fs.js:778:9) {
  errno: -13,
  code: 'EACCES',
  syscall: 'scandir',
  path: '/home/jay/tailwindcss-intellisense-crash-example/data/mongo/journal'
}
@bradlc
Copy link
Contributor

bradlc commented Aug 25, 2020

Hey @logikaljay. What do you think is the expected behaviour in this situation?

@logikaljay
Copy link
Author

If the extension can't read the directory, I would expect it to just be skipped.

bradlc added a commit that referenced this issue Aug 27, 2020
@kfriars
Copy link

kfriars commented Aug 31, 2020

I also have this issue. My use case is that I use docker, and the containers store data in a "docker/.data" directory inside my project. It is a real pain to configure a docker container to write to shared volumes in a manner that is readable and writeable by the host user.

"Hey @logikaljay. What do you think is the expected behaviour in this situation?"

For me, I think the current behavior is fine. However, I would at least like the ability to exclude directories from being scanned as a setting. Most extensions have this kind of setting. Even if it could look up the "files.exclude" setting, that would work for me.

@faisalhakim47
Copy link

I also have this issue because using docker volume in my project. I suggest that tailwind can use the .gitignore for starting point to exclude unwanted files.

@bradlc
Copy link
Contributor

bradlc commented Jan 8, 2021

Going to close this as the original issue is resolved. With regards to excluding files let's track that over at #139 👍

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