Connecting to a language server via container networking #1470
Unanswered
krystalcode
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I can't reproduce this, but then again, I don't have half the picture.
Anyway, I think you might be using an old Eglot. What is your Emacs
version? Have you tried `M-x eglot-upgrade-eglot`?
…On Fri, Nov 29, 2024 at 10:25 PM Dimitris Bozelos ***@***.***> wrote:
I run Emacs in a container, and the phpactor language server in another.
I have the containers connected via a shared network.
I start the language server separately on port 8890 and it is listening
for connections.
[LSP ][INFO][916467.989963] Listening on 0.0.0.0:8890
When I ping phpactor from within the emacs container in a shell, the
connection is established.
$ curl -v phpactor:8890
* Host phpactor:8890 was resolved.
* IPv6: (none)
* IPv4: 10.89.1.14, 10.89.1.14
* Trying 10.89.1.14:8890...
* Connected to phpactor (10.89.1.14) port 8890
> GET / HTTP/1.1
> Host: phpactor:8890
> User-Agent: curl/8.9.1
> Accept: */*
>
* Request completely sent off
And it reaches the server:
[LSP ][INFO][916713.257669] Accepted connection from "10.89.1.15:48574"
[LSP ][WARN][916713.262326] Could not parse header: GET / HTTP/1.1
[LSP ][WARN][916713.262396] Could not parse header: Host: phpactor:8890
When I type M-x eglot I get prompted to type the host and port and I do
so: phpactor:8890. I get the following error: "Searching for program: No
such file or directory, phpactor:8890".
How do I get eglot to send the request to the given host/port instead of
running a local program?
—
Reply to this email directly, view it on GitHub
<#1470>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC6PQ2ZCCXCZB7ARYFTLLD2DDSW3AVCNFSM6AAAAABSX2MX7WVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGU4DANJXGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
João Távora
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I run Emacs in a container, and the
phpactor
language server in another. I have the containers connected via a shared network.I start the language server separately on port
8890
and it is listening for connections.When I ping
phpactor
from within theemacs
container in a shell, the connection is established.And it reaches the server:
When I type
M-x eglot
I get prompted to type the host and port and I do so:phpactor:8890
. I get the following error: "Searching for program: No such file or directory, phpactor:8890".How do I get
eglot
to send the request to the given host/port instead of running a local program?Beta Was this translation helpful? Give feedback.
All reactions