From 12fcf71755db2d570f591de773753eb73ac0680c Mon Sep 17 00:00:00 2001 From: Fred Snyder Date: Fri, 30 Sep 2022 08:25:14 -0400 Subject: [PATCH] Off-by-one diagnostic (#595) --- CHANGELOG.md | 4 ++++ lib/solargraph/diagnostics/rubocop.rb | 2 +- lib/solargraph/version.rb | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36ce8ab4a..2edd82b1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.47.2 - September 30, 2022 +- Fix complex type inference (#578) +- Off-by-one diagnostic (#595) + ## 0.47.1 - September 27, 2022 - Remove debug code from release (#600) diff --git a/lib/solargraph/diagnostics/rubocop.rb b/lib/solargraph/diagnostics/rubocop.rb index ae2316878..6a7845dd7 100644 --- a/lib/solargraph/diagnostics/rubocop.rb +++ b/lib/solargraph/diagnostics/rubocop.rb @@ -89,7 +89,7 @@ def offense_ending_position off Position.new(off['location']['start_line'], 0) else Position.new( - off['location']['start_line'] - 1, off['location']['last_column'] + off['location']['start_line'] - 1, off['location']['last_column'] - 1 ) end end diff --git a/lib/solargraph/version.rb b/lib/solargraph/version.rb index 67b27e251..9c894c2fc 100755 --- a/lib/solargraph/version.rb +++ b/lib/solargraph/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Solargraph - VERSION = '0.47.1' + VERSION = '0.47.2' end