PHP Intelephense error data did not match any variant of untagged enum CompletionResponse
on any completion typing
#8775
-
SummaryThis is the only place I can see helix/helix-term/src/commands.rs Line 4450 in 6ab774d I'm getting this error when Helix's completion tries to get any results (I believe is when this gets triggered): The same Intelephense version (v1.10.0) works in VSCode for completion, and Intelephense v1.9.5 worked fine in Helix pre-23.10 release. Reproduction Stepshttps://asciinema.org/a/Jrvd4cZccQ9dd0CcxzFtMBytY Helix log~/.cache/helix/helix.log
PlatformLinux Terminal Emulatorwezterm 20231107-082518-f0e3eecb Installation Methodsource Helix Versionhelix 23.10 (5ce1c30) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is an intelephense bug: it's sending a malformed response for the completion request. The LSP spec requires the {
"jsonrpc": "2.0",
"id": 2,
"result": {
"items": [
{
"label": "protected",
"kind": 14,
"textEdit": {
"range": {
"start": {
"line": 19,
"character": 0
},
"end": {
"line": 19,
"character": 4
}
},
"newText": "protected"
},
"sortText": "protected"
}
]
}
} |
Beta Was this translation helpful? Give feedback.
-
If anyone else has this issue w/ Intelephense install v1.10.0+ (requires Node v18.17.1+): bmewburn/vscode-intelephense#2561 |
Beta Was this translation helpful? Give feedback.
This is an intelephense bug: it's sending a malformed response for the completion request. The LSP spec requires the
isIncomplete
field in theCompletionItems
type (otherwise it would be calledisIncomplete?
) but intelephense doesn't provide it: