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

Error in spec initialization is cryptic with recent intellij #1097

Closed
sksamuel opened this issue Nov 26, 2019 · 4 comments
Closed

Error in spec initialization is cryptic with recent intellij #1097

sksamuel opened this issue Nov 26, 2019 · 4 comments
Assignees
Labels
Milestone

Comments

@sksamuel
Copy link
Member

@sksamuel sksamuel commented Nov 26, 2019

class FooTest : FunSpec() {
  private val ds = "qweqw".apply { error(this) }
 init {
      test("foo") {
      }
  }
}

Gives no indication of the actual exception.

@sksamuel sksamuel added this to the 4.0 milestone Nov 26, 2019
@sksamuel

This comment has been minimized.

Copy link
Member Author

@sksamuel sksamuel commented Nov 26, 2019

Seems same is happening with an exception in beforeSpec

@Kerooker

This comment has been minimized.

Copy link
Member

@Kerooker Kerooker commented Nov 27, 2019

I thought we already fixed this previously

@Kerooker

This comment has been minimized.

Copy link
Member

@Kerooker Kerooker commented Nov 27, 2019

Did we revert that?

@sksamuel sksamuel self-assigned this Jan 12, 2020
sksamuel added a commit that referenced this issue Jan 13, 2020
@sksamuel

This comment has been minimized.

Copy link
Member Author

@sksamuel sksamuel commented Jan 13, 2020

This is now fixed in 4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.