Language Server: Request textDocument/completion failed
See original GitHub issueEnvironment data
- VS Code version: 1.25.1 (1.25.1)
- Extension version (available under the Extensions sidebar): Python extension 2018.7.1 (23 July 2018)
- OS and version: macOS High Sierra 10.13.5 (17F77)
- Python version (& distribution if applicable, e.g. Anaconda): Python 2.7.10 64-bit
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
- Relevant/affected Python packages and their versions: it’s a pretty simple Django 1.7 project defined with
Django>=1.7.7,<1.8
Actual behavior
When I start typing a not yet declared data attribute name let’s say self.zelda
immediately when I type the dot, the error is raised and keeps throwing errors with each character typed.
Expected behavior
Don’t throw errors just because a data attribute (which is not-yet defined) is not found.
Steps to reproduce:
- When I start typing the name of a not-yet declared data attribute (e.g.
self.data_attribute
) in a class__init()__
method the output window pops up on each character typed which is not found and the output is like below.
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
[Info - 10:17:35] Found 0 completions for file:///Users/(...)/Work/(...)/admin.py at (101, 17) after filtering
[Error - 10:17:38] Request textDocument/completion failed.
Message: Object reference not set to an instance of an object.
Code: -32000
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
)
NOTHING in Dev Tools
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
VS Code - Request textDocument/definition failed
Message: Request textDocument/definition failed with message: Cannot read property 'charCodeAt' of undefined Code: -32603.
Read more >Language Server Protocol Specification - 3.17
This document describes the 3.17.x version of the language server protocol. ... So for example if a server receives a textDocument/completion request and ......
Read more >VS Code rust-analyzer: Request textDocument/inlayHint failed
Hello everyone, today I encountered an annoying bug with rust-analyzer. I cloned RustCrypto's AEAD repo and opened it in VS Code, ...
Read more >Programmatic Language Features - Visual Studio Code
In addition, your language server needs to respond to the textDocument/hover request. Direct Implementation. class GoHoverProvider implements HoverProvider { ...
Read more >VS Code extension: Request textDocument/definition failed ...
[Error - 10:14:46 AM] Request textDocument/definition failed. Message: Internal error. Code: -32603 java.util.concurrent.CompletionException: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@DonJayamanne Was it intentional that now both issues (this and #2262 ) are closed? I can’t see either of them resolved or worked on. So basically you just simply closed both bugs, right? Am I missing something?
Meant to reopen the other issue. Fixed