Giter Site home page Giter Site logo

zio-project-seed.g8's Introduction

ZIO Logo

Project Stage CI Release Snapshot Issues
Project stage CI Release Artifacts Snapshot Artifacts Average time to resolve an issue
Scaladoc Scaladex Discord Twitter Gitpod
Scaladoc Badge-Scaladex-page Badge-Discord Badge-Twitter Gitpod ready-to-code

Welcome to ZIO

ZIO is a zero-dependency Scala library for asynchronous and concurrent programming.

Powered by highly-scalable, non-blocking fibers that never waste or leak resources, ZIO lets you build scalable, resilient, and reactive applications that meet the needs of your business.

  • High-performance. Build scalable applications with minimal runtime overhead.
  • Type-safe. Use the full power of the Scala compiler to catch bugs at compile time.
  • Concurrent. Easily build concurrent apps without deadlocks, race conditions, or complexity.
  • Asynchronous. Write sequential code that looks the same whether it's asynchronous or synchronous.
  • Resource-safe. Build apps that never leak resources (including threads!), even when they fail.
  • Testable. Inject test services into your app for fast, deterministic, and type-safe testing.
  • Resilient. Build apps that never lose errors, and which respond to failure locally and flexibly.
  • Functional. Rapidly compose solutions to complex problems from simple building blocks.

To learn more about ZIO, see the following references:


Adopters

Following is a partial list of companies happily using ZIO in production to craft concurrent applications.

Want to see your company here? Submit a PR!

Sponsors

Ziverge

Ziverge is a leading contributor to ZIO.

Scalac

Scalac sponsors ZIO Hackathons and contributes work to multiple projects in ZIO ecosystem.

Septimal Mind

Septimal Mind sponsors work on ZIO Tracing and continuous maintenance.

YourKit

YourKit generously provides use of their monitoring and profiling tools to maximize the performance of ZIO applications.



Code of Conduct

See the Code of Conduct


Support

Come chat with us on Badge-Discord.


Legal

Copyright 2017 - 2024 John A. De Goes and the ZIO Contributors. All rights reserved.

zio-project-seed.g8's People

Contributors

987nabil avatar adamgfraser avatar chetkhatri avatar damianreeves avatar ghostdogpr avatar hochgi avatar jchoffmann avatar jczuchnowski avatar regis-leray avatar reibitto avatar renovate[bot] avatar scala-steward avatar sideeffffect avatar softinio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zio-project-seed.g8's Issues

Package names are not being properly filled

I was updating zio-shield to be uniform with the remaining projects in zio ecosystem and I noticed that sbt-build-info requires a package path and not the project name so:

.settings(buildInfoSettings("zio.shield")) instead of .settings(buildInfoSettings("zio-shield"))

There is a rule to make this in a "package" format but when prompted for a name and we put zio-arrow or zio-shield this is not populated as we expect.

Perhaps change the template to already fill in zio and just expect project name like arrow ?

Examples where this is a problem:

Build.sbt: .settings(buildInfoSettings("$name;format="lower,package"$"))
HelloWorld.scala: package $name;format="lower,package"$

Add Dotty Support

It would be great if Dotty was included in supported versions for new projects out of the box.

Windows sbt support

Observed Result

PS C:\Users\eric\Documents\GitHub> sbt new zio/zio-project-seed.g8
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
[info] Loading global plugins from C:\Users\eric\.sbt\1.0\plugins
[info] Set current project to github (in build file:/C:/Users/eric/Documents/GitHub/)
[info] Set current project to github (in build file:/C:/Users/eric/Documents/GitHub/)

Invalid path: src/main/g8/$name__norm$/shared/src/main/scala/$name;format="lower,package,packaged"$

Expected Result

PS C:\Users\eric\Documents\GitHub> sbt new scala/scala-seed.g8
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
[info] Loading global plugins from C:\Users\eric\.sbt\1.0\plugins
[info] Set current project to github (in build file:/C:/Users/eric/Documents/GitHub/)
[info] Set current project to github (in build file:/C:/Users/eric/Documents/GitHub/)

A minimal Scala project.

name [Scala Seed Project]:

Add multi-project support

Many projects in the ZIO community are multi-project and it is non-trivial for those who are unfamiliar with sbt to modify the project according to their multi-project needs. Let's help them out with a multi-project seed.

Upgrade to ZIO 2.0

ZIO 2.0 is at Milestone 4, with an RC expected in the next few weeks.
https://github.com/zio/zio/releases/tag/v2.0.0-M4

The API is nearly stable at this point, so any early migration work against this version should pay off towards the official 2.0 release.

The progress is being tracked here:
zio/zio#5470

The Stream Encoding work in progress is the only area where the API might still change before the RC.

We are actively working on a ScalaFix rule that will cover the bulk of the simple API changes:
https://github.com/zio/zio/blob/series/2.x/scalafix/rules/src/main/scala/fix/Zio2Upgrade.scala
We highly recommend starting with that, and then working through any remaining compilation errors :)

To assist with the rest of the migration, we have created this guide:
https://zio.dev/howto/migrate/zio-2.x-migration-guide/

If you would like assistance with the migration from myself or other ZIO contributors, please let us know!

[CRITICAL] Broken template

I'm unable to create new project using template(
I'm using macosx catalina 10.15.6

$ mkdir zmatters                                                                                                                                                            
$ cd zmatters                                                                                                                                                               
$ sbt new zio/zio-project-seed.g8     
[info] welcome to sbt 1.3.12 (Oracle Corporation Java 11.0.2)
[info] loading global plugins from /Users/alberthofmann/.sbt/1.0/plugins
[info] set current project to zmatters (in build file:/Users/alberthofmann/src/scala/zmatters/)
[info] set current project to zmatters (in build file:/Users/alberthofmann/src/scala/zmatters/)
name [ZIO Project]: zmatters

Exiting due to error in the template: /var/folders/yk/sw1brrtx1vb8sjv0wg_74y3r0000gn/T/giter8-2113315225506566
File: /var/folders/yk/sw1brrtx1vb8sjv0wg_74y3r0000gn/T/giter8-2113315225506566/src/main/g8/project/BuildHelper.scala, 215:22: '",
    crossScalaVersions := Seq(Scala211, Scala212, Scala213),
    scalaVersion in ThisBuild := Scala212,
    scalacOptions := stdOptions ++ extraOptions(scalaVersion.value, optimize = !isSnapshot.value),
    libraryDependencies ++= {
      if (isDotty.value)
        Seq(
          ("' came as a complete surprise to me

Newly created project from template can't compile

Actions:

$ sbt new zio/zio-project-seed.g8
input => "scratch zio project"
$ cd scratch-zio-project
$ sbt compile

raises:

[info] welcome to sbt 1.5.5 (Ubuntu Java 11.0.11)
[info] loading settings for project scratch-zio-project-build from plugins.sbt ...
[info] loading project definition from /home/pelle/scratch-zio-project/project
[info] compiling 1 Scala source to /home/pelle/scratch-zio-project/project/target/scala-2.12/sbt-1.0/classes ...
[info] done compiling
java.lang.ExceptionInInitializerError
	at $052bbb03fd7b59a720d0$.scratchZioProject$lzycompute(build.sbt:56)
	at $052bbb03fd7b59a720d0$.scratchZioProject(build.sbt:54)
	at $052bbb03fd7b59a720d0$.scratchZioProjectJVM$lzycompute(build.sbt:74)
	at $052bbb03fd7b59a720d0$.scratchZioProjectJVM(build.sbt:74)
	at $052bbb03fd7b59a720d0$.root$lzycompute(build.sbt:48)
	at $052bbb03fd7b59a720d0$.root(build.sbt:41)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at sbt.compiler.EvalDefinitions.$anonfun$values$1(Eval.scala:59)
	at scala.collection.immutable.List.map(List.scala:293)
	at sbt.compiler.EvalDefinitions.values(Eval.scala:59)
	at sbt.internal.DefinedSbtValues.$anonfun$values$1(LoadedSbtFile.scala:50)
	at scala.collection.immutable.List.flatMap(List.scala:366)
	at sbt.internal.DefinedSbtValues.values(LoadedSbtFile.scala:50)
	at sbt.internal.EvaluateConfigurations$.$anonfun$evaluateSbtFile$4(EvaluateConfigurations.scala:166)
	at sbt.internal.Load$.loadSettingsFile$1(Load.scala:1108)
	at sbt.internal.Load$.$anonfun$discoverProjects$2(Load.scala:1117)
	at scala.collection.MapLike.getOrElse(MapLike.scala:131)
	at scala.collection.MapLike.getOrElse$(MapLike.scala:129)
	at scala.collection.AbstractMap.getOrElse(Map.scala:65)
	at sbt.internal.Load$.memoLoadSettingsFile$1(Load.scala:1116)
	at sbt.internal.Load$.$anonfun$discoverProjects$4(Load.scala:1124)
	at scala.collection.immutable.List.map(List.scala:293)
	at sbt.internal.Load$.loadFiles$1(Load.scala:1124)
	at sbt.internal.Load$.discoverProjects(Load.scala:1138)
	at sbt.internal.Load$.discover$1(Load.scala:890)
	at sbt.internal.Load$.loadTransitive(Load.scala:944)
	at sbt.internal.Load$.loadProjects$1(Load.scala:727)
	at sbt.internal.Load$.$anonfun$loadUnit$11(Load.scala:730)
	at sbt.internal.Load$.timed(Load.scala:1393)
	at sbt.internal.Load$.$anonfun$loadUnit$1(Load.scala:730)
	at sbt.internal.Load$.timed(Load.scala:1393)
	at sbt.internal.Load$.loadUnit(Load.scala:689)
	at sbt.internal.Load$.$anonfun$builtinLoader$4(Load.scala:487)
	at sbt.internal.BuildLoader$.$anonfun$componentLoader$5(BuildLoader.scala:180)
	at sbt.internal.BuildLoader.apply(BuildLoader.scala:245)
	at sbt.internal.Load$.loadURI$1(Load.scala:549)
	at sbt.internal.Load$.loadAll(Load.scala:565)
	at sbt.internal.Load$.loadURI(Load.scala:495)
	at sbt.internal.Load$.load(Load.scala:474)
	at sbt.internal.Load$.$anonfun$apply$1(Load.scala:243)
	at sbt.internal.Load$.timed(Load.scala:1393)
	at sbt.internal.Load$.apply(Load.scala:243)
	at sbt.internal.Load$.defaultLoad(Load.scala:56)
	at sbt.BuiltinCommands$.liftedTree1$1(Main.scala:959)
	at sbt.BuiltinCommands$.doLoadProject(Main.scala:959)
	at sbt.BuiltinCommands$.$anonfun$loadProjectImpl$2(Main.scala:912)
	at sbt.Command$.$anonfun$applyEffect$4(Command.scala:150)
	at sbt.Command$.$anonfun$applyEffect$2(Command.scala:145)
	at sbt.Command$.process(Command.scala:189)
	at sbt.MainLoop$.$anonfun$processCommand$5(MainLoop.scala:245)
	at scala.Option.getOrElse(Option.scala:189)
	at sbt.MainLoop$.process$1(MainLoop.scala:245)
	at sbt.MainLoop$.processCommand(MainLoop.scala:278)
	at sbt.MainLoop$.$anonfun$next$5(MainLoop.scala:163)
	at sbt.State$StateOpsImpl$.runCmd$1(State.scala:289)
	at sbt.State$StateOpsImpl$.process$extension(State.scala:325)
	at sbt.MainLoop$.$anonfun$next$4(MainLoop.scala:163)
	at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
	at sbt.MainLoop$.next(MainLoop.scala:163)
	at sbt.MainLoop$.run(MainLoop.scala:144)
	at sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:119)
	at sbt.io.Using.apply(Using.scala:27)
	at sbt.MainLoop$.runWithNewLog(MainLoop.scala:112)
	at sbt.MainLoop$.runAndClearLast(MainLoop.scala:66)
	at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:51)
	at sbt.MainLoop$.runLogged(MainLoop.scala:42)
	at sbt.StandardMain$.runManaged(Main.scala:218)
	at sbt.xMain$.$anonfun$run$11(Main.scala:133)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at scala.Console$.withIn(Console.scala:230)
	at sbt.internal.util.Terminal$.withIn(Terminal.scala:569)
	at sbt.internal.util.Terminal$.$anonfun$withStreams$1(Terminal.scala:350)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at scala.Console$.withOut(Console.scala:167)
	at sbt.internal.util.Terminal$.$anonfun$withOut$2(Terminal.scala:559)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at scala.Console$.withErr(Console.scala:196)
	at sbt.internal.util.Terminal$.withOut(Terminal.scala:559)
	at sbt.internal.util.Terminal$.withStreams(Terminal.scala:350)
	at sbt.xMain$.withStreams$1(Main.scala:87)
	at sbt.xMain$.run(Main.scala:121)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at sbt.internal.XMainConfiguration.run(XMainConfiguration.java:56)
	at sbt.xMain.run(Main.scala:46)
	at xsbt.boot.Launch$.$anonfun$run$1(Launch.scala:149)
	at xsbt.boot.Launch$.withContextLoader(Launch.scala:176)
	at xsbt.boot.Launch$.run(Launch.scala:149)
	at xsbt.boot.Launch$.$anonfun$apply$1(Launch.scala:44)
	at xsbt.boot.Launch$.launch(Launch.scala:159)
	at xsbt.boot.Launch$.apply(Launch.scala:44)
	at xsbt.boot.Launch$.apply(Launch.scala:21)
	at xsbt.boot.Boot$.runImpl(Boot.scala:78)
	at xsbt.boot.Boot$.run(Boot.scala:73)
	at xsbt.boot.Boot$.main(Boot.scala:21)
	at xsbt.boot.Boot.main(Boot.scala)
Caused by: java.util.NoSuchElementException: key not found: 2.12
	at scala.collection.immutable.Map$Map3.apply(Map.scala:325)
	at BuildHelper$.<init>(BuildHelper.scala:24)
	at BuildHelper$.<clinit>(BuildHelper.scala)
	... 101 more
[error] java.lang.ExceptionInInitializerError
[error] Use 'last' for the full log.

Add Cross-Platform Support

Currently it looks like this template does not support ScalaJS. I think we want to provide cross-platform and cross-version support across ZIO projects wherever possible. Having this as part of the template would be one less thing contributors have to worry about and would minimize effort for adding it later and risks that it will not be done in the optimal way.

Not work on windows

D:\home\projects\ztemplate>sbt new zio/zio-project-seed.g8
←[0m[←[0m←[0minfo←[0m] ←[0m←[0mwelcome to sbt 1.6.2 (GraalVM Community Java 11.0.11)←[0m
←[0m[←[0m←[0minfo←[0m] ←[0m←[0mloading global plugins from C:\Users\philip\.sbt\1.0\plugins←[0m
←[0m[←[0m←[0minfo←[0m] ←[0m←[0mset current project to new (in build file:/C:/Users/philip/AppData/Local/Temp/sbt_bba3899d/new/)←[0m

Invalid path: src/main/g8/$name;format="space,hyphen,lower"$


D:\home\projects\ztemplate>

Clean build error - probably needs documentation of requirements or fixing?

https://repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_2.12/1.5.7/compiler-bridge_2.12-1.5.7-sources.jar
100.0% [##########] 52.5 KiB (146.1 KiB / s)
[info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.14. Compiling...
[info] Compilation completed in 16.316s.
/Users/jrl980/Workspace/zio-experiment/build.sbt:45: error: No implicit for Remove.Value[explicitdeps.ModuleFilter, sbt.librarymanagement.ModuleFilter] found,
so sbt.librarymanagement.ModuleFilter cannot be removed from explicitdeps.ModuleFilter
unusedCompileDependenciesFilter -= moduleFilter("org.scala-js", "scalajs-library")
^
sbt.compiler.EvalException: Type error in expression
[error] sbt.compiler.EvalException: Type error in expression

docs directory is incorrect

sbt new zio/zio-project-seed 

Generates:

lazy val docs = project
  .in(file("foo-docs"))

The actual directory is docs

fresh generated template does not compile

Due to incompatible / missing dependencies.
errors encountered:

$ sbt
[info] [launcher] getting org.scala-sbt sbt 1.5.5  (this may take some time)...
downloading https://repo1.maven.org/maven2/org/scala-sbt/main_2.12/1.5.5/main_2.12-1.5.5.jar ...
…
java.lang.ExceptionInInitializerError
	at $f083fd8911b72ac8913d$.zioSandbox$lzycompute(build.sbt:56)
	at $f083fd8911b72ac8913d$.zioSandbox(build.sbt:54)
	…
Caused by: java.util.NoSuchElementException: key not found: 2.12
	at scala.collection.immutable.Map$Map3.apply(Map.scala:325)
	at BuildHelper$.<init>(BuildHelper.scala:24)
	at BuildHelper$.<clinit>(BuildHelper.scala)
	... 105 more
[error] java.lang.ExceptionInInitializerError
[error] Use 'last' for the full log.

Then I fixed the 2.12 version in the ci.yaml file and:

sbt:root> compile
[info] Updating 
https://repo1.maven.org/maven2/org/scala-native/javalib_native0.4_2.13/0.4.0/javalib_native0.4_2.13-0.4.0.pom
…
[error] stack trace is suppressed; run last zioSandboxJVM / update for the full output
[error] stack trace is suppressed; run last zioSandboxJS / update for the full output
[error] stack trace is suppressed; run last zioSandboxNative / update for the full output
[error] (zioSandboxJVM / update) sbt.librarymanagement.ResolveException: Error downloading com.github.ghik:silencer-lib_2.13.6:1.7.3
[error]   Not found
[error]   Not found
[error]   not found: /home/hochgi/.ivy2/local/com.github.ghik/silencer-lib_2.13.6/1.7.3/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/com/github/ghik/silencer-lib_2.13.6/1.7.3/silencer-lib_2.13.6-1.7.3.pom
[error] (zioSandboxJS / update) sbt.librarymanagement.ResolveException: Error downloading com.github.ghik:silencer-lib_2.13.6:1.7.3
[error]   Not found
[error]   Not found
[error]   not found: /home/hochgi/.ivy2/local/com.github.ghik/silencer-lib_2.13.6/1.7.3/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/com/github/ghik/silencer-lib_2.13.6/1.7.3/silencer-lib_2.13.6-1.7.3.pom
[error] (zioSandboxNative / update) sbt.librarymanagement.ResolveException: Error downloading com.github.ghik:silencer-lib_2.13.6:1.7.3
[error]   Not found
[error]   Not found
[error]   not found: /home/hochgi/.ivy2/local/com.github.ghik/silencer-lib_2.13.6/1.7.3/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/com/github/ghik/silencer-lib_2.13.6/1.7.3/silencer-lib_2.13.6-1.7.3.pom
[error] Total time: 4 s, completed 19 Jul 2021, 13:25:26
sbt:root> last zioSandboxJVM / update
[debug] not up to date. inChanged = true, force = false
[debug] Updating zioSandboxJVM...
[info] Updating 
[info] Resolved  dependencies
[warn] 
[warn] 	Note: Unresolved dependencies path:
[error] sbt.librarymanagement.ResolveException: Error downloading com.github.ghik:silencer-lib_2.13.6:1.7.3
[error]   Not found
[error]   Not found
[error]   not found: /home/hochgi/.ivy2/local/com.github.ghik/silencer-lib_2.13.6/1.7.3/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/com/github/ghik/silencer-lib_2.13.6/1.7.3/silencer-lib_2.13.6-1.7.3.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:1128)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[error] 	at java.base/java.lang.Thread.run(Thread.java:829)
[error] (zioSandboxJVM / update) sbt.librarymanagement.ResolveException: Error downloading com.github.ghik:silencer-lib_2.13.6:1.7.3
[error]   Not found
[error]   Not found
[error]   not found: /home/hochgi/.ivy2/local/com.github.ghik/silencer-lib_2.13.6/1.7.3/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/com/github/ghik/silencer-lib_2.13.6/1.7.3/silencer-lib_2.13.6-1.7.3.pom

So I updated the silencer plugin version and:

sbt:root> +compile
[info] Setting Scala version to 2.11.12 on 4 projects.
…
error] stack trace is suppressed; run last zioSandboxJVM / update for the full output
[error] stack trace is suppressed; run last zioSandboxJS / update for the full output
[error] stack trace is suppressed; run last zioSandboxNative / update for the full output
[error] (zioSandboxJVM / update) sbt.librarymanagement.ResolveException: Error downloading org.typelevel:kind-projector_2.12.14:0.11.3
[error]   Not found
[error]   Not found
[error]   not found: /home/hochgi/.ivy2/local/org.typelevel/kind-projector_2.12.14/0.11.3/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/typelevel/kind-projector_2.12.14/0.11.3/kind-projector_2.12.14-0.11.3.pom
…

Then I updated the kind-projector plugin:

sbt:root> +compile
[info] Setting Scala version to 2.11.12 on 4 projects.
…
[error] stack trace is suppressed; run last zioSandboxJVM / update for the full output
[error] stack trace is suppressed; run last zioSandboxJS / update for the full output
[error] stack trace is suppressed; run last zioSandboxNative / update for the full output
[error] (zioSandboxJVM / update) sbt.librarymanagement.ResolveException: Error downloading org.scalameta:semanticdb-scalac_2.12.14:4.4.10
[error]   Not found
[error]   Not found
[error]   not found: /home/hochgi/.ivy2/local/org.scalameta/semanticdb-scalac_2.12.14/4.4.10/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/scalameta/semanticdb-scalac_2.12.14/4.4.10/semanticdb-scalac_2.12.14-4.4.10.pom
[error] (zioSandboxJS / update) sbt.librarymanagement.ResolveException: Error downloading org.scalameta:semanticdb-scalac_2.12.14:4.4.10
[error]   Not found
[error]   Not found
[error]   not found: /home/hochgi/.ivy2/local/org.scalameta/semanticdb-scalac_2.12.14/4.4.10/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/scalameta/semanticdb-scalac_2.12.14/4.4.10/semanticdb-scalac_2.12.14-4.4.10.pom
[error] (zioSandboxNative / update) sbt.librarymanagement.ResolveException: Error downloading org.scalameta:semanticdb-scalac_2.12.14:4.4.10
[error]   Not found
[error]   Not found
[error]   not found: /home/hochgi/.ivy2/local/org.scalameta/semanticdb-scalac_2.12.14/4.4.10/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/scalameta/semanticdb-scalac_2.12.14/4.4.10/semanticdb-scalac_2.12.14-4.4.10.pom
[error] Total time: 1 s, completed 19 Jul 2021, 13:31:40

And the semanticdb-scalac version seems to be derived from scalafix plugin, so I updated that as well:

sbt:root> +compile
[info] Setting Scala version to 2.11.12 on 4 projects.
…
[error] stack trace is suppressed; run last zioSandboxJVM / update for the full output
[error] (zioSandboxJVM / update) sbt.librarymanagement.ResolveException: Error downloading dev.zio:zio_3:1.0.7
[error]   Not found
[error]   Not found
[error]   not found: /home/hochgi/.ivy2/local/dev.zio/zio_3/1.0.7/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/dev/zio/zio_3/1.0.7/zio_3-1.0.7.pom
[error] Total time: 0 s, completed 19 Jul 2021, 13:35:14

But zio 1.0.7 isn't published against scala, 3.0.0 but against an older RC version, so I updated zio version as well:

sbt:root> ;reload;+compile
[info] welcome to sbt 1.5.5 (Ubuntu Java 11.0.11)
…
[success] Total time: 14 s, completed 19 Jul 2021, 13:37:52
[info] Reapplying settings...
[info] set current project to root (in build file:/home/hochgi/dev/zio-sandbox/)
sbt:root> 

and finally build is working properly.
Will open a PR with these changes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.