Skip to content

updated sbt to 1.5.1, updated deprecated 0.13 config style #311

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

Merged
merged 4 commits into from
Apr 28, 2021

Conversation

domizei385
Copy link
Contributor

hopefully fix sjs artifact name

@ckipp01
Copy link
Member

ckipp01 commented Apr 27, 2021

Thanks for the pr @domizei385! Let me verify this locally with the sbt plugin, but this looks good.

@ckipp01
Copy link
Member

ckipp01 commented Apr 27, 2021

Everything seems to be working fine when testing the sbt plugins, except for the js tests

[info] [info] Fast optimizing /private/var/folders/fq/nx_jsnyd6550xp03czx898d40000gn/T/sbt_e9fa5735/sjstest/js/target/scala-2.12/sjstest-test-fastopt
[info] [error] Referring to non-existent class scoverage.Invoker$
[info] [error]   called from UnderTest$.onJsAndJvm()java.lang.String
[info] [error]   called from private SharedTest.$anonfun$new$1()org.scalatest.compatible.Assertion
[info] [error]   called from constructor SharedTest.<init>()void
[info] [error]   called from static constructor SharedTest.<stinit>()void
[info] [error]   called from core module analyzer
[info] [error] involving instantiated classes:
[info] [error]   UnderTest$
[info] [error] Referring to non-existent class scoverage.Invoker$
[info] [error]   called from UnderTest$.onJsAndJvm()java.lang.String
[info] [error]   called from private SharedTest.$anonfun$new$1()org.scalatest.compatible.Assertion
[info] [error]   called from constructor SharedTest.<init>()void
[info] [error]   called from static constructor SharedTest.<stinit>()void
[info] [error]   called from core module analyzer
[info] [error] involving instantiated classes:
[info] [error]   UnderTest$
[info] [error] Referring to non-existent method scoverage.Invoker$.invoked$default$3()boolean
[info] [error]   called from UnderTest$.onJsAndJvm()java.lang.String
[info] [error]   called from private SharedTest.$anonfun$new$1()org.scalatest.compatible.Assertion
[info] [error]   called from constructor SharedTest.<init>()void
[info] [error]   called from static constructor SharedTest.<stinit>()void
[info] [error]   called from core module analyzer
[info] [error] involving instantiated classes:
[info] [error]   UnderTest$
[info] [error] Referring to non-existent method scoverage.Invoker$.invoked(int,java.lang.String,boolean)void
[info] [error]   called from UnderTest$.onJsAndJvm()java.lang.String
[info] [error]   called from private SharedTest.$anonfun$new$1()org.scalatest.compatible.Assertion
[info] [error]   called from constructor SharedTest.<init>()void
[info] [error]   called from static constructor SharedTest.<stinit>()void
[info] [error]   called from core module analyzer
[info] [error] involving instantiated classes:
[info] [error]   UnderTest$
[info] [error] Referring to non-existent class scoverage.Invoker$
[info] [error]   called from UnderTest$.jsMethod()java.lang.String
[info] [error]   called from private JsTest.$anonfun$new$1()org.scalatest.compatible.Assertion
[info] [error]   called from constructor JsTest.<init>()void
[info] [error]   called from static constructor JsTest.<stinit>()void
[info] [error]   called from core module analyzer
[info] [error] involving instantiated classes:
[info] [error]   UnderTest$
[info] [error] Cannot access module for non-module scoverage.Invoker$
[info] [error]   called from UnderTest$.jsMethod()java.lang.String
[info] [error]   called from private JsTest.$anonfun$new$1()org.scalatest.compatible.Assertion
[info] [error]   called from constructor JsTest.<init>()void
[info] [error]   called from static constructor JsTest.<stinit>()void
[info] [error]   called from core module analyzer
[info] [error] involving instantiated classes:
[info] [error]   UnderTest$
[info] [error] Referring to non-existent class scoverage.Invoker$
[info] [error]   called from UnderTest$.jsMethod()java.lang.String
[info] [error]   called from private JsTest.$anonfun$new$1()org.scalatest.compatible.Assertion
[info] [error]   called from constructor JsTest.<init>()void
[info] [error]   called from static constructor JsTest.<stinit>()void
[info] [error]   called from core module analyzer
[info] [error] involving instantiated classes:
[info] [error]   UnderTest$
[info] [error] Referring to non-existent class scoverage.Invoker$
[info] [error]   called from UnderTest$.jsMethod()java.lang.String
[info] [error]   called from private JsTest.$anonfun$new$1()org.scalatest.compatible.Assertion
[info] [error]   called from constructor JsTest.<init>()void
[info] [error]   called from static constructor JsTest.<stinit>()void
[info] [error]   called from core module analyzer
[info] [error] involving instantiated classes:
[info] [error]   UnderTest$
[info] [error] Referring to non-existent class scoverage.Invoker$
[info] [error]   called from UnderTest$.onJsAndJvm()java.lang.String
[info] [error]   called from private SharedTest.$anonfun$new$1()org.scalatest.compatible.Assertion
[info] [error]   called from constructor SharedTest.<init>()void
[info] [error]   called from static constructor SharedTest.<stinit>()void
[info] [error]   called from core module analyzer
[info] [error] involving instantiated classes:
[info] [error]   UnderTest$
[info] [error] Cannot access module for non-module scoverage.Invoker$
[info] [error]   called from UnderTest$.onJsAndJvm()java.lang.String
[info] [error]   called from private SharedTest.$anonfun$new$1()org.scalatest.compatible.Assertion
[info] [error]   called from constructor SharedTest.<init>()void
[info] [error]   called from static constructor SharedTest.<stinit>()void
[info] [error]   called from core module analyzer
[info] [error] involving instantiated classes:
[info] [error]   UnderTest$
[info] [error] There were linking errors
[info] [error] (sjstestJS / Test / fastLinkJS) There were linking errors
[info] [error] Total time: 14 s, completed 27 Apr 2021, 19:30:43
[error] x scoverage/scalajs
[error]  Cause of test exception: {line 4}  Command failed: test failed

Any ideas?

@domizei385
Copy link
Contributor Author

domizei385 commented Apr 27, 2021

Not yet. Will check later tonight. Unless you beat me to it.

@ckipp01
Copy link
Member

ckipp01 commented Apr 27, 2021

Not yet. Will check later tonight. Unless you beat me to it.

Sounds good. I'll see if I can figure it out. If not, I'll push up a branch to the sbt plugin repo and tag you on it.

@domizei385
Copy link
Contributor Author

domizei385 commented Apr 27, 2021

Okay. Locally I got all tests to work, but I have messed with the plugin quite a lot (when I was creating a build for my customer to support 2.12.13) so I need to prepare it before I can create a public PR.
@ckipp01 Do you also have write access to the sbt plugin repo?

@ckipp01
Copy link
Member

ckipp01 commented Apr 27, 2021

Okay. Locally I got all tests to work, but I have messed with the plugin quite a lot (when I was creating a build for my customer to support 2.12.13) so I need to prepare it before I can create a public PR.
@ckipp01 Do you also have write access to the sbt plugin repo?

Yes I do. I have a pr sent up there that has everything passing but the js tests.

@domizei385
Copy link
Contributor Author

👍 I’ll create the PR in a few hours. Then we can cherry pick the best pieces from both PRs.

@domizei385
Copy link
Contributor Author

domizei385 commented Apr 27, 2021

Please see scoverage/sbt-scoverage#324 for related sbt plugin PR

Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick question on Scala js but other than that, LGTM

Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I just got some clarification that the sjs1.5 isn't a thing, so we'll need to switch this to just be sjs1.

Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright verified that all is working locally now with _sjs1.

@ckipp01 ckipp01 merged commit cc39091 into scoverage:master Apr 28, 2021
@domizei385 domizei385 deleted the sjs-version branch April 28, 2021 09:03
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

Successfully merging this pull request may close these issues.

2 participants