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

match may not be exhaustive issue #91

Open
OhohLeo opened this issue Sep 2, 2022 · 1 comment
Open

match may not be exhaustive issue #91

OhohLeo opened this issue Sep 2, 2022 · 1 comment

Comments

@OhohLeo
Copy link

OhohLeo commented Sep 2, 2022

Hello,

I am facing a compilation issue on avro generated code when updating my scala application using sbt-avrohugger library.

My versions :

  • scala 2.13.8
  • sbt 1.6.2
  • sbt-avrohugger 2.2.0

Here is an exemple of the failing code :

[error] .../target/scala-2.13/src_managed/main/compiled_avro/com/qosenergy/qng/models.scala:319:9: match may not be exhaustive.
[error] It would fail on the following input: (x: Any forSome x not in Long)
[error]         value match {
[error]         ^

coming from this generated code :
image

generated from this avro exerpt :
image

Do you know how to solve this compilation issue ?

@julianpeeters
Copy link
Owner

Thanks for reporting, the timeline for a fix is pretty far off, but as a workaround you may like to try turning off your linter, or else look into silencing your target directory: scala/scala#8373

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