Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:46
    darkfrog26 opened #99
  • 00:46

    darkfrog26 on cats-effect-3.3.12

    Update cats-effect to 3.3.12 (compare)

  • 00:46
    darkfrog26 opened #98
  • 00:45

    darkfrog26 on jackson-dataformat-velocypack-3.0.1

    Update jackson-dataformat-veloc… (compare)

  • 00:45
    darkfrog26 opened #97
  • 00:45

    darkfrog26 on arangodb-java-driver-6.17.0

    Update arangodb-java-driver to … (compare)

  • May 01 00:55
    darkfrog26 opened #96
  • May 01 00:55

    darkfrog26 on scalatest-3.2.12

    Update scalatest to 3.2.12 (compare)

  • Apr 15 02:23
    darkfrog26 commented #94
  • Apr 15 02:22
    darkfrog26 closed #94
  • Apr 15 02:22

    darkfrog26 on master

    Removed scribe-slf4j dependency… (compare)

  • Apr 15 02:21

    darkfrog26 on master

    Update scala3-library, ... to 3… Merge pull request #95 from out… (compare)

  • Apr 15 02:21

    darkfrog26 on scala3-library-3.1.2

    (compare)

  • Apr 15 02:21
    darkfrog26 closed #95
  • Apr 15 02:20
    darkfrog26 opened #95
  • Apr 15 02:19

    darkfrog26 on scala3-library-3.1.2

    Update scala3-library, ... to 3… (compare)

  • Apr 15 02:18

    darkfrog26 on master

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

  • Apr 15 02:18

    darkfrog26 on fs2-core-3.2.7

    (compare)

  • Apr 15 02:18
    darkfrog26 closed #90
  • Apr 15 02:18
    darkfrog26 synchronize #90
Chandan Rajah
@crajah
@darkfrog26 ... i'm unable to compile even 29 files. It keeps saying Java Heap Exceeded. Even with -Xmx16G . Is there any optimisation that I could do to reduce implicit resolution.
Matt Hicks
@darkfrog26
@crajah would you be willing to share your project with me so I can have a look? I have some extremely large projects and never have any trouble.
elyphas
@elyphas

hi, someone could help me, please.
I trying to use scarango but I have this error:

[error] (run-main-2) java.lang.RuntimeException: Failed to decode from {
[error]   
[error] }
[error] java.lang.RuntimeException: Failed to decode from {

just at the begining.

val db = ArangoDB()
I tried
val db = ArangoDB(credentials = Some(Credentials("root", "root")))
same results
firts with openjdk 11 then openjdk 8
same results

this is a more detailed errors: https://gist.github.com/elyphas/4358ed4ff43218242a4a16926b2ed4e2

thank you in advance.

elyphas
@elyphas
problem solved
elyphas
@elyphas

Someone could tell me?, please why I get this error:

exception during macro expansion: Response processing error
[error]                   .query ( aql"FOR p IN testChangos RETURN p" )
[error]                            ^

with this code:

val db = new ArangoDB(credentials = Some(Credentials("root", "jctaurys")))
  case class User( name: String, age: Int, observation: String, _id: Id[User] = User.id() ) extends Document[User]

  object User extends DocumentModel[User] {
      override def indexes: List[Index] = Nil      
      override val collectionName: String = "testChangos"
      override val serialization: Serialization[User] = Serialization.auto[User]
  }

  object database extends Graph(databaseName = "example") {   
      val testChangos: DocumentCollection[User] = vertex[User]
  }

  for {
      _ <- database.init()
      result <- database.testChangos
                  .query ( aql"FOR p IN testChangos RETURN p" )         
                  .results.map { users =>  println ( users.map ( _.name ).toSet ) }
  } yield {   println ( result )  }
elyphas
@elyphas
problem solved sorry
Matt Hicks
@darkfrog26
@elyphas sorry for the late response, but I'm guessing it was your database connection?
elyphas
@elyphas
@darkfrog26 , thank you

hi, someone could help me, please.
I trying to use scarango but I have this error:

[error] (run-main-2) java.lang.RuntimeException: Failed to decode from {
[error]   
[error] }
[error] java.lang.RuntimeException: Failed to decode from {

This was because I was using Profig after db.init and I was not using lazy
then I rewrite to
1.- Profig
2.- ArangoDB

elyphas
@elyphas
The second error was because lacking for some imports
Matt Hicks
@darkfrog26
@elyphas good to know...I may need to put together a FAQ to help address things like this.
elyphas
@elyphas
+1
elyphas
@elyphas
Hi, someone could tell me, please,
Why in this line of test?: test
Has a second argument in this way: User.id("john")
but in the code it has nothing related to the id of the document: code
Sorry, I am trying to understand the code.
I had to use this way:
collection.document.upsertOne(item)
thank you in advance!
by the way, it works great, just I have the doubt! :)
if it is correct: collection.document.upsertOne(item)
Matt Hicks
@darkfrog26
@elyphas The User.id("john") is to generate a Id for the user, but to set its value to "john" so that it can be retrieved easily. This isn't recommended for any situation other than testing because the auto-generating ids is properly unique to avoid collisions.
Sorry for the delayed response...just noticed the message.
elyphas
@elyphas
@darkfrog26 , thank you,
And np :)
elyphas
@elyphas

@darkfrog26;
Hi, I am having this problem?

Uncaught error from thread [default-akka.actor.default-dispatcher-6]: scribe/Level$Warn$, shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[default]

Do You think this is good idea?

akka {
       jvm-exit-on-fatal-error = false
}

to solve my problem?

well don't matter because didn't work,
I think some conflicts between libraries, any idea to solve the problem?
Matt Hicks
@darkfrog26
@elyphas are you seeing any errors before that?
Also, what other libraries are you using? It looks like there may be a conflicting library for Scribe.
elyphas
@elyphas

@elyphas are you seeing any errors before that?

No

@darkfrog26

Also, what other libraries are you using? It looks like there may be a conflicting library for Scribe.

also I think so, the library that use scribe is mycelium

@darkfrog26 ;

@elyphas are you seeing any errors before that?

I am trying to migrate a project from postgresql to arangodb,

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