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

incomprehensible error messages #216

Open
krux02 opened this issue Jun 22, 2023 · 1 comment
Open

incomprehensible error messages #216

krux02 opened this issue Jun 22, 2023 · 1 comment

Comments

@krux02
Copy link

krux02 commented Jun 22, 2023

Currently the codbase that I work on started to report an error message:

[info] compiling 2 Scala sources to /home/arne/proj/priceloop/nocode/cli/target/scala-2.13/classes ...
[error] /home/arne/proj/priceloop/nocode/cli/src/main/scala/helpers/IOCommand.scala:42:31: implicit error;
[error] !I deserializer: chameleon.Deserializer[java.lang.String, java.lang.String]
[error] chameleon.ext.jsoniter.jsoniterSerializerDeserializer invalid because
[error] !I evidence$1: com.github.plokhotnyuk.jsoniter_scala.core.JsonCodec[java.lang.String]
[error]       val api    = client.wire[Api[IO]]

This error message is incomprehensible. It vaguely hints that it has something to do with implicits, and then it says something about evidence by just listing a class name that doesn't tell me anything.

@cornerman
Copy link
Owner

Good point.

This error message is coming from the scala compiler. We could add an ImplicitNotFound annotation to the serializer/deseerializer classes. It could help to make the message nicer and to suggest what to do.

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