I am trying out Slick 3.0.0-RC1
and I'm running in to an odd problem.
Such is my code:
import slick.driver.SQLiteDriver.api._
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Await
import scala.concurrent.duration.Duration
lazy val db = Database.forURL(
url = "jdbc:sqlite:thebase.db",
driver = "org.sqlite.JDBC"
)
case class Issue(id: Option[Int], name: String)
class IssueTable(tag: Tag) extends Table[Issue](tag, "issue"){
def id = column[Int]("issue_id", O.PrimaryKey)
def name = column[String]("name")
def * = (id.?, name) <> (Issue.tupled, Issue.unapply _)
}
val issueQuery = TableQuery[IssueTable]
Await.result(db.run(issueQuery.result), Duration.Inf) // This does not compile
The error is:
"Cannot resolve symbol result"
Reading the docs I can't really see why this should fail. Am I missing something here?
Resolution
szeiger pointed out that this could be a bug in 'IntelliJ's presentation compiler', and that was spot on.