Context: I'm trying to run the starter sample web application in the Play documentation for Scala: https://www.playframework.com/documentation/2.8.x/HelloWorldTutorial. I confirmed that I have the listed requirements and I've followed the instructions in the README which appear to state you run sbt run in the project directory. I'm raising a ton of errors which seem to indicate I have missing dependencies but I have no idea.
Questions: Can someone please assist in helping me interpret and resolve these errors? Thank you.
C:\Users\eric.barnes\Desktop\play-samples-play-scala-starter-example\play-samples-play-scala-starter-example\project>sbt run
[info] Updated file C:\Users\eric.barnes\Desktop\play-samples-play-scala-starter-example\play-samples-play-scala-starter-example\project\project\build.properties: set sbt.version to 1.5.5
[info] welcome to sbt 1.5.5 (Oracle Corporation Java 16.0.2)
[info] loading global plugins from C:\Users\eric.barnes\.sbt\1.0\plugins
[info] loading project definition from C:\Users\eric.barnes\Desktop\play-samples-play-scala-starter-example\play-samples-play-scala-starter-example\project\project
[info] loading settings for project project from plugins.sbt ...
[info] set current project to project (in build file:/C:/Users/eric.barnes/Desktop/play-samples-play-scala-starter-example/play-samples-play-scala-starter-example/project/)
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.typesafe.sbt:sbt-js-engine:1.2.3 (scalaVersion=2.12, sbtVersion=1.0)
[warn] com.typesafe.sbt:sbt-native-packager:1.5.2 (scalaVersion=2.12, sbtVersion=1.0)
[warn] com.lightbend.sbt:sbt-javaagent:0.1.5 (scalaVersion=2.12, sbtVersion=1.0)
[warn] com.typesafe.sbt:sbt-twirl:1.5.1 (scalaVersion=2.12, sbtVersion=1.0
[warn] com.typesafe.sbt:sbt-web:1.4.4 (scalaVersion=2.12, sbtVersion=1.0)
[warn]
[warn] Note: Unresolved dependencies path:
[error] sbt.librarymanagement.ResolveException: Error downloading com.typesafe.sbt:sbt-js-engine;sbtVersion=1.0;scalaVersion=2.12:1.2.3
[error] Not found
[error] Not found
[error] not found: C:\Users\eric.barnes\.ivy2\localcom.typesafe.sbt\sbt-js-engine\scala_2.12\sbt_1.0\1.2.3\ivys\ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-js-engine_2.12_1.0/1.2.3/sbt-js-engine-1.2.3.pom
[error] Error downloading com.typesafe.sbt:sbt-native-packager;sbtVersion=1.0;scalaVersion=2.12:1.5.2
[error] Not found
[error] Not found
[error] not found: C:\Users\eric.barnes\.ivy2\localcom.typesafe.sbt\sbt-native-packager\scala_2.12\sbt_1.0\1.5.2\ivys\ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.5.2/sbt-native-packager-1.5.2.pom
[error] Error downloading com.lightbend.sbt:sbt-javaagent;sbtVersion=1.0;scalaVersion=2.12:0.1.5
[error] Not found
[error] Not found
[error] not found: C:\Users\eric.barnes\.ivy2\localcom.lightbend.sbt\sbt-javaagent\scala_2.12\sbt_1.0\0.1.5\ivys\ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/lightbend/sbt/sbt-javaagent_2.12_1.0/0.1.5/sbt-javaagent-0.1.5.pom
[error] Error downloading com.typesafe.sbt:sbt-twirl;sbtVersion=1.0;scalaVersion=2.12:1.5.1
[error] Not found
[error] Not found
[error] not found: C:\Users\eric.barnes\.ivy2\localcom.typesafe.sbt\sbt-twirl\scala_2.12\sbt_1.0\1.5.1\ivys\ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-twirl_2.12_1.0/1.5.1/sbt-twirl-1.5.1.pom
[error] Error downloading com.typesafe.sbt:sbt-web;sbtVersion=1.0;scalaVersion=2.12:1.4.4
[error] Not found
[error] Not found
[error] not found: C:\Users\eric.barnes\.ivy2\localcom.typesafe.sbt\sbt-web\scala_2.12\sbt_1.0\1.4.4\ivys\ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-web_2.12_1.0/1.4.4/sbt-web-1.4.4.pom
[error] at lmcoursier.CoursierDependencyResolution.unresolvedWarningOrThrow(CoursierDependencyResolution.scala:258)
[error] at lmcoursier.CoursierDependencyResolution.$anonfun$update$38(CoursierDependencyResolution.scala:227)
[error] at scala.util.Either$LeftProjection.map(Either.scala:573)
[error] at lmcoursier.CoursierDependencyResolution.update(CoursierDependencyResolution.scala:227)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:60)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:59)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:133)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:73)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$20(LibraryManagement.scala:146)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:228)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:146)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:127)
[error] at sbt.util.Tracked$.$anonfun$inputChangedW$1(Tracked.scala:219)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:160)
[error] at sbt.Classpaths$.$anonfun$updateTask0$1(Defaults.scala:3678)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error] at sbt.Execute.work(Execute.scala:291)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
[error] at java.base/java.lang.Thread.run(Thread.java:831)
[error] (update) sbt.librarymanagement.ResolveException: Error downloading com.typesafe.sbt:sbt-js-engine;sbtVersion=1.0;scalaVersion=2.12:1.2.3
[error] Not found
[error] Not found
[error] not found: C:\Users\eric.barnes\.ivy2\localcom.typesafe.sbt\sbt-js-engine\scala_2.12\sbt_1.0\1.2.3\ivys\ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-js-engine_2.12_1.0/1.2.3/sbt-js-engine-1.2.3.pom
[error] Error downloading com.typesafe.sbt:sbt-native-packager;sbtVersion=1.0;scalaVersion=2.12:1.5.2
[error] Not found
[error] Not found
[error] not found: C:\Users\eric.barnes\.ivy2\localcom.typesafe.sbt\sbt-native-packager\scala_2.12\sbt_1.0\1.5.2\ivys\ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.5.2/sbt-native-packager-1.5.2.pom
[error] Error downloading com.lightbend.sbt:sbt-javaagent;sbtVersion=1.0;scalaVersion=2.12:0.1.5
[error] Not found
[error] Not found
[error] not found: C:\Users\eric.barnes\.ivy2\localcom.lightbend.sbt\sbt-javaagent\scala_2.12\sbt_1.0\0.1.5\ivys\ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/lightbend/sbt/sbt-javaagent_2.12_1.0/0.1.5/sbt-javaagent-0.1.5.pom
[error] Error downloading com.typesafe.sbt:sbt-twirl;sbtVersion=1.0;scalaVersion=2.12:1.5.1
[error] Not found
[error] Not found
[error] not found: C:\Users\eric.barnes\.ivy2\localcom.typesafe.sbt\sbt-twirl\scala_2.12\sbt_1.0\1.5.1\ivys\ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-twirl_2.12_1.0/1.5.1/sbt-twirl-1.5.1.pom
[error] Error downloading com.typesafe.sbt:sbt-web;sbtVersion=1.0;scalaVersion=2.12:1.4.4
[error] Not found
[error] Not found
[error] not found: C:\Users\eric.barnes\.ivy2\localcom.typesafe.sbt\sbt-web\scala_2.12\sbt_1.0\1.4.4\ivys\ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-web_2.12_1.0/1.4.4/sbt-web-1.4.4.pom
[error] Total time: 0 s, completed Oct 4, 2021, 12:16:17 PM
C:\Users\eric.barnes\Desktop\play-samples-play-scala-starter-
example\play-samples-play-scala-starter-example\project>
You need to run sbt in the parent directory, not in the project directory, i.e. in C:\...\play-samples-play-scala-starter-example\.
To give more context, SBT is a recursive build tool and the project directory contains metadata to build the main project but it's not aimed to be built directly.
Related
I need to get the sbt-start-script plugins installed, so in plugins.sbt file, I have
addSbtPlugin("com.typesafe.sbt" % "sbt-start-script" % "0.10.0"), however, when I run sbt commands in the project, I get the following errors:
[info] Updating
[info] Resolved dependencies
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.typesafe.sbt:sbt-start-script:0.10.0 (sbtVersion=1.0, scalaVersion=2.12)
[warn]
[warn] Note: Unresolved dependencies path:
[error] sbt.librarymanagement.ResolveException: Error downloading com.typesafe.sbt:sbt-start-script;sbtVersion=1.0;scalaVersion=2.12:0.10.0
[error] Not found
[error] Not found
[error] not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-start-script_2.12_1.0/0.10.0/sbt-start-script-0.10.0.pom
[error] not found: /Users/aucker/.ivy2/localcom.typesafe.sbt/sbt-start-script/scala_2.12/sbt_1.0/0.10.0/ivys/ivy.xml
[error] not found: https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-start-script/scala_2.12/sbt_1.0/0.10.0/ivys/ivy.xml
[error] not found: https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-start-script/scala_2.12/sbt_1.0/0.10.0/ivys/ivy.xml
[error] at lmcoursier.CoursierDependencyResolution.unresolvedWarningOrThrow(CoursierDependencyResolution.scala:258)
[error] at lmcoursier.CoursierDependencyResolution.$anonfun$update$38(CoursierDependencyResolution.scala:227)
[error] at scala.util.Either$LeftProjection.map(Either.scala:573)
[error] at lmcoursier.CoursierDependencyResolution.update(CoursierDependencyResolution.scala:227)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:60)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:59)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:133)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:73)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$20(LibraryManagement.scala:146)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:228
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:146)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:127)
[error] at sbt.util.Tracked$.$anonfun$inputChangedW$1(Tracked.scala:219
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:160)
[error] at sbt.Classpaths$.$anonfun$updateTask0$1(Defaults.scala:3678)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error] at sbt.Execute.work(Execute.scala:291)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[error] at java.base/java.lang.Thread.run(Thread.java:833)
[error] (update) sbt.librarymanagement.ResolveException: Error downloading com.typesafe.sbt:sbt-start-script;sbtVersion=1.0;scalaVersion=2.12:0.10.0
[error] Not found
[error] Not found
[error] not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-start-script_2.12_1.0/0.10.0/sbt-start-script-0.10.0.pom
[error] not found: /Users/aucker/.ivy2/localcom.typesafe.sbt/sbt-start-script/scala_2.12/sbt_1.0/0.10.0/ivys/ivy.xml
[error] not found: https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-start-script/scala_2.12/sbt_1.0/0.10.0/ivys/ivy.xml
[error] not found: https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-start-script/scala_2.12/sbt_1.0/0.10.0/ivys/ivy.xml
[warn] Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? (default: r)
I think the sbt-start-script is not accessible, and I find there is still the sbt-start-script source code on Github, so can I install the plugin by downloading the source code? If so, how?
It appears that SBT can't find any of the dependencies needed, as well as both blooper and sbt can't seem to connect online to download any dependencies. I have checked if I have a proxy, if there are any inconsistent versions that are conflicting, and have fully reinstalled SBT, NVM, VSCode and everything else involved. I can't seem to figure out why it won't build and why it can't find any of the dependencies.
EDIT: Added Build.sbt file
I've removed the https:// from the repo links, but they are there in the normal error.
build.sbt file:
import Dependencies._
ThisBuild / scalaVersion := "2.12.11"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / organization := "????"
ThisBuild / organizationName := "????"
lazy val root = (project in file("."))
.settings(
name := "ScalaJS-only",
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "1.0.0",
libraryDependencies += scalaTest % Test,
scalaJSUseMainModuleInitializer := true
).enablePlugins(ScalaJSPlugin)
Error Received:
PS C:\Users\????\Documents\Backend> sbt
[info] Loading settings for project Backend-build-build-build from metals.sbt ...
[info] Loading project definition from C:\Users\????\Documents\Backend\project\project\project
Oct 19, 2021 11:46:44 AM lmcoursier.internal.shaded.coursier.cache.shaded.org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
[info] Updating
[info] Resolved dependencies
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] ch.epfl.scala:sbt-bloop:1.4.9 (sbtVersion=1.0, scalaVersion=2.12)
[warn]
[warn] Note: Unresolved dependencies path:
[error] sbt.librarymanagement.ResolveException: Error downloading org.scala-sbt:sbt:1.3.5
[error] Not found
[error] Not found
[error] wrong checksum: C:\Users\????\Documents\Backend\null\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\sbt\1.3.5\sbt-1.3.5.pom (expected SHA-1 88a91f2b0e535d0c22bc0b9dcc9b586bc6b7a109 in C:\Users\????\Documents\Backend\null\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\sbt\1.3.5\.sbt-1.3.5.pom__sha1, got aea457bc4067a7c2080a43791cdeb78b072ff5bb)
[error] not found: C:\Users\????\.ivy2\local\org.scala-sbt\sbt\1.3.5\ivys\ivy.xml
[error] not found: repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-sbt/sbt/1.3.5/ivys/ivy.xml
[error] not found: repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/1.3.5/ivys/ivy.xml
[error] Error downloading ch.epfl.scala:sbt-bloop;sbtVersion=1.0;scalaVersion=2.12:1.4.9
[error] Not found
[error] Not found
[error] wrong checksum: C:\Users\????\Documents\Backend\null\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\sbt-bloop_2.12_1.0\1.4.9\sbt-bloop-1.4.9.pom (expected SHA-1 a9f21bf5ab89ca29d3acbac10c2a7ab74dbf8646 in C:\Users\????\Documents\Backend\null\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\sbt-bloop_2.12_1.0\1.4.9\.sbt-bloop-1.4.9.pom__sha1, got 3f431c638c39d83018ca88a348d1fb0e62db43a0)
[error] not found: C:\Users\????\.ivy2\local\ch.epfl.scala\sbt-bloop\scala_2.12\sbt_1.0\1.4.9\ivys\ivy.xml
[error] not found: repo.scala-sbt.org/scalasbt/sbt-plugin-releases/ch.epfl.scala/sbt-bloop/scala_2.12/sbt_1.0/1.4.9/ivys/ivy.xml
[error] not found: repo.typesafe.com/typesafe/ivy-releases/ch.epfl.scala/sbt-bloop/scala_2.12/sbt_1.0/1.4.9/ivys/ivy.xml
[error] Error downloading org.scala-lang:scala-library:2.12.10
[error] Not found
[error] Not found
[error] wrong checksum: C:\Users\????\Documents\Backend\null\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-library\2.12.10\scala-library-2.12.10.pom (expected SHA-1 368a4cdefd92e20800076e97e3b58e722a7f942a in C:\Users\????\Documents\Backend\null\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-library\2.12.10\.scala-library-2.12.10.pom__sha1, got c0f5237f49d4b4a955c368a646e7eebc8ca3fc84)
[error] not found: C:\Users\????\.ivy2\local\org.scala-lang\scala-library\2.12.10\ivys\ivy.xml
[error] not found: repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-lang/scala-library/2.12.10/ivys/ivy.xml
[error] not found: repo.typesafe.com/typesafe/ivy-releases/org.scala-lang/scala-library/2.12.10/ivys/ivy.xml
[error] at lmcoursier.CoursierDependencyResolution.unresolvedWarningOrThrow(CoursierDependencyResolution.scala:245)
[error] at lmcoursier.CoursierDependencyResolution.$anonfun$update$34(CoursierDependencyResolution.scala:214)
[error] at scala.util.Either$LeftProjection.map(Either.scala:573)
[error] at lmcoursier.CoursierDependencyResolution.update(CoursierDependencyResolution.scala:214)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:60)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:52)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:102)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:69)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$20(LibraryManagement.scala:115)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:228)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:115)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:96)
[error] at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:150)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:129)
[error] at sbt.Classpaths$.$anonfun$updateTask0$5(Defaults.scala:2947)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] at sbt.std.Transform$$anon$4.work(Transform.scala:67)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:281)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:19)
[error] at sbt.Execute.work(Execute.scala:290)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:281)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[error] at java.base/java.lang.Thread.run(Thread.java:834)
[error] (update) sbt.librarymanagement.ResolveException: Error downloading org.scala-sbt:sbt:1.3.5
[error] Not found
[error] Not found
[error] wrong checksum: C:\Users\????\Documents\Backend\null\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\sbt\1.3.5\sbt-1.3.5.pom (expected SHA-1 88a91f2b0e535d0c22bc0b9dcc9b586bc6b7a109 in C:\Users\????\Documents\Backend\null\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\sbt\1.3.5\.sbt-1.3.5.pom__sha1, got aea457bc4067a7c2080a43791cdeb78b072ff5bb)
[error] not found: C:\Users\????\.ivy2\local\org.scala-sbt\sbt\1.3.5\ivys\ivy.xml
[error] not found: repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-sbt/sbt/1.3.5/ivys/ivy.xml
[error] not found: repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/1.3.5/ivys/ivy.xml
[error] Error downloading ch.epfl.scala:sbt-bloop;sbtVersion=1.0;scalaVersion=2.12:1.4.9
[error] Not found
[error] Not found
[error] wrong checksum: C:\Users\????\Documents\Backend\null\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\sbt-bloop_2.12_1.0\1.4.9\sbt-bloop-1.4.9.pom (expected SHA-1 a9f21bf5ab89ca29d3acbac10c2a7ab74dbf8646 in C:\Users\????\Documents\Backend\null\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\sbt-bloop_2.12_1.0\1.4.9\.sbt-bloop-1.4.9.pom__sha1, got 3f431c638c39d83018ca88a348d1fb0e62db43a0)
[error] not found: C:\Users\????\.ivy2\local\ch.epfl.scala\sbt-bloop\scala_2.12\sbt_1.0\1.4.9\ivys\ivy.xml
[error] not found: repo.scala-sbt.org/scalasbt/sbt-plugin-releases/ch.epfl.scala/sbt-bloop/scala_2.12/sbt_1.0/1.4.9/ivys/ivy.xml
[error] not found: repo.typesafe.com/typesafe/ivy-releases/ch.epfl.scala/sbt-bloop/scala_2.12/sbt_1.0/1.4.9/ivys/ivy.xml
[error] Error downloading org.scala-lang:scala-library:2.12.10
[error] Not found
[error] Not found
[error] wrong checksum: C:\Users\????\Documents\Backend\null\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-library\2.12.10\scala-library-2.12.10.pom (expected SHA-1 368a4cdefd92e20800076e97e3b58e722a7f942a in C:\Users\????\Documents\Backend\null\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-library\2.12.10\.scala-library-2.12.10.pom__sha1, got c0f5237f49d4b4a955c368a646e7eebc8ca3fc84)
[error] not found: C:\Users\????\.ivy2\local\org.scala-lang\scala-library\2.12.10\ivys\ivy.xml
[error] not found: repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-lang/scala-library/2.12.10/ivys/ivy.xml
[error] not found: repo.typesafe.com/typesafe/ivy-releases/org.scala-lang/scala-library/2.12.10/ivys/ivy.xml
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
We upgrade an older system to newer Version of Play (Scala 2.12.8 -> 2.13.5, Play 2.6 -> 2.8)
and now I have this line of Code:
Ok.chunked(Source.fromPublisher(IterateeStreams.enumeratorToPublisher(MyEnumerator))).withHeaders(...)
In the new project the IterateeStreams seems to be missing, but when I try to add the dependency with
libraryDependencies += ....
"com.typesafe.play" %% "play-iteratees" % "2.6.1"
"com.typesafe.play" %% "play-iteratees-reactive-streams" % "2.6.1"
the download fails. I also tried the akka Streams described in https://www.playframework.com/documentation/2.8.x/StreamsMigration25
But IntelliJ also doesn't knows the "Stream" class. (import akka._ in the class).
I tried playing around with dependecies and stuff, but it seems I can't make it and now I am confused.
I'm still very new to Scala/Play (startet two weeks ago), so may be I just do some rookie-mistakes here...
Error:
$ compile
[info] Updating
[info] Resolved dependencies
[warn]
[warn] Note: Unresolved dependencies path:
[error] stack trace is suppressed; run last update for the full output
[error] (update) sbt.librarymanagement.ResolveException: Error downloading com.typesafe.play:play-iteratees-reactive-streams_2.13:2.6.1
[error] Not found
[error] Not found
[error] not found: /home/******/.ivy2/local/com.typesafe.play/play-iteratees-reactive-streams_2.13/2.6.1/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/typesafe/play/play-iteratees-reactive-streams_2.13/2.6.1/play-iteratees-reactive-streams_2.13-2.6.1.pom
[error] not found: https://dl.bintray.com/scalaz/releases/com/typesafe/play/play-iteratees-reactive-streams_2.13/2.6.1/play-iteratees-reactive-streams_2.13-2.6.1.pom
[error] not found: https://repo.akka.io/snapshots/com/typesafe/play/play-iteratees-reactive-streams_2.13/2.6.1/play-iteratees-reactive-streams_2.13-2.6.1.pom
[error] Total time: 4 s, completed 26.04.2021, 12:40:02
[myProject] $ last update
[debug] "not up to date. inChanged = true, force = false
[debug] Updating ...
[info] Updating
[info] Resolved dependencies
[warn]
[warn] Note: Unresolved dependencies path:
[error] sbt.librarymanagement.ResolveException: Error downloading com.typesafe.play:play-iteratees-reactive-streams_2.13:2.6.1
[error] Not found
[error] Not found
[error] not found: /home/*******/.ivy2/local/com.typesafe.play/play-iteratees-reactive-streams_2.13/2.6.1/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/typesafe/play/play-iteratees-reactive-streams_2.13/2.6.1/play-iteratees-reactive-streams_2.13-2.6.1.pom
[error] not found: https://dl.bintray.com/scalaz/releases/com/typesafe/play/play-iteratees-reactive-streams_2.13/2.6.1/play-iteratees-reactive-streams_2.13-2.6.1.pom
[error] not found: https://repo.akka.io/snapshots/com/typesafe/play/play-iteratees-reactive-streams_2.13/2.6.1/play-iteratees-reactive-streams_2.13-2.6.1.pom
[error] at lmcoursier.CoursierDependencyResolution.unresolvedWarningOrThrow(CoursierDependencyResolution.scala:247)
[error] at lmcoursier.CoursierDependencyResolution.$anonfun$update$35(CoursierDependencyResolution.scala:216)
[error] at scala.util.Either$LeftProjection.map(Either.scala:573)
[error] at lmcoursier.CoursierDependencyResolution.update(CoursierDependencyResolution.scala:216)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:60)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:52)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:102)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:69)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$20(LibraryManagement.scala:115)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:228)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:115)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:96)
[error] at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:150)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:129)
[error] at sbt.Classpaths$.$anonfun$updateTask0$5(Defaults.scala:2950)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] at sbt.std.Transform$$anon$4.work(Transform.scala:67)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:281)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:19)
[error] at sbt.Execute.work(Execute.scala:290)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:281)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[error] at java.base/java.lang.Thread.run(Thread.java:834)
[error] (update) sbt.librarymanagement.ResolveException: Error downloading com.typesafe.play:play-iteratees-reactive-streams_2.13:2.6.1
[error] Not found
[error] Not found
[error] not found: /home/******/.ivy2/local/com.typesafe.play/play-iteratees-reactive-streams_2.13/2.6.1/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/typesafe/play/play-iteratees-reactive-streams_2.13/2.6.1/play-iteratees-reactive-streams_2.13-2.6.1.pom
[error] not found: https://dl.bintray.com/scalaz/releases/com/typesafe/play/play-iteratees-reactive-streams_2.13/2.6.1/play-iteratees-reactive-streams_2.13-2.6.1.pom
[error] not found: https://repo.akka.io/snapshots/com/typesafe/play/play-iteratees-reactive-streams_2.13/2.6.1/play-iteratees-reactive-streams_2.13-2.6.1.pom
It looks like it's trying the default resolver first, and then the custom resolvers. But as far as I understood this, the default one should work.
Btw.: The same dependency was used in the old project in the same way.
I am going through https://www.squeryl.org/download.html to figure out how to import Squeryl using SBT. There it is written to add just one line libraryDependencies += "org.squeryl" %% "squeryl" % "0.9.5-6" in the build.sbt. However, when I add that same line in the file and then run sbt run on the terminal, I get thrown an error sbt.librarymanagement.ResolveException: Error downloading org.squeryl:squeryl_2.13:0.9.5-6. I searched in Google for that error but it looks like no one else has ever had that issue before. Can someone please help me out with what can be done to resolve the issue?
The full error is pasted below in case it helps:
$ sbt run
[info] Loading settings for project taxonomy-build from plugins.sbt ...
[info] Loading project definition from /Users/s1b01g3/durden-temp/durden/services/taxonomy/project
[info] Loading settings for project root from build.sbt ...
[info] Set current project to taxonomy (in build file:/Users/s1b01g3/durden-temp/durden/services/taxonomy/)
[info] Updating
[info] Resolved dependencies
[warn]
[warn] Note: Unresolved dependencies path:
[error] sbt.librarymanagement.ResolveException: Error downloading org.squeryl:squeryl_2.13:0.9.5-6
[error] Not found
[error] Not found
[error] not found: /Users/s1b01g3/.ivy2/local/org.squeryl/squeryl_2.13/0.9.5-6/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/org/squeryl/squeryl_2.13/0.9.5-6/squeryl_2.13-0.9.5-6.pom
[error] at lmcoursier.CoursierDependencyResolution.unresolvedWarningOrThrow(CoursierDependencyResolution.scala:245)
[error] at lmcoursier.CoursierDependencyResolution.$anonfun$update$34(CoursierDependencyResolution.scala:214)
[error] at scala.util.Either$LeftProjection.map(Either.scala:573)
[error] at lmcoursier.CoursierDependencyResolution.update(CoursierDependencyResolution.scala:214)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:60)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:52)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:102)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:69)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$20(LibraryManagement.scala:115)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:228)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:115)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:96)
[error] at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:150)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:129)
[error] at sbt.Classpaths$.$anonfun$updateTask0$5(Defaults.scala:2946)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] at sbt.std.Transform$$anon$4.work(Transform.scala:67)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:281)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:19)
[error] at sbt.Execute.work(Execute.scala:290)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:281)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[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] (update) sbt.librarymanagement.ResolveException: Error downloading org.squeryl:squeryl_2.13:0.9.5-6
[error] Not found
[error] Not found
[error] not found: /Users/s1b01g3/.ivy2/local/org.squeryl/squeryl_2.13/0.9.5-6/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/org/squeryl/squeryl_2.13/0.9.5-6/squeryl_2.13-0.9.5-6.pom
[error] Total time: 3 s, completed 17 Jan, 2020 4:19:54 PM
Any kind of help whatsoever would be highly appreciated. Thanks a lot.
The problem is that squeryl 0.9.5-6 was never released for Scala 2.13.
In such a case, just have a look at mvnrepository.com, searching for your artifact:
https://mvnrepository.com/artifact/org.squeryl/squeryl
The table tells you which version was published for Scala 2.13: 0.9.14
idea2018.3
Scala 2.12 (idea plugin)
play2.6
sbt using the bundled in idea
build.properties sbt.version=1.1.6 even I change the version to 2 still have this error
in index server/target/scala-2.12/resolution-cache/org.scala-sbt.temp produce a directory 1.1.7
This project is getting from subversion. It can be compiled successfully in my Mac, when import this project to my development machine(Windows 10) in company. when i run, get the following errors:
[info] Loading settings from plugins.sbt,scaffold.sbt ...
[info] Loading project definition from D:\server\project
[info] Loading settings from build.sbt ...
[info] Set current project to targetingvis_server (in build file:/D:/server/)
--- (Running the application, auto-reloading is enabled) ---
[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
Server started, use Alt+D to stop
[info] Compiling 12 Scala sources and 1 Java source to D:\server\target\scala-2.12\classes ...
[info] Attempting to fetch org.scala-sbt:compiler-bridge_2.12:1.1.7.
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.scala-sbt#compiler-bridge_2.12;1.1.7: public: unable to get resource for org/scala-sbt#compiler-bridge_2.12;1.1.7: res=https://repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_2.12/1.1.7/compiler-bridge_2.12-1.1.7.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.196.209:443
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] ## Exception when compiling 13 sources to D:\server\target\scala-2.12\classes
[error] The compiler bridge sources org.scala-sbt:compiler-bridge_2.12:1.1.7:compile could not be retrieved.
[error]
[error] Note: Unresolved dependencies path:
[error] org.scala-sbt:compiler-bridge_2.12:1.1.7
[error] +- org.scala-sbt.temp:temp-module-98ec89c315ed408f615fff2c4774286d17323b01:1.1.7
[error] sbt.internal.inc.ZincComponentCompiler.$anonfun$compileAndInstall$3(ZincComponentCompiler.scala:274)
[error] sbt.internal.inc.ZincComponentCompiler.$anonfun$compileAndInstall$3$adapted(ZincComponentCompiler.scala:264)
[error] sbt.io.IO$.withTemporaryDirectory(IO.scala:376)
[error] sbt.io.IO$.withTemporaryDirectory(IO.scala:383)
[error] sbt.internal.inc.ZincComponentCompiler.$anonfun$compileAndInstall$2(ZincComponentCompiler.scala:264)
[error] scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
[error] sbt.internal.util.BufferedLogger.bufferQuietly(BufferedLogger.scala:106)
[error] sbt.internal.inc.ZincComponentCompiler.$anonfun$compileAndInstall$1(ZincComponentCompiler.scala:264)
[error] sbt.internal.inc.ZincComponentCompiler.$anonfun$compileAndInstall$1$adapted(ZincComponentCompiler.scala:261)
[error] sbt.io.IO$.withTemporaryDirectory(IO.scala:376)
[error] sbt.io.IO$.withTemporaryDirectory(IO.scala:383)
[error] sbt.internal.inc.ZincComponentCompiler.compileAndInstall(ZincComponentCompiler.scala:261)
[error] sbt.internal.inc.ZincComponentCompiler.$anonfun$compiledBridgeJar$1(ZincComponentCompiler.scala:227)
[error] sbt.internal.inc.IfMissing$Define.run(IfMissing.scala:19)
[error] sbt.internal.inc.ZincComponentManager.createAndCache$1(ZincComponentManager.scala:46)
[error] sbt.internal.inc.ZincComponentManager.$anonfun$files$3(ZincComponentManager.scala:57)
[error] sbt.internal.inc.ZincComponentManager.getOrElse$1(ZincComponentManager.scala:38)
[error] sbt.internal.inc.ZincComponentManager.$anonfun$files$2(ZincComponentManager.scala:57)
[error] sbt.internal.inc.ZincComponentManager$$anon$1.call(ZincComponentManager.scala:87)
[error] xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:95)
[error] xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:80)
[error] xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:99)
[error] xsbt.boot.Using$.withResource(Using.scala:10)
[error] xsbt.boot.Using$.apply(Using.scala:9)
[error] xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:60)
[error] xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:50)
[error] xsbt.boot.Locks$.apply0(Locks.scala:31)
[error] xsbt.boot.Locks$.apply(Locks.scala:28)
[error] sbt.internal.inc.ZincComponentManager.lock(ZincComponentManager.scala:87)
[error] sbt.internal.inc.ZincComponentManager.$anonfun$lockSecondaryCache$1(ZincComponentManager.scala:84)
[error] scala.Option.map(Option.scala:146)
[error] sbt.internal.inc.ZincComponentManager.lockSecondaryCache(ZincComponentManager.scala:82)
[error] sbt.internal.inc.ZincComponentManager.fromSecondary$1(ZincComponentManager.scala:55)
[error] sbt.internal.inc.ZincComponentManager.$anonfun$files$6(ZincComponentManager.scala:61)
[error] sbt.internal.inc.ZincComponentManager.getOrElse$1(ZincComponentManager.scala:38)
[error] sbt.internal.inc.ZincComponentManager.$anonfun$files$5(ZincComponentManager.scala:61)
[error] sbt.internal.inc.ZincComponentManager$$anon$1.call(ZincComponentManager.scala:87)
[error] xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:95)
[error] xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:80)
[error] xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:99)
[error] xsbt.boot.Using$.withResource(Using.scala:10)
[error] xsbt.boot.Using$.apply(Using.scala:9)
[error] xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:60)
[error] xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:50)
[error] xsbt.boot.Locks$.apply0(Locks.scala:31)
[error] xsbt.boot.Locks$.apply(Locks.scala:28)
[error] sbt.internal.inc.ZincComponentManager.lock(ZincComponentManager.scala:87)
[error] sbt.internal.inc.ZincComponentManager.lockLocalCache(ZincComponentManager.scala:78)
[error] sbt.internal.inc.ZincComponentManager.files(ZincComponentManager.scala:61)
[error] application -
! #7ac7f7pgj - Internal server error, for (GET) [/] ->
play.sbt.PlayExceptions$UnexpectedException: Unexpected exception[InvalidComponent: The compiler bridge sources org.scala-sbt:compiler-bridge_2.12:1.1.7:compile could not be retrieved.
Note: Unresolved dependencies path:
org.scala-sbt:compiler-bridge_2.12:1.1.7
+- org.scala-sbt.temp:temp-module-98ec89c315ed408f615fff2c4774286d17323b01:1.1.7]
at play.sbt.run.PlayReload$.$anonfun$taskFailureHandler$1(PlayReload.scala:35)
at scala.Option.map(Option.scala:146)
at play.sbt.run.PlayReload$.taskFailureHandler(PlayReload.scala:28)
at play.sbt.run.PlayReload$.compileFailure(PlayReload.scala:24)
at play.sbt.run.PlayReload$.$anonfun$compile$3(PlayReload.scala:51)
at scala.util.Either$LeftProjection.map(Either.scala:573)
at play.sbt.run.PlayReload$.compile(PlayReload.scala:51)
at play.sbt.run.PlayRun$.$anonfun$playRunTask$4(PlayRun.scala:76)
at play.runsupport.Reloader.$anonfun$reload$1(Reloader.scala:412)
at play.runsupport.Reloader$$anon$5.run(Reloader.scala:50)
I had the same problem recently. This occurs when the SBT cannot access the internet and cannot download the compiler bridge library, e.g. due to proxy.
The compiler bridge is located in the .sbt folder (on Windows it is C:\Users\<user>\.sbt, on Linux: ~/.sbt).
As of SBT 1.6.2, the bridge libraries are in .sbt/1.0/zinc/org.scala-sbt/:
E.g. org.scala-sbt-compiler-bridge_2.11-1.5.7-bin_2.11.12__52.0-1.5.7_20210712T054328.jar
One way to fix it is to check if SBT can access the internet. If it is behind a proxy, configure the proxy settings.
The other way to fix it is to copy the .sbt folder from a working environment. This can work also for the offline use.