You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Language Server: Request textDocument/completion failed #2263
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster
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)
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.6
Python version (& distribution if applicable, e.g. Anaconda): Python 2.7.15
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Logs
[Info - 6:03:38 PM] Found 603 completions for file:///Users/***.py at (276, 10) after filtering
[Error - 6:03:39 PM] Request textDocument/completion failed.
Message: Object reference not set to an instance of an object.
Code: -32000
[object Object]
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster
Activity
cadl commentedon Jul 30, 2018
I meet the same 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.6
Python version (& distribution if applicable, e.g. Anaconda): Python 2.7.15
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Logs
patrys commentedon Jul 30, 2018
Duplicate of #2017?
DonJayamanne commentedon Jul 30, 2018
~@Fogetti cadl (@cadl) ~
Please could you provide some sample code.DonJayamanne commentedon Jul 30, 2018
Closing in favor of #2262
DonJayamanne commentedon Aug 1, 2018
Meant to reopen the other issue. Fixed