Crystal: Formatter error on "&.some_method" argument been put on a new line

Created on 12 Aug 2018  路  1Comment  路  Source: crystal-lang/crystal

Trying to format this:

Process.run("ls",
&.output.gets_to_end)

I got this:

Error: couldn't format 'sample', please report a bug including the contents of it: https://github.com/crystal-lang/crystal/issues
expecting &, not `NEWLINE, `, at :1:18 (Exception)
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???

Crystal 0.25.1 [b782738ff] (2018-06-27)
LLVM: 4.0.0
Default target: x86_64-unknown-linux-gnu

bug compiler topicformatter

Most helpful comment

Let's ping the formatter hero @MakeNowJust :+1:

>All comments

Let's ping the formatter hero @MakeNowJust :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oprypin picture oprypin  路  3Comments

pbrusco picture pbrusco  路  3Comments

asterite picture asterite  路  3Comments

ArthurZ picture ArthurZ  路  3Comments

will picture will  路  3Comments