question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Language Server: Request textDocument/completion failed

See original GitHub issue

Environment 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:

  1. 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 (ViewOutput, 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:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
ghostcommented, Aug 1, 2018

@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?

0reactions
DonJayamannecommented, Aug 1, 2018

Meant to reopen the other issue. Fixed

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found