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
╰──➤ $ 1 crystal tool format --show-backtrace test.cr
Index out of bounds (IndexError)
from /crystal/src/indexable.cr:977:29 in '[]'
from /crystal/src/compiler/crystal/tools/formatter.cr:5042:15 in 'align_info'
from /crystal/src/compiler/crystal/tools/formatter.cr:4999:11 in 'align_infos'
from /crystal/src/compiler/crystal/tools/formatter.cr:4948:7 in 'finish'
from /crystal/src/compiler/crystal/tools/formatter.cr:23:7 in 'format_source'
from /crystal/src/compiler/crystal/command/format.cr:133:7 in 'format_many'
from /crystal/src/compiler/crystal/command/format.cr:63:5 in 'format'
from /crystal/src/reference.cr:75:3 in 'tool'
from /crystal/src/compiler/crystal/command.cr:118:7 in 'run'
from /crystal/src/compiler/crystal.cr:11:1 in '__crystal_main'
from /crystal/src/crystal/main.cr:118:5 in 'main'
from src/env/__libc_start_main.c:95:2 in 'libc_start_main_stage2'
The issue caused by
Procodile.log nil, "system", "Concurrency check started \#{result[:started].map(&.description).join(", ")}"
If change to following one-line version, issue is not happen.
Procodile.log nil, "system", "Concurrency check started #{result[:started].map(&.description).join(", ")}"
But, if remove the to_hash method, this issue not happen too.
# no errormoduleProcodileclassSupervisordefcheck_concurrency(
options : Supervisor::Options=Supervisor::Options.new
) : Hash(Symbol, Array(Instance))
if result[:started].present?
Procodile.log nil, "system", "Concurrency check started \#{result[:started].map(&.description).join(", ")}"endendendend
The text was updated successfully, but these errors were encountered:
Bug Report
Probably related to #15242
When try to format following code:
get error like following:
The issue caused by
If change to following one-line version, issue is not happen.
But, if remove the
to_hash
method, this issue not happen too.The text was updated successfully, but these errors were encountered: