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

Can't call io.circe.yaml.parser.parse on an input stream reader in 0.15.1 #410

Open
Thrillpool opened this issue Dec 5, 2023 · 1 comment

Comments

@Thrillpool
Copy link

Thrillpool commented Dec 5, 2023

If you try to do

io.circe.yaml.parser.parse(new InputStreamReader(null))

Then you get a compilation error

type mismatch;
 found   : java.io.InputStreamReader
 required: String

I would imagine this change to be responsible d3d0907#diff-f063ea063fa1652fe54e2ad024f6209661708310bfbaf78c7b303fbc7095db2aR12

Though I don't see all the details.

If you replace io.circe.yaml.parser.parse with Parser.default.parse i.e. its definition, it compiles fine.

Edit - I think issue is basically this

object X extends App {
  B.f(0)
}

trait A {
  def f(x: String): String
}

package object B extends A {
  def f(x: Int): String = ???
  def f(x: String): String = ???
}

Edit - I suppose it's pertinent to say I am using scala 2.12

@mmvpm
Copy link

mmvpm commented Apr 14, 2024

the same for scala-2.13.13 and circe-yaml-1.15.0

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