[vim/vim] add tombi linter for TOML files (PR #18590)

16 views
Skip to first unread message

Enno

unread,
Oct 17, 2025, 10:12:00 AMOct 17
to vim/vim, Subscribed

See https://github.com/tombi-toml/tombi


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

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

Commit Summary

  • deb4c76 add tombi linter for TOML files

File Changes

(3 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/18590@github.com>

Enno

unread,
Oct 17, 2025, 12:02:52 PMOct 17
to vim/vim, Subscribed
Konfekt left a comment (vim/vim#18590)

Failing tests due to

Run 3, 14:21:29 - 14:21:34 in  5.114939 seconds:
command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[677]..function RunTheTest[63]..Test_client_socket_server_server_gui line 24: Pattern '1' does not match 'E247: No registered server named "VIMTESTSOCKET": Send expression failed.\n'
command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[677]..function RunTheTest[63]..Test_client_socket_server_server_gui[29]..WaitForAssert[2]..<SNR>4_WaitForCommon[11]..<lambda>27 line 1: Expected 'dead' but got 'run'
command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[677]..function RunTheTest[63]..Test_client_socket_server_server_gui line 32: Server did not exit

seem unrelated?


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/18590/c3416164333@github.com>

Foxe Chen

unread,
Oct 17, 2025, 12:11:05 PMOct 17
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18590)

Failing tests due to

Run 3, 14:21:29 - 14:21:34 in  5.114939 seconds:
command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[677]..function RunTheTest[63]..Test_client_socket_server_server_gui line 24: Pattern '1' does not match 'E247: No registered server named "VIMTESTSOCKET": Send expression failed.\n'
command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[677]..function RunTheTest[63]..Test_client_socket_server_server_gui[29]..WaitForAssert[2]..<SNR>4_WaitForCommon[11]..<lambda>27 line 1: Expected 'dead' but got 'run'
command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[677]..function RunTheTest[63]..Test_client_socket_server_server_gui line 32: Server did not exit

seem unrelated?

Yes it is unrelated, this PR fixes them #18586


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/18590/c3416201834@github.com>

Christian Brabandt

unread,
Oct 27, 2025, 2:47:00 PM (5 days ago) Oct 27
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18590)

Having to use sed to strip color codes bothers me a bit. I filed tombi-toml/tombi#1172 for this.


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/18590/c3452798245@github.com>

Enno

unread,
Oct 27, 2025, 3:42:01 PM (5 days ago) Oct 27
to vim/vim, Subscribed
Konfekt left a comment (vim/vim#18590)

Having to use sed to strip color codes bothers me a bit

Thank you, I can relate that such a hack feels unsatisfying; thank you for filing that issue


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/18590/c3453011786@github.com>

Enno

unread,
Oct 27, 2025, 11:52:15 PM (5 days ago) Oct 27
to vim/vim, Push

@Konfekt pushed 1 commit.

  • b9311ac Update tombi.vim for version checks and error handling


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

Enno

unread,
Oct 27, 2025, 11:53:47 PM (5 days ago) Oct 27
to vim/vim, Push

@Konfekt pushed 1 commit.

  • 2bbb1c7 Fix indentation and formatting in tombi.vim

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18590/before/b9311acdea8bb258f3831782655343f54a6946f2/after/2bbb1c79c93404b795382e34e26f6f0d16a833a3@github.com>

Enno

unread,
Oct 27, 2025, 11:54:17 PM (5 days ago) Oct 27
to vim/vim, Subscribed
Konfekt left a comment (vim/vim#18590)

That went fast. Very responsive. I've adapted the compiler file accordingly.


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/18590/c3454414199@github.com>

Enno

unread,
Oct 28, 2025, 11:06:28 AM (4 days ago) Oct 28
to vim/vim, Push

@Konfekt pushed 1 commit.

  • 101d8c9 clean up of tombi version check and NO_COLOR support

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18590/before/2bbb1c79c93404b795382e34e26f6f0d16a833a3/after/101d8c9cbbc90fbabdd09b700d4ae10f503e4f44@github.com>

Christian Brabandt

unread,
Oct 28, 2025, 4:39:32 PM (4 days ago) Oct 28
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18590)

thanks


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/18590/c3458390858@github.com>

Enno

unread,
Oct 28, 2025, 4:43:32 PM (4 days ago) Oct 28
to vim/vim, Subscribed
Konfekt left a comment (vim/vim#18590)

Wait a second, there's a typo in let l:pa = map(split(a:ver),


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/18590/c3458402469@github.com>

Christian Brabandt

unread,
Oct 28, 2025, 4:44:47 PM (4 days ago) Oct 28
to vim/vim, Subscribed

Closed #18590 via d659faf.


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/18590/issue_event/20564095641@github.com>

Christian Brabandt

unread,
Oct 28, 2025, 4:55:11 PM (4 days ago) Oct 28
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18590)

sorry, I'll fix it


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/18590/c3458443778@github.com>

dkearns

unread,
Oct 29, 2025, 5:05:46 AM (3 days ago) Oct 29
to vim/vim, Subscribed

@dkearns commented on this pull request.


In runtime/compiler/tombi.vim:

> +      if l:pa[i] > l:pb[i] | return 1
+      elseif l:pa[i] < l:pb[i] | return 0
+      endif
+    endfor
+    return 1
+  endfunction
+  let s:tombi_nocolor = s:VersionGE(s:tombi_ver, '0.6.40')
+  delfunction s:VersionGE
+endif
+
+if s:tombi_nocolor
+  if has('win32')
+    if &shell =~# '\v<%(cmd|cmd)>'
+      CompilerSet makeprg=set\ NO_COLOR=1\ &&\ tombi\ lint
+    elseif &shell =~# '\v<%(powershell|pwsh)>'
+      CompilerSet makeprg=$env:NO_COLOR="1";\ tombi\ lint

@Konfekt, I would think that the "1"/\ tombi\ lint is parsed as a comment here?


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/18590/review/3392293015@github.com>

Enno

unread,
Oct 29, 2025, 5:51:09 AM (3 days ago) Oct 29
to vim/vim, Subscribed

@Konfekt commented on this pull request.


In runtime/compiler/tombi.vim:

> +      if l:pa[i] > l:pb[i] | return 1
+      elseif l:pa[i] < l:pb[i] | return 0
+      endif
+    endfor
+    return 1
+  endfunction
+  let s:tombi_nocolor = s:VersionGE(s:tombi_ver, '0.6.40')
+  delfunction s:VersionGE
+endif
+
+if s:tombi_nocolor
+  if has('win32')
+    if &shell =~# '\v<%(cmd|cmd)>'
+      CompilerSet makeprg=set\ NO_COLOR=1\ &&\ tombi\ lint
+    elseif &shell =~# '\v<%(powershell|pwsh)>'
+      CompilerSet makeprg=$env:NO_COLOR="1";\ tombi\ lint

Oops, that's right. Powershell understands single quotes, it seems, but (escaped) double quotes are safer to pass for shell escaping


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/18590/review/3392471621@github.com>

Reply all
Reply to author
Forward
0 new messages