-
Notifications
You must be signed in to change notification settings - Fork 21
Presentation compiler spurious error with cats, circe, slick, doobie, freek.... Anything Type involved #9716
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9716?orig=1
|
@dragos said: |
@gaydenko said: |
Francois Armand (fanf) said (edited on Sep 2, 2016 9:26:00 AM UTC): I'm joining an example of what happen on all files with such errors. You can see that there is no error reported for the selected file, but still the presentation compiler insist to add one or two by on each line. Restarting the presentation compiler helps, but just until I'm making any modification. That makes developping with an IDE which takes advantage of the Presentation compiler extremelly painfull. So basically, now that more typesafe lib are common or even part of lightbend stack, there is some serious work to be done on the scala presentation compiler. I'm using the last version of Scala IDE (4.4.1 righ now) with Scala 2.11.8. |
@dragos said: |
@dragos said: |
@SethTisue said: |
Rahel Lüthy (netzwerg) said: |
@dragos said: |
@gaydenko said: |
@adriaanm said: |
@retronym said: |
1 similar comment
@retronym said: |
As already said in the typelevel/doobie#508, I can confirm that adding -Ymacro-expand:normal helps a lot regarding spurious errors. I also want to emphasis a behaviour of ScalaIDE that made me think at first that the option was not doing anything: in Scala IDE, when using Hope it will help others. |
``` % sbt compile // okay % sbt 'set scalacOptions in ThisBuild := Seq("-Ymacro-expand:discard")' compile [error] /Users/jz/code/t9716/client/src/main/scala/sample/Client.scala:10: could not find Lazy implicit value of type io.circe.generic.decoding.DerivedDecoder[sample.User] [error] implicit lazy val userEventDecoder: Decoder[User] = deriveDecoder[User] [error] ^ [error] one error found ```
I'm trying circe for Json, and the presentation compiler (that's the Scala IDE dev who said it :) is reporting false errors, as soon as I tried to do... well, almost anything related to circe jsons decoder :)
For example:
The code compile, but on line 'implicit lazy val...', eclipse show a red-cross error under User:
The same symptoms are appering with several cats methods, like traverseU.
Also: I don't have completion on anyting after the error, in the scope, for example in:
I don't have completion on prepare, and hitting crtl+space after ".p" leads to 0 scala completion.
Also, the type given on tooltip on mouse over is "val somevar: "
So, in short, presentation compiler gave up at this point.
The text was updated successfully, but these errors were encountered: