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

No-symbol does not have a owner in specs2 specifications #6201

Closed
scabug opened this issue Aug 7, 2012 · 9 comments
Closed

No-symbol does not have a owner in specs2 specifications #6201

scabug opened this issue Aug 7, 2012 · 9 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Aug 7, 2012

When compiling the latest specs2 branch with scala 2.10.0-M6 I get a compiler crash (see attached file).

I don't know yet how to reduce this issue to something more digestible, but in the meantime you can reproduce it by cloning my git repo: https://github.com/etorreborre/specs2/tree/1.13

@scabug
Copy link
Author

scabug commented Aug 7, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6201?orig=1
Reporter: @etorreborre
Affected Versions: 2.10.0-M4, 2.10.0-M5, 2.10.0-M6
Attachments:

  • no_owner.txt (created on Aug 7, 2012 7:50:44 AM UTC, 99725 bytes)

@scabug
Copy link
Author

scabug commented Aug 7, 2012

@etorreborre said:
I've briefly had a look at it. I tried to remove a few case classes definitions which were nested in method calls but then I have the same crash with an abstract case class (org.specs2.specification.Then).

@scabug
Copy link
Author

scabug commented Aug 8, 2012

@hubertp said:
Since it is not obvious, this happens when compiling tests (core is ok). Also I cannot reproduce the exact NSDNHO crash, instead I get SO.

@scabug
Copy link
Author

scabug commented Aug 8, 2012

@etorreborre said:
I have a fairly large Xss setting: -Xss4m. Can you please try that?

@scabug
Copy link
Author

scabug commented Aug 8, 2012

@hubertp said:
Got it, my custom sbt script wasn't passing those.

@scabug
Copy link
Author

scabug commented Aug 9, 2012

@hubertp said:
Minimized (regression):

class Test {
  class Foo1 {
  	def must(x: scala.xml.Elem) = ()
  }

  class Foo2 {
  	def must(x: Int) = ()
  }
  implicit def toFoo1(s: scala.xml.Elem) = new Foo1()
  implicit def toFoo2(s: scala.xml.Elem) = new Foo2()

  def is: Unit = { (<a>{"a"}</a>).must(<a>{"b"}</a>) }
}

worked in M3, stopped in M4.
The problem is that root package qualifier from root.scala.xml.Null somehow gets past Typer and later we crash.
adaptToMemberWithArgs is a bit at fault but the underlying cause may be somewhere else.

@scabug
Copy link
Author

scabug commented Aug 10, 2012

@hubertp said:
Actually scratch "root package qualifier from root.scala.xml.Null somehow gets past Typer". It's been doing that before.

@scabug
Copy link
Author

scabug commented Aug 10, 2012

@hubertp said:
git bisect says this regression was introduced by 6bb5975289c5b11cb8c88dd4629286956b5d3d27.
I am bumping it to critical since it is a regression but feel free to change it.

@scabug
Copy link
Author

scabug commented Aug 14, 2012

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

No branches or pull requests

2 participants