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
VSCode is seeing the following when the language server returns nothing from a hover:
Hover throws an error. Intellisense isn't working either.
[2021-04-13 14:47:12.689] [exthost] [error] TypeError: Cannot read property 'kind' of null
at asHoverContent (/home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/node_modules/vscode-languageclient/lib/protocolConverter.js:101:27)
at asHover (/home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/node_modules/vscode-languageclient/lib/protocolConverter.js:134:31)
And debug log from editor services
---
E, [2021-04-13T14:47:12.685510 #17879] ERROR -- : (textDocument/hover) dsc_sqlsetup is not a valid puppet type, class or defined type
D, [2021-04-13T14:47:12.687138 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":5,"result":{"contents":null}}
---
As per the Language Client Spec, the LSP should return null OR a HoverResult with a non-null contents
The text was updated successfully, but these errors were encountered:
Previously, the hover provider would return a Hover object with null contents
which is not allowed by the Language Server Protocol. This commit updates
Editor Services to instead return nil when an error occurs during the resolution.
Previously, the hover provider would return a Hover object with null contents
which is not allowed by the Language Server Protocol. This commit updates
Editor Services to instead return nil when an error occurs during the resolution.
Previously, the hover provider would return a Hover object with null contents
which is not allowed by the Language Server Protocol. This commit updates
Editor Services to instead return nil when an error occurs during the resolution.
As per puppetlabs/puppet-vscode#742
VSCode is seeing the following when the language server returns nothing from a hover:
Hover throws an error. Intellisense isn't working either.
And debug log from editor services
As per the Language Client Spec, the LSP should return null OR a HoverResult with a non-null
contents
The text was updated successfully, but these errors were encountered: