Skip to content

Request textDocument/hover failed #4476

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

Closed
david-waterworth opened this issue Feb 21, 2019 · 1 comment
Closed

Request textDocument/hover failed #4476

david-waterworth opened this issue Feb 21, 2019 · 1 comment
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug

Comments

@david-waterworth
Copy link

david-waterworth commented Feb 21, 2019

Environment data

  • VS Code version: 1.31.0
  • Extension version (available under the Extensions sidebar): 2019.1.0
  • OS and version: ubuntu 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.1
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pyenv

Expected behaviour

If you create a new file and change language mode to magic python Output panel shouldn't fill with error messages when you move the mouse over code before saving the file

Actual behaviour

If you create a new file and change language mode to magic python Output panel fills with error messages when you move the mouse over code before saving the file

Steps to reproduce:

Ctrl+N to create a new file, change language mode to magic python but don't save file. Add code and move mouse over it.

log becomes full of error messages (made worse by an issue I've already submitted resulting in Output panel grabbing focus anytime a message is logged to it.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Error - 12:12:38 pm] Request textDocument/hover failed.
  Message: unknown document
  Code: -32000 
   at Microsoft.Python.LanguageServer.Implementation.ProjectFiles.GetEntry(Uri documentUri, Boolean throwIfMissing)
   at Microsoft.Python.LanguageServer.Implementation.ProjectFiles.GetEntry(TextDocumentIdentifier document, Nullable`1 expectedVersion, ProjectEntry& entry, PythonAst& tree)
   at Microsoft.Python.LanguageServer.Implementation.Server.Hover(TextDocumentPositionParams params, CancellationToken cancellationToken)
   at Microsoft.Python.LanguageServer.Implementation.LanguageServer.Hover(JToken token, CancellationToken cancellationToken)

@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Feb 21, 2019
@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. upstream-language server labels Feb 21, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Feb 21, 2019
@luabud
Copy link
Member

luabud commented Sep 11, 2019

Fixed upstream (microsoft/python-language-server#597)

@luabud luabud closed this as completed Sep 11, 2019
@ghost ghost removed the needs upstream fix label Sep 11, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants