Skip to content

Instantly share code, notes, and snippets.

ws_analytics[ERROR] [WARNING] IOApp `main` is running on a thread other than the main thread.
ws_analytics[ERROR] This may prevent correct resource cleanup after `main` completes.
ws_analytics[ERROR] This condition could be caused by executing `run` in an interactive sbt session with `fork := false`.
ws_analytics[ERROR] Set `Compile / run / fork := true` in this project to resolve this.
ws_analytics[ERROR]
ws_analytics[ERROR] To silence this warning set the system property:
ws_analytics[ERROR] `-Dcats.effect.warnOnNonMainThreadDetected=false`.
ws_analytics[ERROR]
/**From this code*/
import scala.deriving.Mirror
import jsonvalue.*
import scala.compiletime.{constValue, erasedValue}
case class Employee ( name: String, age: Int )
trait HelpersLabelledGeneric:
trait JsonEncoder[A]:
import scala.deriving.Mirror
import jsonvalue.*
import scala.compiletime.{constValue, erasedValue}
case class Employee ( name: String, age: Int )
trait HelpersLabelledGeneric:
trait JsonEncoder[A]:
[error] 1 error(s) were encountered during the merge:
[error] java.lang.RuntimeException:
[error] Deduplicate found different file contents in the following:
[error] Jar name = arrow-format-12.0.1.jar, jar org = org.apache.arrow, entry target = arrow-git.properties
[error] Jar name = arrow-memory-core-12.0.1.jar, jar org = org.apache.arrow, entry target = arrow-git.properties
[error] Jar name = arrow-memory-netty-12.0.1.jar, jar org = org.apache.arrow, entry target = arrow-git.properties
[error] Jar name = arrow-vector-12.0.1.jar, jar org = org.apache.arrow, entry target = arrow-git.properties
[error] at sbtassembly.Assembly$.merge(Assembly.scala:624)
[error] at sbtassembly.Assembly$.$anonfun$assemble$36(Assembly.scala:330)
[error] at sbtassembly.Assembly$.timed$1(Assembly.scala:228)
21 errors were encountered during merge
[error] java.lang.RuntimeException: deduplicate: different file contents found in the following:
[error] /home/elyphas/.cache/coursier/v1/https/repo1.maven.org/maven2/io/netty/netty-all/4.1.96.Final/netty-all-4.1.96.Final.jar:META-INF/io.netty.versions.properties
[error] /home/elyphas/.cache/coursier/v1/https/repo1.maven.org/maven2/io/netty/netty-buffer/4.1.96.Final/netty-buffer-4.1.96.Final.jar:META-INF/io.netty.versions.properties
[error] /home/elyphas/.cache/coursier/v1/https/repo1.maven.org/maven2/io/netty/netty-codec-http/4.1.96.Final/netty-codec-http-4.1.96.Final.jar:META-INF/io.netty.versions.properties
[error] /home/elyphas/.cache/coursier/v1/https/repo1.maven.org/maven2/io/netty/netty-codec-http2/4.1.96.Final/netty-codec-http2-4.1.96.Final.jar:META-INF/io.netty.versions.properties
[error] /home/elyphas/.cache/coursier/v1/https/repo1.maven.org/maven2/io/netty/netty-codec-socks/4.1.96.Final/netty-codec-socks-4.1.96.Final.jar:META-INF/io.netty.versions.properties
package server_routes
import cats.effect.IO
import org.http4s.StaticFile
import org.http4s.HttpRoutes
import org.http4s.Method.GET
import org.http4s.dsl.io._
object StaticFilesRoutes {
//package manik1.manik1
import cats.implicits._
import cats.effect.{IO, IOApp}
import org.http4s._
import org.http4s.ember.server.EmberServerBuilder
import org.http4s.implicits._
import org.http4s.server.middleware.{ErrorAction, ErrorHandling}
import com.comcast.ip4s.{Host, IpLiteralSyntax, Port}
trait Repository2 {
type Input
type Output
val instance: Output
private val scheme: String = dom.window.location.protocol
private val host = dom.window.location.host
protected val rootPath: Uri = Uri.unsafeFromString(s"$scheme//$host")
protected val client: Client[IO] = FetchClientBuilder[IO].create
protected val endPoint: String
object FullRequestHandler {
implicit val executionContext = scala.concurrent.ExecutionContext.Implicits.global
type Payload = ByteBuffer
val handler = new FullRequestHandler[ByteBuffer, String, String, Option[String]] {
val clients = mutable.HashSet.empty[NotifiableClient[String, Option[String]]]
val events = mutable.ArrayBuffer.empty[String]
override val initialState = Future.successful(None)
package myceliumHandler
import scarango_catalogs.{CInputs, CItemInputs, CItemRecipe, CQueryArticulo, CRecipe, CTableScarango, database}
import scarango_catalogs.{CArticulo, CItemsMyCelium}
import scarango_catalogs.ActionStock._
import create_pdf_files.CreatePdf
import types_scarango.TypeDocument
import types_scarango.{Articulo, ArticuloStock, Inputs, ItemInput, ItemRecipe, ItemRequisition, Recipe, Requisition, User}
import types_scarango.ItemTypeTC
import scarango_catalogs.{CArticuloStock, CItemRecipeMyCelium, CStock2, CTypeDocument, CUsers}