elixir-tools/gen_lsp

tcp: headers failed to parse

mhanberg opened this issue · 0 comments

I got this error while using VSCode with the TCP adapter

22:51:44.165 [error] Task #PID<0.266.0> started from {:nonode@nohost, GenLSP.Buffer} terminating
** (FunctionClauseError) no function clause matching in GenLSP.Communication.TCP.read_headers/2
    (gen_lsp 0.1.2) GenLSP.Communication.TCP.read_headers({:more, :undefined}, %{})
    (gen_lsp 0.1.2) lib/gen_lsp/communication/tcp.ex:63: GenLSP.Communication.TCP.read/2
    (gen_lsp 0.1.2) lib/gen_lsp/buffer.ex:103: anonymous fn/4 in GenLSP.Buffer.read/2
    (elixir 1.14.3) lib/stream.ex:1623: Stream.do_resource/5
    (elixir 1.14.3) lib/enum.ex:4307: Enum.reverse/1
    (elixir 1.14.3) lib/enum.ex:3646: Enum.to_list/1
    (elixir 1.14.3) lib/task/supervised.ex:89: Task.Supervised.invoke_mfa/2
    (stdlib 4.3) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
Function: #Function<0.96253471/0 in GenLSP.Buffer.read/2>
    Args: []