This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Known issue? SDT flags error on valid Scala code "Cant find implicit value for parameter"

1 reply
Ben Hutchison 3
Joined: 2009-11-02,
User offline. Last seen 42 years 45 weeks ago.
Something I observe quite often is that the SDT wrongly flags error on valid Scala code, where the default values for implicit parameters (ie from companion objects) are passed.

I think its just the presentation compiler thats doing it. Heres an observed scenario.

1. Project compiles. No error markers.
2. Open a file from project into Editor for first time
3. Error marker about missing implicit param value in that file.
4. Clean build.
5. Marker goes away.

Is this a known issue?
-Ben
milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Known issue? SDT flags error on valid Scala code "Cant fin

On Wed, Mar 17, 2010 at 11:46 PM, Ben Hutchison wrote:
> Something I observe quite often is that the SDT wrongly flags error on valid
> Scala code, where the default values for implicit parameters (ie from
> companion objects) are passed.
>
> I think its just the presentation compiler thats doing it. Heres an observed
> scenario.
>
> 1. Project compiles. No error markers.
> 2. Open a file from project into Editor for first time
> 3. Error marker about missing implicit param value in that file.
> 4. Clean build.
> 5. Marker goes away.
>
> Is this a known issue?

I've not seen that. If you can extract out a minimal example could you
attach it to a ticket in Trac. Thanks.

Cheers,

Miles

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland