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

Missing property (value) in textDocument/hover result #1043

Open
tejas-kale opened this issue May 5, 2019 · 0 comments
Open

Missing property (value) in textDocument/hover result #1043

tejas-kale opened this issue May 5, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@tejas-kale
Copy link

Environment data

Emacs version: 26.2
Extension version: 2019.1.1
OS and version: macOS Mojave (10.14.4)
Python version (& distribution if applicable, e.g. Anaconda): 2.7.16
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
Relevant/affected Python packages and their versions: N/A

Issue

I use this language server along with a couple of Emacs packages (lsp-mode and lsp-ui). The latter errors out on hover when the language server returns "contents" without the 'value' property. This can be handled in the Emacs package itself. One of its maintainers though said (discussion) that this behaviour is inconsistent with the language server spec so reporting it here.

I am not sure if #383 discusses the same issue so pardon me for the redundancy. Let me know if any additional debug information is needed.

Debug info

[Trace - 05:08:19 PM]
Received response 'textDocument/hover - (54)' in 16ms.

Result: 
{
  "range": {
    "end": {
      "character": 21,
      "line": 714
    },
    "start": {
      "character": 15,
      "line": 714
    }
  },
  "contents": {
    "value": "percts",
    "kind": "plaintext"
  }
}




[Trace - 05:08:19 PM]
Received response 'textDocument/hover - (55)' in 16ms.

Result: 
{
  "range": {
    "end": {
      "character": 24,
      "line": 714
    },
    "start": {
      "character": 15,
      "line": 714
    }
  },
  "contents": {
    "kind": "plaintext"
  }
}




[Trace - 05:08:23 PM]
Sending request 'textDocument/hover - (59)'.

Params: 
{
  "textDocument": {
    "uri": "file:///Users/admin/code/test.py"
  },
  "position": {
    "line": 714,
    "character": 26
  }
}




[Trace - 05:08:23 PM]
Sending request 'textDocument/signatureHelp - (60)'.

Params: 
{
  "textDocument": {
    "uri": "file:///Users/admin/code/test.py"
  },
  "position": {
    "line": 714,
    "character": 26
  }
}




[Trace - 05:08:23 PM]
Received response 'textDocument/hover - (59)' in 160ms.

Result: 
null




[Trace - 05:08:23 PM]
Received response 'textDocument/signatureHelp - (60)' in 157ms.

Result: 
null
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants