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
$ crystal tool format example.cr
Error: couldn't format 'example.cr', please report a bug including the contents of it: https://github.com/crystal-lang/crystal/issuesexpecting DELIMITER_START, not `[, `, at :4:22 (Exception)Error opening file 'crystal' with mode 'r': No such file or directoryUnhandled exception: Error opening file 'crystal' with mode 'r': No such file or directory (Errno)Failed to raise an exception: END_OF_STACK[0x55fb443185b6] ???[0x55fb43a66fab] __crystal_raise +43[0x55fb43a6852c] ???[0x55fb43a78b92] ???[0x55fb43a7205b] ???[0x55fb43a713aa] ???[0x55fb43a6dea9] ???[0x55fb43aa0161] ???[0x55fb43a6aa3d] main +205[0x7fa48db1906b] __libc_start_main +235[0x55fb43a6373a] _start +42[0x0] ???
Contents of example.cr
As requested by the error above. This code may not do things "the right way"™, but technically it does compile and run.
# File: example.cr
data = {} of String => Int32
my_value =begin data["a"] rescue0endputs my_value
The text was updated successfully, but these errors were encountered:
Problem summary
crystal tool format
crashes with "Error: couldn't format". I suspect this is because begin/rescue are on the same line.Core information
OS: Arch Linux
Complete error output
Contents of
example.cr
As requested by the error above. This code may not do things "the right way"™, but technically it does compile and run.
The text was updated successfully, but these errors were encountered: