Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use phobos with Scala 3.3 LTS #22

Closed
susliko opened this issue Jun 21, 2024 · 1 comment
Closed

Unable to use phobos with Scala 3.3 LTS #22

susliko opened this issue Jun 21, 2024 · 1 comment

Comments

@susliko
Copy link
Contributor

susliko commented Jun 21, 2024

Phobos artifact for scala 3 is built with Scala Next and cannot be used from Scala 3.3 LTS versoins

// phobos.scala
//> using scala 3.3.3
//> using dep "dev.valentiay::phobos-core:0.22.0"

import phobos.encoding.XmlEncoder

case class Foo(x: Int)
object Foo:
  given XmlEncoder[Foo] = ???

Running scala-cli phobos.scala gives

Error: error while loading XmlEncoder,
class file phobos/encoding/XmlEncoder.class is broken, reading aborted with class dotty.tools.tasty.UnpickleException
TASTy signature has wrong version.
 expected: {majorVersion: 28, minorVersion: 3}
 found   : {majorVersion: 28, minorVersion: 4}

This TASTy file was produced by a more recent, forwards incompatible release.
To read this TASTy file, please upgrade your tooling.
The TASTy file was produced by Scala 3.4.1.
[error] ./phobos.scala:8:9
[error] Not found: type XmlEncoder
[error]   given XmlEncoder[Foo] = ???

See best practices for library maintainers

@valentiay
Copy link
Owner

Hi! Thanks for reporting. I've downgraded scala 3 version to the latest LTS 3.3.3 in #24

valentiay added a commit that referenced this issue Jun 23, 2024
Update dependencies and resolve #22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants