runtime(compiler): ignore 'Found' messages in ruff and ty compiler
Commit:
https://github.com/vim/vim/commit/ffd5c52d23efa10087721b33713dbf8e4071f3ae
Author: Konfekt <[email protected]>
Date: Fri Dec 26 15:33:39 2025 +0000
runtime(compiler): ignore 'Found' messages in ruff and ty compiler
while at it, also update the ty command line
closes: #19012
Signed-off-by: Konfekt <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/compiler/ruff.vim b/runtime/compiler/ruff.vim
index d10e6eda2..d4f564b06 100644
--- a/runtime/compiler/ruff.vim
+++ b/runtime/compiler/ruff.vim
@@ -4,6 +4,7 @@
" Last Change: 2024 Nov 07
" 2024 Nov 19 by the Vim Project (properly escape makeprg setting)
" 2025 Nov 06 by the Vim Project (do not set buffer-local makeprg)
+" 2024 Dec 24 by the Vim Project (mute Found messages)
if exists("current_compiler") | finish | endif
let current_compiler = "ruff"
@@ -16,6 +17,7 @@ exe 'CompilerSet makeprg=' .. escape('ruff check
--output-format=concise '
\ ..get(b:, 'ruff_makeprg_params', get(g:, 'ruff_makeprg_params',
'--preview')),
\ ' \|"')
CompilerSet errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,%f:%l:%c\ -\ %m,%f:
+CompilerSet errorformat+=%-GFound\ %.%#
let &cpo = s:cpo_save
unlet s:cpo_save
diff --git a/runtime/compiler/ty.vim b/runtime/compiler/ty.vim
index 5684b29f6..d9ee5aae8 100644
--- a/runtime/compiler/ty.vim
+++ b/runtime/compiler/ty.vim
@@ -1,7 +1,7 @@
" Vim compiler file
" Compiler: Ty (Python Type Checker)
" Maintainer: @konfekt
-" Last Change: 2024 Dec 18
+" Last Change: 2024 Dec 24
if exists("current_compiler") | finish | endif
let current_compiler = "ty"
@@ -11,9 +11,10 @@ set cpo&vim
" CompilerSet makeprg=ty
exe 'CompilerSet makeprg=' .. escape(
- \ get(b:, 'ty_makeprg', get(g:, 'ty_makeprg', 'ty --no-progress
--color=never'))
- \ ..' check --output-format=concise', ' \|"')
+ \ get(b:, 'ty_makeprg', get(g:, 'ty_makeprg', 'ty check --no-progress
--color=never'))
+ \ ..' --output-format=concise', ' \|"')
CompilerSet errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,%f:%l:%c\ -\ %m,%f:
+CompilerSet errorformat+=%-GFound\ %.%#
let &cpo = s:cpo_save
unlet s:cpo_save
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vZ9zz-00GuFQ-Ol%40256bit.org.