You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running below command (piping is just a convenience here, same goes for regular files):
echo -n "# foo"| bin/ameba --fix -
Results in IndexError:
The range 0...6 is outside the bounds of the source (IndexError)
from src/ameba/source/rewriter.cr:131:7 in 'check_range_validity'
from src/ameba/source/rewriter.cr:124:7 in 'combine:replacement'
from src/ameba/source/rewriter.cr:75:7 in 'replace'
from src/ameba/source/corrector.cr:18:7 in 'replace'
from src/ameba/rule/lint/formatting.cr:53:9 in '->'
from src/ameba/issue.cr:43:20 in 'correct'
from src/ameba/source.cr:29:21 in 'correct?'
from src/ameba/runner.cr:133:38 in 'run_source'
from src/ameba/runner.cr:93:11 in '->'
from /opt/homebrew/Cellar/crystal/1.14.0/share/crystal/src/fiber.cr:143:11 in 'run'
from /opt/homebrew/Cellar/crystal/1.14.0/share/crystal/src/fiber.cr:95:34 in '->'
Running below command (piping is just a convenience here, same goes for regular files):
Results in
IndexError
:Tested with 51cb88e
Happens only when
Lint/Formatting
andLayout/TrailingBlankLines
issues are present at the same time.Possibly related to #489
/cc @FnControlOption
The text was updated successfully, but these errors were encountered: