squants icon indicating copy to clipboard operation
squants copied to clipboard

Money round-trip parsing failures

Open vlovgr opened this issue 7 years ago • 3 comments

Money round-trip parsing via toString is failing in 1.4.0. Worked in 1.3.0.

import squants.market._

val money = Money(1000d, USD)
// money: squants.market.Money = 1E+3 USD

Money(money.toString)
// scala.util.Try[squants.market.Money] = Failure(squants.QuantityParseException: Unable to parse Money:1E+3 USD)

vlovgr avatar Nov 14 '18 10:11 vlovgr

This seems to work for me as of today on master. Is this still failing for you?

hunterpayne avatar Jan 19 '19 09:01 hunterpayne

I'm seeing the same behavior, which prevents me from updating PureConfig to the latest version of squants.

Do you have any idea of when a new version might be released?

ruippeixotog avatar Feb 25 '19 04:02 ruippeixotog

Ping. If this is already fixed on master, can you please publish a new version?

ruippeixotog avatar Jun 19 '19 21:06 ruippeixotog