Description
OS: Linux, 4.9.29
VSCode: 1.13.1
PHP Intellisense: 1.4.3
Links:
http://www.tldp.org/LDP/lpg/node13.html
This happens, for example, when I want to show symbols of a large file (ctrl+shift+o).
It also happens with other commands that return responses larger than 4kB.
Symptoms: Infinite loading bar. Hovering over a symbol while the loading bar is displayed finishes the request, as a new command is sent to the server and the remaining data is received.
It seems to be related to communication via stdio. Changing comms to socket fixes it.
I'm not sure if this is a vscode bug, but I'll be leaving this here and will investigate further.
Edit: When logging the fwrite
return value in ProtocolStreamWriter
and the chunk size received at the typescript site it looks something like this:
fwrite: 8000
client: 4096
Which means that php reports all bytes have been successfuly written and the remaining data must be stuck somewhere in the pipe. I suspect some kind of OS buffering issue.