[vim/vim] Port socketserver to use channels and JSON based protocol (PR #19782)

28 views
Skip to first unread message

Foxe Chen

unread,
Mar 21, 2026, 2:10:42 PMMar 21
to vim/vim, Subscribed

This is not backwards compatible with the old protocol, but I think it is worth it. Using JSON is much simpler instead of trying to understand a custom binary protocol.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19782

Commit Summary

  • 400c2bd port socketserver to use channels and JSON based protocol

File Changes

(11 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782@github.com>

Foxe Chen

unread,
Mar 21, 2026, 2:12:03 PMMar 21
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 27dc4d8 port socketserver to use channels and JSON based protocol


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/400c2bdaa8c2a0ffc16fbe17271b823e602cca95/after/27dc4d8d96caad29c802ea05521c7c951b96f479@github.com>

Foxe Chen

unread,
Mar 21, 2026, 4:56:36 PMMar 21
to vim/vim, Push

@64-bitman pushed 3 commits.

  • acebaf2 port socketserver to use channels and JSON based protocol
  • 2f05b7d remove old socketserver code
  • 674f15a update makefile


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/27dc4d8d96caad29c802ea05521c7c951b96f479/after/674f15a89c7da7b6d200105d70dd64e5afc0ff55@github.com>

Foxe Chen

unread,
Mar 21, 2026, 7:04:14 PMMar 21
to vim/vim, Push

@64-bitman pushed 2 commits.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/674f15a89c7da7b6d200105d70dd64e5afc0ff55/after/b4de3c8b33bc095856a82ef43d641479f0939c05@github.com>

Foxe Chen

unread,
Mar 23, 2026, 8:21:01 PMMar 23
to vim/vim, Push

@64-bitman pushed 2 commits.

  • 7893652 implement reply interface
  • 5360360 change ifdefs for clientserver code


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/b4de3c8b33bc095856a82ef43d641479f0939c05/after/536036033697a0c2dd8ff85e9bb965aa37e396cd@github.com>

Foxe Chen

unread,
Mar 23, 2026, 11:04:17 PMMar 23
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/536036033697a0c2dd8ff85e9bb965aa37e396cd/after/fbe5e5f5db5a782f0bd740287b80007a0b28db27@github.com>

Foxe Chen

unread,
Mar 23, 2026, 11:05:46 PMMar 23
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/d9aeb75bfa33fc731265dffd5f6ac408f71366d4/after/b4fca021cec3b0c44ccadaf1eb7dc3973d9029d9@github.com>

Foxe Chen

unread,
Mar 24, 2026, 3:55:49 PMMar 24
to vim/vim, Push

@64-bitman pushed 7 commits.

  • ce61b89 port socketserver to use channels and JSON based protocol
  • e18ea9a remove old socketserver code
  • 1df670b update makefile
  • 0beb98f support poll
  • 5d5c9c0 implement reply interface
  • d7bc081 change ifdefs for clientserver code
  • 7c78864 pass test_clientserver


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/b4fca021cec3b0c44ccadaf1eb7dc3973d9029d9/after/7c78864c07034cddcb74eec7c9792ecccf91dc5f@github.com>

Foxe Chen

unread,
Mar 24, 2026, 7:30:56 PMMar 24
to vim/vim, Push

@64-bitman pushed 7 commits.

  • 15c629f port socketserver to use channels and JSON based protocol
  • efc78cc remove old socketserver code
  • 7a16a7c update makefile
  • dc3c971 support poll
  • d78e5a3 implement reply interface
  • 8e41afe change ifdefs for clientserver code
  • 26d9b72 pass test_clientserver


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/7c78864c07034cddcb74eec7c9792ecccf91dc5f/after/26d9b72b2690dfeb7c18985a5531d6f69eed81b1@github.com>

Foxe Chen

unread,
Mar 24, 2026, 8:48:43 PMMar 24
to vim/vim, Push

@64-bitman pushed 2 commits.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/26d9b72b2690dfeb7c18985a5531d6f69eed81b1/after/b1488798da664f3d294148338395e35163710c41@github.com>

Foxe Chen

unread,
Mar 24, 2026, 8:50:42 PMMar 24
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/b1488798da664f3d294148338395e35163710c41/after/7eaf454e2967c87826ac6dd8fde55482c4207062@github.com>

Foxe Chen

unread,
Mar 24, 2026, 9:43:44 PMMar 24
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/7eaf454e2967c87826ac6dd8fde55482c4207062/after/3b74962ea32d2d1711d7716ebf1cade8acfbb90c@github.com>

Foxe Chen

unread,
Mar 24, 2026, 10:04:22 PMMar 24
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/3b74962ea32d2d1711d7716ebf1cade8acfbb90c/after/602d848203e2ee22f8b543eca3ee28f1712d7a95@github.com>

Foxe Chen

unread,
Mar 24, 2026, 10:06:47 PMMar 24
to vim/vim, Subscribed

@64-bitman commented on this pull request.


In src/socketserver.c:

> +	    if (mch_access((char *)buf, F_OK) != 0)
+		got = true;
+	    else
+	    {
+		emsg_silent++;
+		channel = channel_open_unix((char *)buf, NULL);
+		emsg_silent--;
+
+		if (channel != NULL)
+		{
+		    channel_close(channel, false);
+		    channel_clear(channel);
+		}
+		else
+		{
+		    mch_remove(buf);

Fixed


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/review/4003461802@github.com>

Foxe Chen

unread,
Mar 24, 2026, 10:11:25 PMMar 24
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/602d848203e2ee22f8b543eca3ee28f1712d7a95/after/a2036984c0be65034cf276c875ba76106d71b871@github.com>

Foxe Chen

unread,
Mar 24, 2026, 10:36:29 PMMar 24
to vim/vim, Push

@64-bitman pushed 2 commits.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/a2036984c0be65034cf276c875ba76106d71b871/after/0accf6246db51dbeb601edc84e8ed4a3aa0b89ad@github.com>

Foxe Chen

unread,
Mar 24, 2026, 10:38:00 PMMar 24
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#19782)

@pemensik Can you test if this PR fixes your issue? Thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/c4122732000@github.com>

Foxe Chen

unread,
Mar 24, 2026, 10:43:41 PMMar 24
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/0accf6246db51dbeb601edc84e8ed4a3aa0b89ad/after/26a7fc89b971b9cec87859d448c0b8fbb25892ab@github.com>

Foxe Chen

unread,
Mar 24, 2026, 10:52:04 PMMar 24
to vim/vim, Push

@64-bitman pushed 2 commits.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/26a7fc89b971b9cec87859d448c0b8fbb25892ab/after/b181969254a6c36b68384902047ddb41ceaaa8f3@github.com>

Foxe Chen

unread,
Mar 24, 2026, 11:29:06 PMMar 24
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/b181969254a6c36b68384902047ddb41ceaaa8f3/after/a4ee7031f2b5499a6d817b8783b2711b52ad98a2@github.com>

Petr Menšík

unread,
Mar 25, 2026, 2:24:53 AMMar 25
to vim/vim, Subscribed
pemensik left a comment (vim/vim#19782)

Note: JSON has a binary alternative in standardized CBOR protocol. It might be better suited for some binary blobs exchange. It can even represent JSON.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/c4124108127@github.com>

Foxe Chen

unread,
Mar 25, 2026, 12:00:24 PMMar 25
to vim/vim, Push

@64-bitman pushed 2 commits.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/a4ee7031f2b5499a6d817b8783b2711b52ad98a2/after/5e8e11cdf9501a5bbeb6688398a7314bff699a95@github.com>

Foxe Chen

unread,
Mar 25, 2026, 12:02:12 PMMar 25
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#19782)

Note: JSON has a binary alternative in standardized CBOR protocol. It might be better suited for some binary blobs exchange. It can even represent JSON.

Well there is no need to exchange binary blobs so JSON works fine


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/c4127794520@github.com>

Foxe Chen

unread,
Mar 25, 2026, 12:13:39 PMMar 25
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/5e8e11cdf9501a5bbeb6688398a7314bff699a95/after/66bef2c88ba3c0b81a446f7dbd9e6a50a83afc6d@github.com>

Foxe Chen

unread,
Mar 25, 2026, 12:30:51 PMMar 25
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/66bef2c88ba3c0b81a446f7dbd9e6a50a83afc6d/after/318a66a100ec432c213fa0a1b5ba46ac7b56bc4d@github.com>

Foxe Chen

unread,
Mar 26, 2026, 7:20:49 AMMar 26
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/318a66a100ec432c213fa0a1b5ba46ac7b56bc4d/after/b64f04e0591f832096f18ceec5452fc6e7911c27@github.com>

Foxe Chen

unread,
Mar 26, 2026, 9:03:04 AMMar 26
to vim/vim, Push

@64-bitman pushed 16 commits.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/b64f04e0591f832096f18ceec5452fc6e7911c27/after/cdfd587c3ccb62404abdcd10a66660ce55f3afc1@github.com>

Foxe Chen

unread,
Mar 26, 2026, 6:53:10 PMMar 26
to vim/vim, Push

@64-bitman pushed 16 commits.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/cdfd587c3ccb62404abdcd10a66660ce55f3afc1/after/b6200902aa7e667b3e9113aff2eea85cc4329ad0@github.com>

Foxe Chen

unread,
Mar 26, 2026, 7:28:02 PMMar 26
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/b6200902aa7e667b3e9113aff2eea85cc4329ad0/after/e5ea40665f1fcb5ab495c1dc02229b4b5e64a335@github.com>

Foxe Chen

unread,
Mar 26, 2026, 8:00:23 PMMar 26
to vim/vim, Push

@64-bitman pushed 2 commits.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/e5ea40665f1fcb5ab495c1dc02229b4b5e64a335/after/eb03bcd1157088ee17a741b05a68191aca581184@github.com>

Foxe Chen

unread,
Mar 28, 2026, 6:23:24 AMMar 28
to vim/vim, Push

@64-bitman pushed 1 commit.

  • aa879a6 Fix preprocessor directive for MSWIN


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/eb03bcd1157088ee17a741b05a68191aca581184/after/aa879a60d807c02f5062a83bf1019767c83f941e@github.com>

Foxe Chen

unread,
Mar 29, 2026, 5:15:29 PMMar 29
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/aa879a60d807c02f5062a83bf1019767c83f941e/after/f13dbd0e8a9dfaf5eafb7a18796288628f5ddb3f@github.com>

Foxe Chen

unread,
Mar 29, 2026, 5:18:44 PMMar 29
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#19782)

@chrisbra Would this PR be accepted/OK? Thanks


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/c4151110415@github.com>

Foxe Chen

unread,
Mar 29, 2026, 5:21:51 PMMar 29
to vim/vim, Push

@64-bitman pushed 20 commits.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/f13dbd0e8a9dfaf5eafb7a18796288628f5ddb3f/after/0d54a1bb564e4c4cabbdddd95493f9685d61c87d@github.com>

Foxe Chen

unread,
Mar 29, 2026, 5:28:56 PMMar 29
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/0d54a1bb564e4c4cabbdddd95493f9685d61c87d/after/cfa1c20140afb267fbc51d6092326b22d8922b15@github.com>

Foxe Chen

unread,
Mar 29, 2026, 5:39:14 PMMar 29
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 7e7c435 remove encoding entry in messages


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/cfa1c20140afb267fbc51d6092326b22d8922b15/after/7e7c435e734c11bec5377be82736c57752f02d3e@github.com>

Foxe Chen

unread,
Mar 29, 2026, 5:47:21 PMMar 29
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 632bf6b remove encoding entry in messages


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/7e7c435e734c11bec5377be82736c57752f02d3e/after/632bf6b2f2f360e61ddab5a800d8b677c6dcb9ec@github.com>

Foxe Chen

unread,
Mar 29, 2026, 6:59:40 PMMar 29
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/632bf6b2f2f360e61ddab5a800d8b677c6dcb9ec/after/6b76d9229d71450487258868a383cb031b358640@github.com>

Foxe Chen

unread,
Apr 6, 2026, 10:08:53 AMApr 6
to vim/vim, Push

@64-bitman pushed 22 commits.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/6b76d9229d71450487258868a383cb031b358640/after/bbd2afd91764aec565027c96189f7f9f564072a1@github.com>

Foxe Chen

unread,
Apr 8, 2026, 8:25:03 PMApr 8
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#19782)

@chrisbra just checking if you didn't see the previous comment


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/c4210585947@github.com>

Foxe Chen

unread,
Apr 8, 2026, 8:44:50 PMApr 8
to vim/vim, Push

@64-bitman pushed 23 commits.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/bbd2afd91764aec565027c96189f7f9f564072a1/after/0c00bfc1c615b8e3474e3b90df0c9c3e41f7b2a9@github.com>

Foxe Chen

unread,
Apr 8, 2026, 9:07:34 PMApr 8
to vim/vim, Push

@64-bitman pushed 2 commits.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/0c00bfc1c615b8e3474e3b90df0c9c3e41f7b2a9/after/bef8bdf8cc045cfe3e33b0ac0e815a6c6a5a462b@github.com>

Foxe Chen

unread,
Apr 8, 2026, 9:09:27 PMApr 8
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/bef8bdf8cc045cfe3e33b0ac0e815a6c6a5a462b/after/e01b83bfe6f7122f17131cb69e3753ec10859813@github.com>

Christian Brabandt

unread,
Apr 9, 2026, 3:27:59 PMApr 9
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19782)

Yes I think this makes sense, even so this would be slightly backwards compatible. But I doubt this is a problem in practice as I have mentioned before


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/c4216963547@github.com>

Foxe Chen

unread,
Apr 24, 2026, 7:39:08 PM (4 days ago) Apr 24
to vim/vim, Push

@64-bitman pushed 27 commits.

Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/e01b83bfe6f7122f17131cb69e3753ec10859813/after/b70c8ca3ad79004f92de92c7b3ae4fd5d3d21a0a@github.com>

Foxe Chen

unread,
Apr 24, 2026, 7:41:47 PM (4 days ago) Apr 24
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 0ec8fe7 actually fix --remote-wait


View it on GitHub or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/b70c8ca3ad79004f92de92c7b3ae4fd5d3d21a0a/after/0ec8fe7383c1f561b3f95587df9a2ff34acef7d1@github.com>

Foxe Chen

unread,
Apr 24, 2026, 7:48:17 PM (4 days ago) Apr 24
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 908f361 actually fix --remote-wait


View it on GitHub or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/0ec8fe7383c1f561b3f95587df9a2ff34acef7d1/after/908f36178371457ea70581c9f8db170d7febc987@github.com>

Foxe Chen

unread,
Apr 24, 2026, 7:51:27 PM (4 days ago) Apr 24
to vim/vim, Push

@64-bitman pushed 1 commit.

  • af11642 actually fix --remote-wait


View it on GitHub or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/908f36178371457ea70581c9f8db170d7febc987/after/af1164223a76e4410aece6b36c0d1fbf80c1894c@github.com>

Foxe Chen

unread,
Apr 24, 2026, 8:18:37 PM (4 days ago) Apr 24
to vim/vim, Push

@64-bitman pushed 1 commit.

  • aa87a7c use channels and JSOn for socketserver


View it on GitHub or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/af1164223a76e4410aece6b36c0d1fbf80c1894c/after/aa87a7c283fcf23591eb54af3e88998fa0087421@github.com>

Foxe Chen

unread,
Apr 24, 2026, 8:19:07 PM (4 days ago) Apr 24
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#19782)

I think this is ready


Reply to this email directly, view it on GitHub, or unsubscribe.


Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/c4317173104@github.com>

Foxe Chen

unread,
Apr 27, 2026, 7:29:09 PM (18 hours ago) Apr 27
to vim/vim, Subscribed

@64-bitman commented on this pull request.


In runtime/doc/remote.txt:

> @@ -237,45 +241,51 @@ absolute or relative path.  If the server id starts with either a "/"
 Otherwise the server id will be the filename of the socket which will be
 placed in the above common directories.  Note that a server id/name can only
 contain slashes "/" if it is taken as a path, so names such as "abc/dir" will
-be invalid.
+be invalid.  This feature is only available on Unix.
+
+						    *socketserver-address*
+In addition, the socketserver can also be created as a |channel-address|. To
+do this, prefix the address with "a/" (which will be ignored).  This is

Any other way? Ths is the only I could think of while preserving support for the uppercase style server names


Reply to this email directly, view it on GitHub, or unsubscribe.

Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/review/4184767223@github.com>

Foxe Chen

unread,
Apr 27, 2026, 7:32:46 PM (18 hours ago) Apr 27
to vim/vim, Subscribed

@64-bitman commented on this pull request.


In src/socketserver.c:

> +	}
+	else
+	{
+	    vim_snprintf((char *)buf, MAXPATHL, "%s/vim", dir);
+	    if (vim_mkdir(buf, 0700) == -1 && errno != EEXIST)
+		continue;
+
+	    vim_snprintf((char *)buf, MAXPATHL, "%s/vim/%s", dir, name);
+	}
+
+	// If looking for a new socket path, and "buf" currently exists, check
+	// if it is a dead socket, if it is then remove it.
+	if (new)
+	{
+	    emsg_silent++;
+	    channel = channel_open_unix((char *)buf, NULL);

Im not sure how to catch it, without creating a bunch of code to speak the old protocol, which I don't think is worth it. Also it seems that this new protocol actually makes the Vim using old socketserver crash (segfault) when it tries to communicate with it.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/review/4184780866@github.com>

Foxe Chen

unread,
Apr 27, 2026, 7:37:12 PM (18 hours ago) Apr 27
to vim/vim, Push

@64-bitman pushed 1 commit.

  • f52d7fe use channels and JSON for socketserver


View it on GitHub or unsubscribe.


Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/aa87a7c283fcf23591eb54af3e88998fa0087421/after/f52d7fe50cd8e914fadda6fc2e362b832051f282@github.com>

Foxe Chen

unread,
Apr 27, 2026, 7:37:28 PM (18 hours ago) Apr 27
to vim/vim, Subscribed

@64-bitman commented on this pull request.


In src/main.c:

>  	    else if (STRICMP(arg, "x11") == 0)
 		clientserver_method = CLIENTSERVER_METHOD_X11;
+#   endif
+#   ifdef MSWIN
+	    else if (STRICMP(arg, "mswin") == 0)

I've updated the manpages


Reply to this email directly, view it on GitHub, or unsubscribe.


Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/review/4184800179@github.com>

Foxe Chen

unread,
Apr 27, 2026, 7:40:32 PM (18 hours ago) Apr 27
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 8c7522a use channels and JSON for socketserver


View it on GitHub or unsubscribe.


Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/f52d7fe50cd8e914fadda6fc2e362b832051f282/after/8c7522af52530058eb9ca243582b7977637270a1@github.com>

Christian Brabandt

unread,
5:21 AM (8 hours ago) 5:21 AM
to vim/vim, Subscribed

@chrisbra commented on this pull request.


In runtime/doc/remote.txt:

> @@ -237,45 +241,51 @@ absolute or relative path.  If the server id starts with either a "/"
 Otherwise the server id will be the filename of the socket which will be
 placed in the above common directories.  Note that a server id/name can only
 contain slashes "/" if it is taken as a path, so names such as "abc/dir" will
-be invalid.
+be invalid.  This feature is only available on Unix.
+
+						    *socketserver-address*
+In addition, the socketserver can also be created as a |channel-address|. To
+do this, prefix the address with "a/" (which will be ignored).  This is

How about we build on your suggestions and introduce the concept of a type: like this: servername [type:]server where type by default is the old legacy name, but we can also use channel to explicitly define a channel address?

vim --servername MYVIM                 # implicit: name:MYVIM
vim --servername name:MYVIM            # explicit legacy mode
vim --servername channel:unix:/tmp/vim.sock
vim --servername channel:127.0.0.1:12345

That should be backwards compatible and makes the intent clearer.


Reply to this email directly, view it on GitHub, or unsubscribe.


Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/review/4187376057@github.com>

Reply all
Reply to author
Forward
0 new messages