IDEA 10 + Scala plugin indicates an error that is not an error.

I'm a new IDEA user. I recently downloaded v10.0.2 along with the Scala plugin. To learn my way around the environment I started a simple project. In my project I've written some tests for use with ScalaTest v1.3. For example:

class TimeSuite extends FunSuite with Assertions with ShouldMatchers { ...
IDEA puts a red underline beneath "TimeSuite." If I hover over it I get the message: "class TimeSuite needs to be abstract since member withFixture(test: AbstractSuite.this.type#NoArgTest): Unit in org.scalatest.AbstractSuite is not defined." However, the code compiles fine.

I am using a copy of ScalaTest that I downloaded separately. I'm not clear that's a factor or not. For example, maybe IDEA has a built in version of ScalaTest that is different from the version I'm compiling against. I'm not clear on how to determine if that is the case. Any pointers would be appreciated.

Thanks!

5 comments
Comment actions Permalink

I'm having the exact same problem, although I downloaded scalatest 1.3 via maven.

0
Comment actions Permalink

I think this is the following issue:
http://youtrack.jetbrains.net/issue/SCL-2840

It's marked as "fixed", but I think it should be re-opened.

Peter, Timothy, could be provide example code that is "red" for you in the comments of that issue?

-tt

0
Comment actions Permalink

Just a class declaration gives the error.

class SomeSuite extends FunSuite {

}

0
Comment actions Permalink

Then vote (for the issue in YouTrack) :)

P.S. There is a dedicated forum for the Scala plugin.

0
Comment actions Permalink

I posted a comment on the issue and voted for it as well. Thanks for the tip about the Scala plugin forum. I'll check it out!

0

Please sign in to leave a comment.