Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Request textDocument/hover failed. #452

Description

I often see this when hovering over library functions:

[Error - 12:56:56 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)
[Error - 12:58:53 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)
[Error - 12:58:53 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)
[Error - 12:58:54 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)

Activity

  1. MikhailArkhipov commented on Feb 8, 2019

    @MikhailArkhipov

    No longer applies with #546

  2. crazythinking commented on Feb 13, 2019

    @crazythinking

    I still have this error, and updated newest vscode
    版本: 1.31.1
    提交: 1b8e8302e405050205e69b59abb3559592bb9e60
    日期: 2019-02-12T02:19:29.629Z
    Electron: 3.1.2
    Chrome: 66.0.3359.181
    Node.js: 10.2.0
    V8: 6.6.346.32
    OS: Linux x64 4.15.0-45-generic

  3. fenchu commented on Feb 14, 2019

    @fenchu

    Is this in v1.31.1 from 2019-02-12 ?, still same error, please reopen.

  4. MikhailArkhipov commented on Feb 14, 2019

    @MikhailArkhipov

    Not yet. New analysis engine will be available in upcoming weeks, beta channel testing first. This is a major redesign, stay tuned. The change cannot be ported to the code base currently in the product.

  5. xia0nan commented on Mar 15, 2019

    @xia0nan

    The error is still not fixed for the latest version

  6. MikhailArkhipov commented on Mar 15, 2019

    @MikhailArkhipov

    We are not changing 0.1.x. 0.2.x is available on beta channel.

    "python.analysis.downloadChannel": "beta"

    Ignore squiggle, the setting is not publicly exposed.

  7. Abbyyan commented on Nov 22, 2019

    @Abbyyan

    The error is still not fixed for the latest version
    版本: 1.40.1
    OS: local(mac) remote (linux)
    LSP: ccls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions