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

Fatal: scalac-scoverage-plugin not in libraryDependencies when migrating from 0.99 to 1.0 #102

Closed
seratch opened this issue Feb 13, 2015 · 2 comments

Comments

@seratch
Copy link

seratch commented Feb 13, 2015

I'm considering to move from scoverage 0.99.x to 1.0.x.
But I have the following issue. Any suggestions to fix this?

Issue

seratch/skinny-with-scoverage-1.0@ba93fe5

$ ./skinny test:coverage

[info] Generating /Users/seratch/tmp/skinny-with-scoverage-1.0/target/dev/scala-2.11/resource_managed/main/rebel.xml.
java.lang.Exception: Fatal: scalac-scoverage-plugin not in libraryDependencies
  at scoverage.ScoverageSbtPlugin$$anonfun$projectSettings$16.apply(ScoverageSbtPlugin.scala:100)
  at scoverage.ScoverageSbtPlugin$$anonfun$projectSettings$16.apply(ScoverageSbtPlugin.scala:97)
  at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
  at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
  at sbt.std.Transform$$anon$4.work(System.scala:63)
  at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
  at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
  at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
  at sbt.Execute.work(Execute.scala:235)
  at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
  at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
  at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
  at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at java.lang.Thread.run(Thread.java:744)
[error] (dev/compile:compile::scalacOptions) java.lang.Exception: Fatal: scalac-scoverage-plugin not in libraryDependencies
[error] Total time: 0 s, completed Feb 14, 2015 12:59:04 AM

How to reproduce

git clone https://github.com/seratch/skinny-with-scoverage-1.0.git
cd skinny-with-scoverage-1.0
./skinny test:coverage
@nunomrc
Copy link

nunomrc commented Feb 16, 2015

Hi,

I had the same problem.
I sorted it out by replacing this:
libraryDependencies := Seq(
by:
libraryDependencies ++= Seq(
in project/Build.scala.

Which means appending to the key's old value instead of replacing it with a
new sequence.

Nuno

Nuno Carvalho
Software Engineer - Big Data & Analytics

On 13 February 2015 at 16:07, Kazuhiro Sera notifications@github.com
wrote:

I'm considering to move from scoverage 0.99.x to 1.0.x.
But I have the following issue. Any suggestions to fix this?
Issue

seratch/skinny-with-scoverage-1.0@ba93fe5
seratch/skinny-with-scoverage-1.0@ba93fe5

$ ./skinny test:coverage

[info] Generating /Users/seratch/tmp/skinny-with-scoverage-1.0/target/dev/scala-2.11/resource_managed/main/rebel.xml.
java.lang.Exception: Fatal: scalac-scoverage-plugin not in libraryDependencies
at scoverage.ScoverageSbtPlugin$$anonfun$projectSettings$16.apply(ScoverageSbtPlugin.scala:100)
at scoverage.ScoverageSbtPlugin$$anonfun$projectSettings$16.apply(ScoverageSbtPlugin.scala:97)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:235)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:744)
error java.lang.Exception: Fatal: scalac-scoverage-plugin not in libraryDependencies
[error] Total time: 0 s, completed Feb 14, 2015 12:59:04 AM

How to reproduce

git clone https://github.com/seratch/skinny-with-scoverage-1.0.gitcd skinny-with-scoverage-1.0
./skinny test:coverage


Reply to this email directly or view it on GitHub
#102.

1 Neal Street London WC2H 9QL

www.rightster.com | @Rightster https://twitter.com/rightster | LinkedIn
https://www.linkedin.com/company/rightster

Rightster Limited (incorporated in England with company number 07634543)
has its registered office at 1 Neal Street London WC2H 9QL. Rightster
Limited is a subsidiary of Rightster Group plc (incorporated in England and
Wales with company number 08754680).

@seratch
Copy link
Author

seratch commented Feb 16, 2015

Wow, that's it! Thanks a lot 😄

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

2 participants