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

"Request textDocument/completion failed" was the first thing I saw when starting to type in vscode.dev #2876

Closed
Tyriar opened this issue May 31, 2022 · 4 comments
Labels
duplicate This issue or pull request already exists needs investigation Could be an issue - needs investigation

Comments

@Tyriar
Copy link
Member

Tyriar commented May 31, 2022

Testing microsoft/vscode-jupyter#10170

Approx repro:

  1. Open https://insiders.vscode.dev/
  2. Install Python/Jupyter extensions
  3. Connect to a Jupyter server (probably doesn't matter)
  4. Open a folder
  5. Create test.py in folder root
  6. Type something

Screen Shot 2022-05-31 at 10 43 51 am

This might be related to the save dialog, if so this should be a silent failure imo.

Python language server log:

[Info  - 10:39:03] Pylance language server 2022.5.3 (pyright 73c82fab) starting
[Info  - 10:39:03] Server root directory: /
Notebook support: Legacy
[Info  - 10:39:04] No configuration file found.
[Info  - 10:39:04] No pyproject.toml file found.
[Warn  - 10:39:04] stubPath /vscode/typings is not a valid directory.
[Info  - 10:39:04] Searching for source files
[Error - 10:39:04] File or directory "/vscode" does not exist.
[Info  - 10:39:04] No source files found.
[Error - 10:43:25] Request textDocument/completion failed.
  Message: Request textDocument/completion failed with message: request cancelled
  Code: -32603 
[Error - 10:43:26] Request textDocument/completion failed.
  Message: Request textDocument/completion failed with message: request cancelled
  Code: -32603 
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python May 31, 2022
@Tyriar
Copy link
Member Author

Tyriar commented May 31, 2022

Saw this one when reloading vscode.dev with a notebook open:
Screen Shot 2022-05-31 at 3 46 02 pm

[Info  - 15:45:40] No pyproject.toml file found.
[Warn  - 15:45:40] stubPath typings is not a valid directory.
[Info  - 15:45:41] Searching for source files
[Info  - 15:45:41] No source files found.
[Info  - 15:45:41] No pyproject.toml file found.
[Warn  - 15:45:41] stubPath typings is not a valid directory.
[Info  - 15:45:41] Searching for source files
[Info  - 15:45:41] No source files found.
[Info  - 15:45:43] [FG] Long operation: parsing: [virtual] /typeshed-fallback/stdlib/builtins.pyi (2543ms)
[Error - 15:45:46] Request textDocument/foldingRange failed.
  Message: Request textDocument/foldingRange failed with message: request cancelled
  Code: -32603 
[Error - 15:45:46] Request textDocument/foldingRange failed.
  Message: Request textDocument/foldingRange failed with message: request cancelled
  Code: -32603 

@Tyriar
Copy link
Member Author

Tyriar commented Jun 1, 2022

FYI I've been seeing this a lot, it's probably related to my setup (no workspace folder, non-python workspace folder) but it really doesn't look good from a user's perspective.

@Tyriar
Copy link
Member Author

Tyriar commented Jun 1, 2022

While playing around with notebooks/variable viewer:
Screen Shot 2022-06-01 at 7 39 41 am

@judej judej added the needs investigation Could be an issue - needs investigation label Jun 1, 2022
@github-actions github-actions bot removed the triage label Jun 1, 2022
@heejaechang
Copy link
Contributor

dupe of #2743

@heejaechang heejaechang added the duplicate This issue or pull request already exists label Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists needs investigation Could be an issue - needs investigation
Projects
None yet
Development

No branches or pull requests

4 participants