Odd errors in 1.1.321

I'm getting some odd bits of red on valid code such as in matches
against values of type Option.

None is marked "fruitless type test: a value of type
Option[PropertyService] cannot also be a None"

The Some part is marked "cannot resolve method Some.unapply" and also
"cannot resolve symbol Some".

0
5 comments

So, even though I had a valid Scala SDK, this problem was apparently
caused by the plugin just being confused over other unresolved
references in other files in my project. I had one file that was missing
(not checked in to VCS) and a couple of libraries that I had forgotten
to add to the project.

On 11/18/14 11:09 AM, Donald McLean wrote:

I'm getting some odd bits of red on valid code such as in matches
against values of type Option.

>

None is marked "fruitless type test: a value of type
Option[PropertyService] cannot also be a None"

>

The Some part is marked "cannot resolve method Some.unapply" and also
"cannot resolve symbol Some".


0

So do you have errors now? We didn't work on error highlighting in recent builds, so everything should be the same as it was earlier.

Best regards,
Alexander Podkhalyuzin.

0

Yes.

I am using IDEA 139.464.4 with plugin build 1.1.331 and getting many odd
errors.

For example, this import:

import scala.xml.{Elem, NodeSeq}

Both Elem and NodeSeq cannot be resolved even though the Scala SDK
2.11.2 is one of the dependencies for the module.

Donald

On 11/19/14 12:54 PM, Alexander Podkhalyuzin wrote:

So do you have errors now? We didn't work on error highlighting in recent builds, so everything should be the same as it was earlier.

>

Best regards,
Alexander Podkhalyuzin.


0

I can't reproduce it. Can you attach sample project?

Best regards,
Alexander Podkhalyuzin.

0

It occurred to me that the obvious thing to try was invalidating the
caches and restarting.

And fortunately, that worked.


On 11/21/14 2:29 PM, Alexander Podkhalyuzin wrote:

I can't reproduce it. Can you attach sample project?

>

0

Please sign in to leave a comment.