question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin dependency isn't resolved

See original GitHub issue

Can’t add plugin even to a dummy project.

Project as a gist is here: https://gist.github.com/daron666/a34cea78c9a20f8f6243e6c635f0362b

screen shot 2018-02-02 at 09 25 55

I’m using Idea as a IDE, but even from command line I wasn’t able to run scapegoat task and got this error

sbt:scapegoat-not-working> scapegoat
[info] [scapegoat] Removing scapegoat class directory: /Users/daron/IdeaProjects/scapegoat-not-working/target/scala-2.12/scapegoat-classes
[error] java.lang.Exception: Fatal: scalac-scapegoat-plugin not in libraryDependencies (Vector(/Users/daron/.sbt/boot/scala-2.12.4/lib/scala-library.jar))
[error] 	at com.sksamuel.scapegoat.sbt.ScapegoatSbtPlugin$.$anonfun$projectSettings$4(ScapegoatSbtPlugin.scala:67)
[error] 	at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] 	at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:39)
[error] 	at sbt.std.Transform$$anon$4.work(System.scala:66)
[error] 	at sbt.Execute.$anonfun$submit$2(Execute.scala:262)
[error] 	at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] 	at sbt.Execute.work(Execute.scala:271)
[error] 	at sbt.Execute.$anonfun$submit$1(Execute.scala:262)
[error] 	at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:174)
[error] 	at sbt.CompletionService$$anon$2.call(CompletionService.scala:36)
[error] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] 	at java.lang.Thread.run(Thread.java:748)
[error] (Scapegoat / scalacOptions) java.lang.Exception: Fatal: scalac-scapegoat-plugin not in libraryDependencies (Vector(/Users/daron/.sbt/boot/scala-2.12.4/lib/scala-library.jar))
[error] Total time: 0 s, completed Feb 2, 2018 9:30:14 AM

What am I doing wrong?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
sksamuelcommented, Feb 19, 2018

1.0.9 is released! @mwz @pomadchin @ireactsam

1reaction
mwzcommented, Apr 18, 2020

Might be worth adding a quick note to the readme and also maybe expanding on this error message suggesting to the user to double check that they didn’t accidentally overwrite library dependencies.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven Could not resolve dependencies, artifacts could not be ...
Doing mvn dependency:tree, dependency:list, or the usual build package, will result in the same error. I've tried downloading the newest version of maven,...
Read more >
Apache Maven Dependency Plugin – dependency:resolve
org.apache.maven.plugins:maven-dependency-plugin:3.4.0:resolve. Description: Goal that resolves the project dependencies from the repository.
Read more >
Plugin org.apache.maven.plugins:maven-resources-plugin ...
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved · Go to %USERPROFILE%\.m2\org\apache\ ...
Read more >
IntelliJ not resolving Maven dependencies
It's not resolving Maven dependencies (the External Libraries remains empty and all classes from dependencies are red in the editor).
Read more >
How to Fix Maven Artifacts Could not be Resolved Error ...
Just upgrade log4j and zookeeper to latest version. log4j 1.2.16 and zookeeper 3.4.9 doesn't have these dependencies. Option-2. Add below ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found