Skip to content
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

Got error - inherits conflicting members #14

Open
angeloh opened this issue Aug 3, 2015 · 2 comments
Open

Got error - inherits conflicting members #14

angeloh opened this issue Aug 3, 2015 · 2 comments

Comments

@angeloh
Copy link

angeloh commented Aug 3, 2015

This is my test case

class CompanySpec extends PlaySpecification with EmbedConnection {

  "Company" should {

    "save Company to mongo" in new WithEmbededMongo {
      val user = "[email protected]"
      CompanyDao.save(Company(
        user=user,
        name="first last",
        domain="mytest.com",
        linkedinUrl=linkedinUrl))

      val co = CompanyDao.findByUser(user)
      (co.isDefined must equalTo(true)) and
      (co.get.time must equalTo(1))
    }

  }

}

abstract class WithEmbededMongo extends WithApplication(FakeApplication(
  additionalConfiguration = Map(
      "mongodb.default.uri" -> "mongodb://localhost:12345/prtest"
    )
  )) {
  override def around[T: AsResult](t: => T): Result = super.around {
    t
  }
}

I got exceptions like this:

class CompanySpec inherits conflicting members:
[error]   method textFragment in trait TextDsl of type (s: String)CompanySpec.this.textFragment  and
[error]   method textFragment in trait FragmentsBuilder of type (s: String)org.specs2.specification.FragmentsFragment
[error] (Note: this can be resolved by declaring an override in class CompanySpec.);
[error]  other members with override errors are: title, tag, section, xtag, xsection
[error] class CompanySpec extends PlaySpecification with EmbedConnection {

@athieriot
Copy link
Owner

Hi,

Unfortunately, I have no idea what it could be.

However, I wonder if it could be related with the version of EmbbedMongo the library depends on. (Which is probably quite old)
I know someone is preparing a Pull Request to update it. Maybe it's worth waiting for that?

Sorry not be of better help

@marinatedpork
Copy link

+1 Also experiencing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants