orientechnologies / orientdb

OrientDB is the most versatile DBMS supporting Graph, Document, Reactive, Full-Text and Geospatial models in one Multi-Model product. OrientDB can run distributed (Multi-Master), supports SQL, ACID Transactions, Full-Text indexing and Reactive Queries.
https://orientdb.dev
Apache License 2.0
4.72k stars 870 forks source link

Example code doesn't work [3.2.29 / Java 17 / scala 3.4.1] #10223

Open King-Ozymandias opened 2 months ago

King-Ozymandias commented 2 months ago

OrientDB Version: 3.2.29

Java Version: 17 (build 17.0.11+9-Debian-1deb12u1, mixed mode, sharing)

OS: Linux 6.1.0-20-amd64#1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux

Scala: 3.4.1

Expected behavior

The Scala demo code (https://orientdb.com/docs/last/scala/Scala-Language.html) works

Actual behavior

The line

errors out with:

had to fix it as:

Steps to reproduce

Run the referenced example.

King-Ozymandias commented 2 months ago

Might be related: Launched under Metals (clicking on the run option above "main" method):

King-Ozymandias commented 2 months ago

And while I'm being thorough, build.sbt:

name         := "<redacted>"
organization := "<redacted>"
version      := "0.1-SNAPSHOT"

scalaVersion := "3.4.1"

libraryDependencies ++= Seq(
  "org.scalafx"   %% "scalafx"   % "22.0.0-R33",
  "org.scalatest" %% "scalatest" % "3.2.18" % "test",
  "com.orientechnologies" % "orientdb-graphdb" % "3.2.29"
)

// Fork a new JVM for 'run' and 'test:run' to avoid JavaFX double initialization problems
fork := true

// set the main class for the main 'run' task
// change Compile to Test to set it for 'test:run'
Compile / run / mainClass := Some("<redacted>.ScalaFXHelloWorld")