Recursive Specs2 Class Definition in Project View

I just started working with Specs2 and today I noticed that in the Project view the classes os SpecificationWithJUnit are apearing recursively. You have the same class name appearing in the same class, for ever (or at least until I could test that).

I managed to create a small code that reproduces the problem:


class SomeTest extends SpecificationWithJUnit {
  def is = "Hello" ^
    "test 3" ! a().e1 ^
    end

  case class a() {
    def e1 = success
  }
}


The issue only happens when you have the case class. I think the case class implicitly create a SomeTest object and for some reason the browser code guest lost.

I noticed that if the view is closed perfomances is really better.


Also happens in the explicit object in this variant:

class SomeTest extends SpecificationWithJUnit {
  import SomeTest._
  def is = "Hello" ^
    "test 3" ! a().e1 ^
    end

}

object SomeTest {
  case class a() {
    def e1 = success
  }
}

I'm using IDEA 10.5.1 and the lastest version of the 0.4.1148 of the plugin.

3 comments
Comment actions Permalink

You can also disable "Show members" settings in Project View (as workaround).
Now this issue is fixed. Problem was with all inner classes (not only case).

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

What version of the plugin fixes this?

0
Comment actions Permalink

From 0.4.1169.

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.