From bb9153ddb2b7762f58f2cac2843612c09383b588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lek=C3=AB=20Mula?= Date: Sun, 7 Sep 2025 22:28:06 +0200 Subject: [PATCH] Make typechecker errors vim quickfix friendly Should probably be helpful for emacs afaik. --- lib/solargraph/shell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solargraph/shell.rb b/lib/solargraph/shell.rb index a005f600b..0c025b7bb 100755 --- a/lib/solargraph/shell.rb +++ b/lib/solargraph/shell.rb @@ -187,7 +187,7 @@ def typecheck *files problems = checker.problems next if problems.empty? problems.sort! { |a, b| a.location.range.start.line <=> b.location.range.start.line } - puts problems.map { |prob| "#{prob.location.filename}:#{prob.location.range.start.line + 1} - #{prob.message}" }.join("\n") + puts problems.map { |prob| "#{prob.location.filename}:#{prob.location.range.start.line + 1}: #{prob.message}" }.join("\n") filecount += 1 probcount += problems.length end