#2436 Cannot parse .props files when first line is # comment

SlimerDude Tue 14 Jul 2015

It seems property files can not be read if the first char is #:

Fantom Shell v1.0.67 ('?' for help)

fansh> "#oops".toBuf.readProps

sys::IOErr: Invalid name/value pair [Line 1]
  fan.sys.InStream.readProps (InStream.java:706)
  fan.sys.InStream.readProps (InStream.java:578)
  fan.sys.Buf.readProps (Buf.java:352)

Though # comments work fine as along as it's not the first line:

Fantom Shell v1.0.67 ('?' for help)

fansh> "\n#okay".toBuf.readProps
[:]

matthew Tue 14 Jul 2015

Ticket promoted to #2436 and assigned to matthew

I've reproduced and opened a ticket.

matthew Tue 14 Jul 2015

Ticket resolved in 1.0.68

Fixed InStream.java so that readProps() will handle when the first line starts with a # (line comment) character.

SlimerDude Wed 15 Jul 2015

Cool, cheers Matthew!

Login or Signup to reply.