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

Windows 11 - WSL2 - Could not find source file #3278

Open
4 tasks done
florinrelea opened this issue Dec 16, 2021 · 0 comments
Open
4 tasks done

Windows 11 - WSL2 - Could not find source file #3278

florinrelea opened this issue Dec 16, 2021 · 0 comments

Comments

@florinrelea
Copy link

  • 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: Windows 11 / WSL2 - Ubuntu 20.04
  • Vetur version: 0.35.0
  • VS Code version: 1.63.1

Problem

Vetur initialized
[INFO ] Loaded bundled typescript@4.4.4.
[INFO ] Loaded bundled prettier.
[INFO ] Loaded bundled @starptech/prettyhtml.
[INFO ] Loaded bundled prettier-eslint.
[INFO ] Loaded bundled prettier-tslint.
[INFO ] Loaded bundled stylus-supremacy.
[INFO ] Loaded bundled @prettier/plugin-pug.
[Error - 10:22:24 AM] (node:11460) UnhandledPromiseRejectionWarning: Error: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue.template'.
    at getValidSourceFile (c:\Users\flori\.vscode\extensions\octref.vetur-0.35.0\server\node_modules\typescript\lib\typescript.js:157093:29)
    at Object.getSemanticDiagnostics (c:\Users\flori\.vscode\extensions\octref.vetur-0.35.0\server\node_modules\typescript\lib\typescript.js:157351:36)
    at rN.doValidation (c:\Users\flori\.vscode\extensions\octref.vetur-0.35.0\server\dist\vls.js:857:2198)
    at runNextTicks (internal/process/task_queues.js:58:5)
    at processImmediate (internal/timers.js:434:9)
    at async Promise.all (index 0)
    at async Object.doValidate (c:\Users\flori\.vscode\extensions\octref.vetur-0.35.0\server\dist\vls.js:995:4151)
    at async _F.validateTextDocument (c:\Users\flori\.vscode\extensions\octref.vetur-0.35.0\server\dist\vls.js:995:18258)
(Use `Code --trace-warnings ...` to show where the warning was created)
[Error - 10:22:24 AM] (node:11460) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
[Error - 10:22:24 AM] (node:11460) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[Error - 10:22:24 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/documentHighlight failed.
  Message: Request textDocument/documentHighlight failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/documentHighlight failed.
  Message: Request textDocument/documentHighlight failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...s\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/documentHighlight failed.
  Message: Request textDocument/documentHighlight failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:22:24 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:25:55 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 
[Error - 10:28:25 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Could not find source file: '\\wsl.localhost\Ubuntu-20.04\home\flo\workspace\...\index.vue'.
  Code: -32603 

Reproducible Case

  • Install windows 11
  • Download Ubuntu 20.04
  • Move project folder to the wsl system
  • Run code ./project-folder &
  • npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants