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

Load project hangs due to EACCES: permission denied #2559

Closed
4 tasks done
willhoyle opened this issue Dec 11, 2020 · 4 comments
Closed
4 tasks done

Load project hangs due to EACCES: permission denied #2559

willhoyle opened this issue Dec 11, 2020 · 4 comments
Labels

Comments

@willhoyle
Copy link

willhoyle commented Dec 11, 2020

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: Linux
  • Vetur version: v0.31.2 v0.31.1 v0.31.0 (works when using v0.30.3)
  • VS Code version: 1.52.0

Problem

Vetur initialized
[Error - 11:45:17 AM] Request textDocument/documentSymbol failed.
Message: Request textDocument/documentSymbol failed with message: EACCES: permission denied, scandir '/home/will/projects/dashboard/data/postgres'
Code: -32603

Reproducible Case

I have a workspace with a repo similar to the following:

dashboard/
    data/postgres
    frontend/
        components/
        pages/
        package.json
        etc...
    src/backend stuff/...
    vetur.config.js

since my vue app is in frontend, I have the following vetur.config.js (ie. dashboard/vetur.config.js)

// vetur.config.js
/** @type {import('vls').VeturConfig} */
module.exports = {
    // **optional** default: `{}`
    // override vscode settings
    // Notice: It only affects the settings used by Vetur.
    settings: {
      "vetur.useWorkspaceDependencies": true,
      "vetur.experimental.templateInterpolationService": true
    },
    // **optional** default: `[{ root: './' }]`
    // support monorepos
    projects: [
      {
        // **required**
        // Where is your project?
        // It is relative to `vetur.config.js`.
        root: './frontend',
        // **optional** default: `'package.json'`
        // Where is `package.json` in the project?
        // We use it to determine the version of vue.
        // It is relative to root property.
        package: './package.json',
        // **optional** default: `[]`
        // Register globally Vue component glob.
        // If you set it, you can get completion by that components.
        // It is relative to root property.
        // Notice: It won't actually do it. You need to use `require.context` or `Vue.component`
      }
    ]
  }

my .gitignore has data in it. It is managed by the postgres docker image, which is why I don't have permission to read the folder. I could fix this by fixing how I run that docker image but it would be nice to have vetur ignore this folder since it doesn't have permission?

Also, I'll just link the other issue for reference: #2554

@yoyo930021 yoyo930021 added the bug label Dec 12, 2020
@yoyo930021
Copy link
Member

vetur-0.31.2.vsix.zip

https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix

Install this version and paste output panel message in this issue.

@yoyo930021
Copy link
Member

yoyo930021 commented Dec 12, 2020

I can't reproduce in macOS.
Please provide a repro case.
https://github.com/vuejs/vetur/blob/master/.github/NO_REPRO_CASE.md

@willhoyle
Copy link
Author

thanks for looking into this. I hope the following repro helps:

https://github.com/willhoyle/veturpack

Directions are in the readme

@yoyo930021
Copy link
Member

thanks for looking into this. I hope the following repro helps:

https://github.com/willhoyle/veturpack

Directions are in the readme

Thank you for your help.
I fix it in v0.31.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants