eed3si9n / scalaxb

scalaxb is an XML data binding tool for Scala.
http://scalaxb.org/
MIT License
335 stars 154 forks source link

when compiling for 2.13 object breakOut is not a member of package scala.collection.breakOut #533

Closed kalevsuik closed 4 years ago

kalevsuik commented 4 years ago

object breakOut is not a member of package collection [error] import scala.collection.breakOut

in generated scalaxb/scalaxb.scala object HexBinary { def apply(xs: Byte*): HexBinary = { import scala.collection.breakOut val vector: Vector[Byte] = (xs.toIndexedSeq map {x: Byte => x})(breakOut) new HexBinary(vector) } ......... I was compiling OpenAdr xsd files

eed3si9n commented 4 years ago

This looks like a duplicate of https://github.com/eed3si9n/scalaxb/issues/509. Are you using the latest version of scalaxb? If not could you try it?

kalevsuik commented 4 years ago

I have 1.7.5

eed3si9n commented 4 years ago

https://github.com/eed3si9n/scalaxb/blob/v1.7.5/cli/src/main/resources/scalaxb.scala.template#L832-L844

The HexBinary.apply doesn't match the code you quoted.

kalevsuik commented 4 years ago

my bad, I had latest version in build.sbt but old one in plugins.sbt