Skip to content
Discussion options

You must be logged in to vote

clangd does not support TCL socket connections (maybe you asked AI and hallucinated?).

But basically you need to setup a new server on your configuration, something like:

    {
      "language": "c",
      "name": "clangd",
      "host": "127.0.0.1",
      "port": 8080,
      "share_process": true,
      "file_patterns": ["%.c$", "%.h$", "%.C$", "%.H$", "%.objc$"]
    }

This will not execute the binary for you, it will connect though a TCP socket. It's possible to do both things though. You just need to add the commnad, in your example would be the one you mentioned :
"command": "clangd --enable-tcp --tcp-bind-address=127.0.0.1 --port=8080"

I haven't tested much the TCP socket connection…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@blueberryscone238
Comment options

Answer selected by blueberryscone238
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants