Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 26 21:27

    darkfrog26 on master

    Migration of DocumentCollection… (compare)

  • Jan 26 21:22

    darkfrog26 on scalatest-3.2.11

    (compare)

  • Jan 26 21:22

    darkfrog26 on master

    Update scalatest to 3.2.11 Merge pull request #53 from out… (compare)

  • Jan 26 21:22
    darkfrog26 closed #53
  • Jan 26 21:22

    darkfrog26 on sbt-1.6.1

    (compare)

  • Jan 26 21:22
    darkfrog26 closed #52
  • Jan 26 20:55
    darkfrog26 opened #53
  • Jan 26 20:55

    darkfrog26 on scalatest-3.2.11

    Update scalatest to 3.2.11 (compare)

  • Jan 26 20:55
    darkfrog26 opened #52
  • Jan 26 20:55

    darkfrog26 on sbt-1.6.1

    Update sbt to 1.6.1 (compare)

  • Jan 26 20:53

    darkfrog26 on sbt-scalajs-1.8.0

    (compare)

  • Jan 26 20:53

    darkfrog26 on master

    Update sbt-scalajs, scalajs-com… Merge pull request #37 from out… (compare)

  • Jan 26 20:53
    darkfrog26 closed #37
  • Jan 26 20:53

    darkfrog26 on fs2-core-3.2.4

    (compare)

  • Jan 26 20:53

    darkfrog26 on master

    Update fs2-core to 3.2.4 Merge branch 'master' into upda… Merge pull request #41 from out… (compare)

  • Jan 26 20:53
    darkfrog26 closed #41
  • Jan 26 20:52
    darkfrog26 synchronize #41
  • Jan 26 20:52

    darkfrog26 on fs2-core-3.2.4

    Update sbt to 1.5.8 Update arangodb-java-driver to … Update cats-effect to 3.3.4 and 11 more (compare)

  • Jan 26 20:52

    darkfrog26 on sbt-1.5.8

    (compare)

  • Jan 26 20:52

    darkfrog26 on master

    Update sbt to 1.5.8 Merge pull request #42 from out… (compare)

elyphas
@elyphas
these are my libraries:
libraryDependencies ++= Seq(
  "com.outr" %% "scribe" % "3.5.3",
  "com.typesafe.akka" %% "akka-http" % akkaVer,
  "org.typelevel" %% "cats-effect" % "2.0.0",
  "org.typelevel" %% "cats-core" % "2.0.0",
  "org.tpolecat" %% "doobie-core"      % "0.9.0",
  "org.tpolecat" %% "doobie-postgres"  % "0.9.0",
  "org.tpolecat" %% "doobie-scalatest" % "0.9.0" % "test",
  "io.suzaku" %% "boopickle" % "1.3.2",
  "com.github.cornerman.mycelium" %% "mycelium" % "8395543", 
  "io.monix" %% "monix" % "3.2.2",
  "com.outr" %% "scarango-driver" % "2.4.2",
)
Matt Hicks
@darkfrog26
Try removing the explicit dependency on scribe and see if it resolves the problem.
elyphas
@elyphas
ok
although that was my first tried add the dependency explicitly over scribe
elyphas
@elyphas
same problem.
Matt Hicks
@darkfrog26
Scarango has a dependency on Scribe 3.0.4
2.7.13
I will try to send a PR to mycelium
Matt Hicks
@darkfrog26
yeah, I bet that's your problem
I'll try to get Scarango updated to the latest version of Scribe
elyphas
@elyphas
and sorry, because I didn't find the dependency on scarango over scribe I didn't make a good seek
thank you very much, :)
Matt Hicks
@darkfrog26
no problem
Scribe has gone through some breaking changes in the last few releases and that appears to be the cause
elyphas
@elyphas
ah ok,
Matt Hicks
@darkfrog26
I believe it's fairly stable now though, and I do my best to avoid breaking changes
elyphas
@elyphas
great, :)
elyphas
@elyphas
@darkfrog26 ; it was the scribe 's version
Matt Hicks
@darkfrog26
FYI, youi has a better communication layer for talking over WebSockets than the lib you're using. :-p
instead of creating request / response classes, you simply create a trait that is shared that defines the methods representing the end-points
drastically reduces the number of adhoc classes
Also, if you're interested in contributing to a prototype database that is FAR faster than ArangoDB: https://github.com/outr/lightdb/blob/master/all/src/test/scala/spec/SimpleSpec.scala
elyphas
@elyphas
@darkfrog26 , thank you, i will try, :)
elyphas
@elyphas
And yes i am interesting i will try my best
elyphas
@elyphas
Wow, scala instead of c++
elyphas
@elyphas

Hi, Suddenly I am getting this error:

[error] java.lang.NoSuchMethodError: 'scala.concurrent.Future moduload.Moduload$.load(scala.concurrent.ExecutionContext)'
[error] profig.ProfigJVMSupport.initProfig(ProfigJVMSupport.scala:41)
[error] profig.ProfigJVMSupport.initProfig$(ProfigJVMSupport.scala:39)
[error] profig.package$.initProfig(package.scala:1)
[error] profig.Profig$.init(Profig.scala:97)
[error] profig.ProfigPathJVM$.initConfiguration$extension(ProfigPathJVM.scala:49)
[error] profig.ProfigPathJVM$.initConfigurationBlocking$extension(ProfigPathJVM.scala:38)
[error] com.outr.arango.AQLMacros$.process(AQLMacros.scala:99)
[error] com.outr.arango.AQLMacros$.aqlu(AQLMacros.scala:21)

any idea? please

Matt Hicks
@darkfrog26
Another dependency issue
Scarango depends on an older version of Profig which depends on an older version of Moduload
you need to figure out what dependency is pulling in a newer version of Profig
elyphas
@elyphas
@darkfrog26 ; thank you.
I thought Profig was a file
Matt Hicks
@darkfrog26
it's a configuration library like typesafe-config or Pureconfig
elyphas
@elyphas
@darkfrog26 ; thank you, I am searching for the problem, :)
elyphas
@elyphas
ok, I think I made a mistake
You told the version and the problem
but I didn't realize that I use a more recent version on mycelium
I am compiling mycelium with the version that scarango use of scribe
elyphas
@elyphas
problem solved
sorry, I just took the version that was on the page of scribe and didn't confirm with the version you gave me,
Matt Hicks
@darkfrog26
@elyphas nice, glad you got it figured out
elyphas
@elyphas

@darkfrog26 ; Hi, Would You give any idea to process this?, Please.
I had not used circe before and I have some troubles to make it work my project.
I have this error:

could not find implicit value for parameter e: io.circe.Encoder[types_scarango.Recipe]
ompile / compileIncremental 4s
[error]     override val serialization: Serialization[Recipe] = Serialization.auto[Recipe]

I tried some implicits but didn worked because I think is related to java.util.Date.
this is the code: code

Matt Hicks
@darkfrog26
yeah, probably need to create an implicit encoder for Date in that class above serialization
elyphas
@elyphas
@darkfrog26 ; sorry, I tried this didn't worked
import io.circe._
import io.circe.generic.auto._
import io.circe.syntax._

case class Recipe ( fiscal_period: Int, folio: String,
      date: Date,  id_area: Option[String],  area: Option[String],
      servicio: Option[String],  id_patient: Option[String], patient_name: Option[String],
      file_id: Option[String], physician_name: Option[String], diagnostic: Option[String],
      recomendation: Option[String], observation: Option[String] ) extends Document[Recipe]

object Recipe extends DocumentModel[Recipe] {

    implicit val dateEncoder: Encoder[Date] = Encoder.instance( a => "01/01/2021".asJson )
    implicit val dateDencoder: Decoder[Date] = Decoder.instance( a => a.as[Long].map(new Date(_)))

    override def indexes: List[Index] = Nil

    override val collectionName: String = "tblrecipe"
    override val serialization: Serialization[Recipe] = Serialization.auto[Recipe]
}
Matt Hicks
@darkfrog26
try removing Date and see if it compiles then?
elyphas
@elyphas
@darkfrog26 ; yes I tried String it compiles
Matt Hicks
@darkfrog26
Honestly, I wouldn't use Date anyway in the object...I always just use Long as it's lighter-weight and better represents time since a date can reflect timezone
but, if you want the above to work, I don't see why it shouldn't...are you getting the same compile error?
elyphas
@elyphas
not
but maybe I could try to use Long